This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Multiple bugs in stdlib function setstate()
- To: Michael Fischer <fischer at cs dot yale dot edu>
- Subject: Re: Multiple bugs in stdlib function setstate()
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 20 Aug 2000 09:57:06 -0700
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <200008201449.KAA26560@ohia.cs.yale.edu>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------