[PATCH 2/2] malloc: make malloc fail with requests larger than PTRDIFF_MAX

DJ Delorie dj@redhat.com
Sat Dec 22 10:45:00 GMT 2018


I'm not a fan of removing the existing overflow checks, because malloc
security depends on a very robust logic, and we already have a macro
that detects too-large allocations.

Also, your code does not allow allocations up to PTRDIFF_MAX, but to
some number smaller than that.



More information about the Libc-alpha mailing list