[PATCH]Setup.Exe causes Application Error at 0x78001750
Michael A Chase
Tue Mar 26 02:14:00 GMT 2002
From: "Robert Collins" <firstname.lastname@example.org>
To: "Pavel Tsekov" <email@example.com>; <firstname.lastname@example.org>
Cc: "Seitz, Matt" <email@example.com>; <firstname.lastname@example.org>
Sent: Friday, March 22, 2002 20:33
Subject: RE: [Possible BUG and a fix] Re: Setup.Exe causes Application
Error at 0x78001750
> From: Pavel Tsekov [mailto:email@example.com]
> Sent: Saturday, March 23, 2002 11:03 AM
> strcpy (dp, dots);
> delete dots;
> key = String (dp);
> LOOK HERE - This is not right - we should delete at the base
> of the block, not somewhere in the middle of it.
> delete dp;
> We can do something like that
> char *dp = ....
> char *dp_save = dp;
> delete dp_save;
] Huh? deletedp; is the last reference to dp. deletedots; is the last
] reference to dots. Whats the problem?
dp is modified so doesn't point to the base of the allocated area by the
time delete dp is called. A separate working variable should be used
rather than modifying the allocation pointer.
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
2002-03-22 Michael A Chase <firstname.lastname@example.org>
* site.cc (site_list_type::init): Preserve allocation pointer for key
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 569 bytes
Desc: not available
More information about the Cygwin-patches