[patch] Fix BZ 19165 -- overflow in fread / fwrite
Paul Pluzhnikov
ppluzhnikov@google.com
Tue Oct 27 02:06:00 GMT 2015
On Mon, Oct 26, 2015 at 7:04 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> [BZ #19165]
> * libio/libioP.h (_IO_saturating_umull): New.
> * libio/iofread.c (_IO_fread): Use it.
> * ibio/iofread_u.c (__fread_unlocked): Likewise.
> * libio/iofwrite.c (_IO_fwrite): Error on overflow.
> * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
Oops. Let's try that again:
2015-10-26 Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #19165]
* libio/libioP.h (_IO_saturating_umull): New.
* libio/iofread.c (_IO_fread): Use it.
* ibio/iofread_u.c (__fread_unlocked): Likewise.
* libio/iofwrite.c (_IO_fwrite): Likewise.
* libio/iofwrite_u.c (fwrite_unlocked): Likewise.
--
Paul Pluzhnikov
More information about the Libc-alpha
mailing list