[PATCH] Prevent use of uninitialized file lock
Sebastian Huber
sebastian.huber@embedded-brains.de
Wed Jul 1 12:58:00 GMT 2015
On 01/07/15 14:33, Corinna Vinschen wrote:
> 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.
Ok, I will send a second version.
>
> Btw., don't we have the same problem in libc/stdio/gets.c as well?
Probably yes. It seems a _REENT_SMALL_CHECK_INIT (ptr) is missing as
well? I try to add this to the second version.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list