public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* Re: setup crashing - fixed? (TNG)
@ 2002-01-27  8:20 Michael A Chase
  0 siblings, 0 replies; only message in thread
From: Michael A Chase @ 2002-01-27  8:20 UTC (permalink / raw)
  To: Michael A Chase, Robert Collins, cygwin-apps

----- Original Message -----
From: "Michael A Chase" <mchase@ix.netcom.com>
To: "Robert Collins" <robert.collins@itdomain.com.au>;
<cygwin-apps@sources.redhat.com>
Sent: Saturday, January 26, 2002 22:49
Subject: Re: setup crashing - fixed?


> ----- Original Message -----
> From: "Robert Collins" <robert.collins@itdomain.com.au>
> To: <cygwin-apps@sources.redhat.com>
> Sent: Saturday, January 26, 2002 22:41
> Subject: setup crashing - fixed?
>
>
> > site (char const *newkey)
> > {
> >   key = new char[strlen (newkey + 1)];
> >                                ^^^^^
> >     strcpy (key, newkey);
> > };
> >
> > However, fixing that DID NOT fix the problem (although I had isolated
> > the fault to this constructor by means of replacement new and new[]
> > calls using HeapAlloc, combined with HeapValidate().)
> >
> > Moving the constructor body out of the header fixed the problem. I don't
> > have time to generate a testcase, but if anyone does have time, I'm sure
> > the gcc team would appreciate knowing about this. The fault occured when
> > that constructor was called from a template instantiation of list.h.
>
> I hope you moved the '+ 1' outside the strlen() as well.


You did.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-27  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-27  8:20 setup crashing - fixed? (TNG) Michael A Chase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).