Skip to content
Commit 4b95b6e8 authored by Javier Pello's avatar Javier Pello Committed by Florian Weimer
Browse files

elf: Fix hwcaps string size overestimation



Commit dad90d52 added glibc-hwcaps
support for LD_LIBRARY_PATH and, for this, it adjusted the total
string size required in _dl_important_hwcaps. However, in doing so
it inadvertently altered the calculation of the size required for
the power set strings, as the computation of the power set string
size depended on the first value assigned to the total variable,
which is later shifted, resulting in overallocation of string
space. Fix this now by using a different variable to hold the
string size required for glibc-hwcaps.

Signed-off-by: default avatarJavier Pello <devel@otheo.eu>
(cherry picked from commit a23820f6)
parent df513348
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