about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-11 10:02:17 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-11 10:02:17 -0500
commit8bb0e48889807a1421c15ab0eeaac198df27c7e5 (patch)
tree3abc9de2b0b8bdb678dbab9ffb9f517bfca7f050
parent243b542382990d8c2d0e5469ae68dfd622551a3e (diff)
downloadmusl-8bb0e48889807a1421c15ab0eeaac198df27c7e5.tar.gz
musl-8bb0e48889807a1421c15ab0eeaac198df27c7e5.tar.xz
musl-8bb0e48889807a1421c15ab0eeaac198df27c7e5.zip
match dimensions so we can use all slots without invoking OOB-array-access
-rwxr-xr-xarch/i386/bits/alltypes.h.sh10
-rwxr-xr-xarch/x86_64/bits/alltypes.h.sh10
2 files changed, 10 insertions, 10 deletions
diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh
index 27289ea0..c6201b9d 100755
--- a/arch/i386/bits/alltypes.h.sh
+++ b/arch/i386/bits/alltypes.h.sh
@@ -84,16 +84,16 @@ TYPEDEF int pthread_once_t;
 TYPEDEF int pthread_key_t;
 TYPEDEF int pthread_spinlock_t;
 
-TYPEDEF struct { union { int __i[9]; size_t __s[2]; } __u; } pthread_attr_t;
+TYPEDEF struct { union { int __i[9]; size_t __s[9]; } __u; } pthread_attr_t;
 TYPEDEF unsigned pthread_mutexattr_t;
 TYPEDEF unsigned pthread_condattr_t;
 TYPEDEF unsigned pthread_barrierattr_t;
 TYPEDEF struct { unsigned __attr[2]; } pthread_rwlockattr_t;
 
-TYPEDEF struct { union { int __i[6]; void *__p[1]; } __u; } pthread_mutex_t;
-TYPEDEF struct { union { int __i[12]; void *__p[1]; } __u; } pthread_cond_t;
-TYPEDEF struct { union { int __i[8]; void *__p[1]; } __u; } pthread_rwlock_t;
-TYPEDEF struct { union { int __i[5]; void *__p[1]; } __u; } pthread_barrier_t;
+TYPEDEF struct { union { int __i[6]; void *__p[6]; } __u; } pthread_mutex_t;
+TYPEDEF struct { union { int __i[12]; void *__p[12]; } __u; } pthread_cond_t;
+TYPEDEF struct { union { int __i[8]; void *__p[8]; } __u; } pthread_rwlock_t;
+TYPEDEF struct { union { int __i[5]; void *__p[5]; } __u; } pthread_barrier_t;
 
 TYPEDEF long long off_t;
 
diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh
index 05c0b7dc..b0aecd9c 100755
--- a/arch/x86_64/bits/alltypes.h.sh
+++ b/arch/x86_64/bits/alltypes.h.sh
@@ -84,16 +84,16 @@ TYPEDEF int pthread_once_t;
 TYPEDEF int pthread_key_t;
 TYPEDEF int pthread_spinlock_t;
 
-TYPEDEF struct { union { int __i[14]; size_t __s[2]; } __u; } pthread_attr_t;
+TYPEDEF struct { union { int __i[14]; size_t __s[7]; } __u; } pthread_attr_t;
 TYPEDEF unsigned pthread_mutexattr_t;
 TYPEDEF unsigned pthread_condattr_t;
 TYPEDEF unsigned pthread_barrierattr_t;
 TYPEDEF struct { unsigned __attr[2]; } pthread_rwlockattr_t;
 
-TYPEDEF struct { union { int __i[10]; void *__p[1]; } __u; } pthread_mutex_t;
-TYPEDEF struct { union { int __i[12]; void *__p[1]; } __u; } pthread_cond_t;
-TYPEDEF struct { union { int __i[14]; void *__p[1]; } __u; } pthread_rwlock_t;
-TYPEDEF struct { union { int __i[8]; void *__p[1]; } __u; } pthread_barrier_t;
+TYPEDEF struct { union { int __i[10]; void *__p[5]; } __u; } pthread_mutex_t;
+TYPEDEF struct { union { int __i[12]; void *__p[6]; } __u; } pthread_cond_t;
+TYPEDEF struct { union { int __i[14]; void *__p[7]; } __u; } pthread_rwlock_t;
+TYPEDEF struct { union { int __i[8]; void *__p[4]; } __u; } pthread_barrier_t;
 
 TYPEDEF long off_t;