Skip to content
Commit eef17d4d authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

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.

Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent 68619ddb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment