[PATCH v2] Prevent use of uninitialized file lock

Corinna Vinschen vinschen@redhat.com
Thu Jul 2 07:55:00 GMT 2015

On Jul  1 15:35, Sebastian Huber wrote:
> The CHECK_INIT() is necessary before the _newlib_flockfile_start() since
> this would use otherwise acquire an uninitialized lock which gets
> initialized after this leading to a corrupt release.
> newlib/ChangeLog
> 2015-07-01  Sebastian Huber  <...>
> 	libc/stdio/fputs.c (_puts_r): Add missing CHECK_INIT().
> 	libc/stdio/gets.c (_gets_r): Add missing
> 	_REENT_SMALL_CHECK_INIT() and CHECK_INIT().  Use _stdin_r() to
> 	get the file pointer instead of stdin.

Patch applied.


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/20150702/834ff01a/attachment.sig>

More information about the Newlib mailing list