This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] [BZ #15855] malloc: Check for integer overflow in pvalloc.
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: Will Newton <will dot newton at linaro dot org>, libc-alpha at sourceware dot org, patches at linaro dot org
- Date: Tue, 10 Sep 2013 10:45:19 +0530
- Subject: Re: [PATCH v2] [BZ #15855] malloc: Check for integer overflow in pvalloc.
- Authentication-results: sourceware.org; auth=none
- References: <521327C7 dot 3020501 at linaro dot org> <20130910024043 dot GA4306 at spoyarek dot pnq dot redhat dot com> <20130910044600 dot GQ20515 at brightrain dot aerifal dot cx>
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