This is the mail archive of the mailing list for the glibc 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] Fix BZ 19165 -- overflow in fread / fwrite

Ok, let's try one more time.

Previous attempt:
Tested on Linux/x86_64 with 6.0.0 (r222386).

Testing with (gcc-4.8 Ubuntu 4.8.4-2ubuntu1~14.04) 4:4.8.2-1ubuntu6
fails for apparently unrelated reasons:

build/math/test-double-vlen2-wrappers.o: In function `cos_vlen2':
undefined reference to `_ZGVbN2v_cos'
/glibc-git/build-system-gcc/math/test-double-vlen2-wrappers.o: In
function `sin_vlen2':
undefined reference to `_ZGVbN2v_sin'
... etc.


2015-12-07  Paul Pluzhnikov  <>

        [BZ #19165]
        * misc/sys/cdefs.h (__umul_size_t_overflow): New.
        (__umul_size_t_saturated): New.
        * libio/iofread.c (_IO_fread): Protect against overflow.
        * libio/iofread_u.c (__fread_unlocked): Likewise.
        * b/libio/iofwrite.c (_IO_fwrite): Likewise.
        * libio/iofwrite_u.c (fwrite_unlocked): Likewise.

Paul Pluzhnikov

Attachment: bz19165-20151207.txt
Description: Text document

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