From: Ulrich Drepper Date: Sun, 29 Dec 2002 19:30:24 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_2~446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d21a5ab6b0ecd20b4959d0e48a957d3226748d04;p=thirdparty%2Fglibc.git Update. 2002-12-29 Jakub Jelinek * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set in hwcap. --- diff --git a/ChangeLog b/ChangeLog index 5e109beacef..19742433399 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-12-29 Jakub Jelinek + + * elf/cache.c (add_to_cache): Don't loop forever with 1ULL << 63 set + in hwcap. + 2002-12-28 Ulrich Drepper * misc/sys/cdefs.h (__attribute_deprecated__): New #define. diff --git a/elf/cache.c b/elf/cache.c index 67874b3c9e2..4f72f104915 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;