diff options
author | Javier Pello <devel@otheo.eu> | 2022-09-05 20:09:01 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-09-15 14:44:49 +0200 |
commit | 4b95b6e8bbb5a2b6856f707bf3bc3308ebef595a (patch) | |
tree | c0c402c711ff3697b468dd2c60840d4c0026b2b3 /elf/dl-reloc.c | |
parent | df51334828f2af214105aad82042140ee3a6de0a (diff) | |
download | glibc-4b95b6e8bbb5a2b6856f707bf3bc3308ebef595a.tar.gz glibc-4b95b6e8bbb5a2b6856f707bf3bc3308ebef595a.tar.xz glibc-4b95b6e8bbb5a2b6856f707bf3bc3308ebef595a.zip |
elf: Fix hwcaps string size overestimation
Commit dad90d528259b669342757c37dedefa8577e2636 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: Javier Pello <devel@otheo.eu> (cherry picked from commit a23820f6052a740246fdc7dcd9c43ce8eed0c45a)
Diffstat (limited to 'elf/dl-reloc.c')
0 files changed, 0 insertions, 0 deletions