RE: Eternal loop in quick_hash
From: Oddvar Kloster <Oddvar.Kloster_at_sintef.no>
Date: Thu, 14 Oct 2010 15:48:17 +0200
I found the following problem in SVNHelpers.cpp, line 119:
const char *local_abspath = path.GetDirectory().GetSVNApiPath(pool);
Here, GetDirectory returns a temp variable. Then GetSVNApiPath returns a pointer to the buffer of a member variable of the temp, which is then deleted. So local_abspath ends up pointing to reclaimed memory.
Oddvar
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org]. |
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.