]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
arm: Fix typo in array count
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 24 May 2017 16:56:36 +0000 (22:26 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 24 May 2017 16:56:37 +0000 (22:26 +0530)
I just noticed that the array count for the hwcap flags list in ARM is
off by 10, i.e. 37 instead of 27.  Following patch fixes this.

* sysdeps/unix/sysv/linux/arm/dl-procinfo.c
(_dl_arm_cap_flags): Fix array subscript.
* sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
Fix count.

ChangeLog
sysdeps/unix/sysv/linux/arm/dl-procinfo.c
sysdeps/unix/sysv/linux/arm/dl-procinfo.h

index 4abd668481fb62847c2fc7b06801cef3be905c00..d3f3d6a6fe1ffa53e5bb723968b65991a4dcb068 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-05-24  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
+       (_dl_arm_cap_flags): Fix array subscript.
+       * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
+       Fix count.
+
 2017-05-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86/cacheinfo.c: Skip if not in libc.
index 20246941f5c75520b576e13040f2eb6638072bfc..15c45d089f68b7608bd7f13bf3fb32623fecec4e 100644 (file)
@@ -46,7 +46,7 @@
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_arm_cap_flags
 #else
-PROCINFO_CLASS const char _dl_arm_cap_flags[37][10]
+PROCINFO_CLASS const char _dl_arm_cap_flags[27][10]
 #endif
 #ifndef PROCINFO_DECL
 = {
index 5dc394d9085435c660def22acac48d00758c4814..b6a9d9f6a214e3c5d3392bd4ea7bcb914052c4f7 100644 (file)
@@ -23,7 +23,7 @@
 #include <ldsodefs.h>
 #include <sysdep.h>
 
-#define _DL_HWCAP_COUNT 37
+#define _DL_HWCAP_COUNT 27
 
 /* Low 22 bits are allocated in HWCAP.  */
 #define _DL_HWCAP_LAST         21