This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Prevent use of uninitialized file lock


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.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgp8qzdDtb5uG.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]