]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Cleanup sysmalloc_mmap
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Sat, 2 Aug 2025 15:11:28 +0000 (15:11 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Sat, 2 Aug 2025 15:21:16 +0000 (15:21 +0000)
commit35a7a7ab99940329c93a0aa44601150b91103d1b
tree8c81ce19ce62e0d20fd751645509b4f1589f382c
parentb68b125ad1ccb54765e968eb2216798fc37d939c
malloc: Cleanup sysmalloc_mmap

Cleanup sysmalloc_mmap - simplify padding since it is always a constant.
Remove av parameter which is only used in do_check_chunk, but since it may be
NULL for mmap, it will cause a crash in checking mode.  Remove the odd check
on mmap in do_check_chunk.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/malloc.c