[PATCH] Prevent use of uninitialized file lock

Corinna Vinschen vinschen@redhat.com
Wed Jul 1 12:52:00 GMT 2015


Hi Sebastian,

On Jul  1 09:26, Sebastian Huber wrote:
> I am not sure if CHECK_INIT() is doing the right thing in case
> _REENT_SMALL is defined.

The call to _REENT_SMALL_CHECK_INIT will still be required, afaics.  The
problem is that only the call to __sinit initializes the std{in,out,err}
pointers so, without _REENT_SMALL_CHECK_INIT, fp will point into never
never land.

Btw., don't we have the same problem in libc/stdio/gets.c as well?


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20150701/a6d8a3da/attachment.sig>


More information about the Newlib mailing list