[patch] Fix BZ 19165 -- overflow in fread / fwrite

Alexander Cherepanov ch3root@openwall.com
Tue Oct 27 18:21:00 GMT 2015


On 2015-10-27 05:06, Paul Pluzhnikov wrote:
> 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 here?

>          * libio/iofwrite.c (_IO_fwrite): Likewise.
>          * libio/iofwrite_u.c (fwrite_unlocked): Likewise.

-- 
Alexander Cherepanov



More information about the Libc-alpha mailing list