This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: Multiple bugs in stdlib function setstate()


Michael Fischer <fischer@cs.yale.edu> writes:

> >Description:
> 1.  setstate(newstate) fails (returns NULL) when newstate is size 256 
>     (TYPE_4 generator).

You are not using glibc 2.1.92 (test release for 2.2).

> 2.  setstate(newstate) corrupts new state, causing subsequent
>     setstate(newstate) call to fail (returns NULL).

That's how the functions are written.

> 3.  setstate(NULL) causes segmentation fault.

And your problem is?  We are never testing for invalid arguments
unless it is demanded by a standard.  Which is not the case here.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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