[PATCH v2] [BZ #15855] malloc: Check for integer overflow in pvalloc.

Siddhesh Poyarekar siddhesh@redhat.com
Tue Sep 10 05:12:00 GMT 2013


On Tue, Sep 10, 2013 at 12:46:00AM -0400, Rich Felker wrote:
> This code does not "rely on overflow behavior of the processor".
> Unsigned arithmetic cannot overflow. It's performed modulo one plus
> the maximum value of the type.

ACK.  Thanks.

Siddhesh



More information about the Libc-alpha mailing list