On Wed, May 22, 2002 at 04:32:13PM +0200, Pavel Tsekov wrote: >Wednesday, May 22, 2002, 2:34:47 PM, you wrote: > >PT> I can confirm this - here is the output shown from Dr. Mingw JIT: > >I'm not sure this is the same crash but the crash I'm reporting is >easy reproducable and I think it is not the expected behaviour :) >Here is more info on it.. > >The crash is caused by this code from IniParseFindVisitor.cc, line 62: > > /* Copy leading part of path to temporary buffer and unescape it */ > > String prefix (&basePath.cstr_oneuse()[baseLength + 1]); > String mirror = rfc1738_unescape_part (prefix.substr(0,prefix.size() - 1)); > > baseLenght - the length of the fullpath to the local package dir > basePath - the full path of a directory we are currently scanning > with FindFirstFile and friends. > >When scannin the local package directory itself prefix would be with >zero length. Now prefix.size() will result in 0 thus this call >prefix.substr(0,prefix.size() - 1) will look like this >prefix.substr(0, -1) i.e. give me the whole string. Ok fine... >Now take a look at String::substr:
Heh. Sounds very similar to the problem that I fixed in the branch. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/