Re: SHA-1 collision in repository?
From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Wed, 7 Mar 2018 12:02:26 -0500
On Mar 5, 2018, at 10:54 PM, Myria <myriachan_at_gmail.com> wrote:
Has it been possible to determine what is setting expanded_size to 0 before that last call? I wonder if there is specific logic that decides (perhaps incorrectly?) to do that?
Alternatively is it being clobbered by some out-of-bounds access, use-after-free, or another such issue?
Is it possible in your debugger setup to determine the address of that variable and set a breakpoint that triggers when that memory is written? (It may be called a watchpoint?)
Which leads me to another thought: if you can set such a breakpoint / watchpoint and it does not trigger, then this expanded_size might not be the same instance in that final call. Perhaps a shallow copy of an enclosing structure is made which leaves out the known size and sets it to 0 for some reason, and that final call is given that (incomplete) copy.
Caveat: I am not familiar with the codebase but these are my thoughts based on adventures in other code bases.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.