Fix PR77880

Bernd Schmidt bschmidt@redhat.com
Fri Oct 7 12:18:00 GMT 2016


When encountering a memcmp with something like ULONG_MAX for the size, a 
calculation can overflow in by_pieces_ninsns because it uses int rather 
than HOST_WIDE_INT.

Bootstrapped & tested on x86_64-linux, committed as obvious.


Bernd

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bypieces.diff
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161007/13abad1b/attachment.bin>


More information about the Gcc-patches mailing list