Fix PR77880

Bernd Schmidt
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 

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bypieces.diff
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <>

More information about the Gcc-patches mailing list