aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorWilco Dijkstra <wilco.dijkstra@arm.com>2025-06-06 17:11:36 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2025-08-02 14:38:35 +0000
commitb68b125ad1ccb54765e968eb2216798fc37d939c (patch)
tree2f2bb02a4078df5f89d48b451e3307a2c08081fb /sysdeps/unix
parent21fda179c2ed6e3be55dc148cef5cfb948624cba (diff)
downloadglibc-b68b125ad1ccb54765e968eb2216798fc37d939c.zip
glibc-b68b125ad1ccb54765e968eb2216798fc37d939c.tar.gz
glibc-b68b125ad1ccb54765e968eb2216798fc37d939c.tar.bz2
malloc: Improve checked_request2size
Change checked_request2size to return SIZE_MAX for huge inputs. This ensures large allocation requests stay large and can't be confused with a small allocation. As a result several existing checks against PTRDIFF_MAX become redundant. Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/unix')
0 files changed, 0 insertions, 0 deletions