From: Florian Weimer Date: Wed, 23 Dec 2020 11:07:20 +0000 (+0100) Subject: elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps X-Git-Tag: glibc-2.33~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c;p=thirdparty%2Fglibc.git elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps --- diff --git a/elf/dl-hwcaps.c b/elf/dl-hwcaps.c index 000e3c0eb91..6c394714d86 100644 --- a/elf/dl-hwcaps.c +++ b/elf/dl-hwcaps.c @@ -192,6 +192,7 @@ _dl_important_hwcaps (const char *glibc_hwcaps_prepend, /* Each hwcaps subdirectory has a GLIBC_HWCAPS_PREFIX string prefix and a "/" suffix once stored in the result. */ + hwcaps_counts.maximum_length += strlen (GLIBC_HWCAPS_PREFIX) + 1; size_t total = (hwcaps_counts.count * (strlen (GLIBC_HWCAPS_PREFIX) + 1) + hwcaps_counts.total_length);