aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-29 19:30:24 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-29 19:30:24 +0000
commitd21a5ab6b0ecd20b4959d0e48a957d3226748d04 (patch)
treefbc4b3db09fb127d7b27582ae43d68f1fbbbf318 /elf
parentbab09b266190d8a3ec2590868921be8540d81b76 (diff)
downloadglibc-d21a5ab6b0ecd20b4959d0e48a957d3226748d04.tar
glibc-d21a5ab6b0ecd20b4959d0e48a957d3226748d04.tar.gz
glibc-d21a5ab6b0ecd20b4959d0e48a957d3226748d04.tar.bz2
glibc-d21a5ab6b0ecd20b4959d0e48a957d3226748d04.zip
Update.
2002-12-29 Jakub Jelinek <jakub@redhat.com> * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set in hwcap.
Diffstat (limited to 'elf')
-rw-r--r--elf/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/cache.c b/elf/cache.c
index 67874b3c9e..4f72f10491 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -475,7 +475,7 @@ add_to_cache (const char *path, const char *lib, int flags,
new_entry->bits_hwcap = 0;
/* Count the number of bits set in the masked value. */
- for (i = 0; (~((1ULL << i) - 1) & hwcap) != 0; ++i)
+ for (i = 0; (~((1ULL << i) - 1) & hwcap) != 0 && i < 8 * sizeof (hwcap); ++i)
if ((hwcap & (1ULL << i)) != 0)
++new_entry->bits_hwcap;