]> sourceware.org Git - newlib-cygwin.git/commit
Prevent use of uninitialized file lock
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 1 Jul 2015 13:35:00 +0000 (15:35 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 2 Jul 2015 07:38:06 +0000 (09:38 +0200)
commit757c0871f74c3a2d682398490bcae8873d1fafd4
treeddb8fe5fd222b13cc247c14e08b2f4aab8ec97aa
parentfc22f775032cff7100166c32ab562b48578ee0dc
Prevent use of uninitialized file lock

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  <sebastian.huber@embedded-brains.de>

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.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/ChangeLog
newlib/libc/stdio/gets.c
newlib/libc/stdio/puts.c
This page took 0.033066 seconds and 5 git commands to generate.