[OpenAFS] OpenAFS 2.11 on SuSE 8.2

Derrick J Brashear shadow@dementia.org
Tue, 13 Jan 2004 12:03:10 -0500 (EST)


On Tue, 13 Jan 2004, ted creedon wrote:

> What kind of bug is this? Should it be applied to SuSE 9.0?

we've been trying to avoid applying the bugs. sometimes it even works.

> 1.2.11. My recollection is it was applied only to the 1.3 branch, and we
> pulled up only a bare minimum of fixes for 1.2.11, because doing a lot of
> testing would have sucked.
>
> > > --- src/lwp/lwp.c
> > > +++ src/lwp/lwp.c
> > > @@ -327,7 +327,7 @@
> > >  	}
> > >  	stackptr -= stacksize;
> > >  #else
> > > -	if ((stackptr = (char *) malloc(stacksize)) == NULL) {
> > > +	if ((stackptr = (char *) malloc(stacksize + 8)) == NULL) {
> > >  	    Set_LWP_RC();
> > >  	    return LWP_ENOMEM;
> > >  	}

in some cases the stackptr buffer can overflow, iirc.