stack overflow bug in ofstream::operator<<

Corinna Vinschen
Thu Jun 30 12:35:00 GMT 2005

On Jun 30 13:21, Dave Korn wrote:
>   Isn't (_tlsbase - stacksize) just going to be the same thing as _tlsstop?

No, tlstop is the start address of the commited stack area (IIUC).
I don't see that there's a pointer to the start address of the
reserved stack area elsewhere.

> We have pointers to both ends of the stack in there, don't we?  Have I
> misunderstood the meaning of StackBase/StackLimit?
> > and then something similar to what you proposed in writev:
> > Does that sound feasable?
>   Looks good to me, but I'm still curious why we can't get the *actual*
> stack limits rather than trying to deduce them from the initially-allocated
> size.

If you tell me from where to get this information I'm happy to use it.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader
Red Hat, Inc.

More information about the Cygwin-developers mailing list