This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stack overflow bug in ofstream::operator<<


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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]