aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-11 14:22:35 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-27 14:46:47 +0100
commit4197d863dee1894831759bc8c4543f0f05d26fd9 (patch)
tree1e58c2417611159f63a52463f22e2b89df116908 /malloc/alloc_buffer_alloc_array.c
parent01359abab8f5b7f44e6aa4260eb5f3f878d7ff4a (diff)
downloadglibc-4197d863dee1894831759bc8c4543f0f05d26fd9.tar.xz
glibc-4197d863dee1894831759bc8c4543f0f05d26fd9.zip
elf: Fix alloca size in _dl_debug_vdprintf
The alloca size did not consider the optional width parameter for padding which could cause buffer underflow. The width is currently used e.g. by _dl_map_object_from_fd which passes 2 * sizeof(void *) which can be larger than the alloca buffer size on targets where sizeof(void *) >= 2 * sizeof(unsigned long). Even if large width is not used on existing targets it is better to fix the formatting code to avoid surprises.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions