Multiple bugs in stdlib function setstate()
Ulrich Drepper
drepper@redhat.com
Sun Aug 20 09:57:00 GMT 2000
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 `------------------------
More information about the Libc-alpha
mailing list