[PATCH] Fix integer overflows in internal memalign and malloc functions [BZ #22343]

Carlos O'Donell carlos@redhat.com
Wed Jan 17 14:59:00 GMT 2018


On 01/16/2018 10:27 PM, Paul Eggert wrote:
> Carlos O'Donell wrote:
>> I think an immediate fix is the right solution for 2.27, these overflows in
>> malloc are bad.
> 
> Yes, that sounds right to me too. Though we really need to fix the
> more-general problem in the not-too-distant future.

Agreed. Thanks for your support Paul. As Arjun mentioned we'll refactor this
in 2.28.

These checks should be done at the entry points, and a good cleanup moves
them all outward to such entry points and avoids duplicating the work in
each internal function.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list