e354a5
commit 8a30bb4e0604aefcf28f20360fc8ba8ef8604b9c
e354a5
Author: Florian Weimer <fweimer@redhat.com>
e354a5
Date:   Wed Dec 23 12:07:20 2020 +0100
e354a5
e354a5
    elf: Account for glibc-hwcaps/ prefix in _dl_important_hwcaps
e354a5
e354a5
diff --git a/elf/dl-hwcaps.c b/elf/dl-hwcaps.c
e354a5
index 50d764ae8707f46d..2fc4ae67a0f5d051 100644
e354a5
--- a/elf/dl-hwcaps.c
e354a5
+++ b/elf/dl-hwcaps.c
e354a5
@@ -192,6 +192,7 @@ _dl_important_hwcaps (const char *glibc_hwcaps_prepend,
e354a5
 
e354a5
   /* Each hwcaps subdirectory has a GLIBC_HWCAPS_PREFIX string prefix
e354a5
      and a "/" suffix once stored in the result.  */
e354a5
+  hwcaps_counts.maximum_length += strlen (GLIBC_HWCAPS_PREFIX) + 1;
e354a5
   size_t total = (hwcaps_counts.count * (strlen (GLIBC_HWCAPS_PREFIX) + 1)
e354a5
 		  + hwcaps_counts.total_length);
e354a5