summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-21 22:51:30 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-21 22:51:30 -0400
commit9ae1cf6d292d8c24ad78d6e220186afc5076d120 (patch)
treef36a1775283522ce776fdf437c34ea479670356b /src/internal
parent3db29f0347976cd8f5eedf8a78cc3297a639714f (diff)
downloadmusl-9ae1cf6d292d8c24ad78d6e220186afc5076d120.tar.gz
musl-9ae1cf6d292d8c24ad78d6e220186afc5076d120.tar.bz2
musl-9ae1cf6d292d8c24ad78d6e220186afc5076d120.tar.xz
musl-9ae1cf6d292d8c24ad78d6e220186afc5076d120.zip
fix out-of-bounds array access in pthread barriers on 64-bit
it's ok to overlap with integer slot 3 on 32-bit because only slots 0-2 are used on process-local barriers.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/pthread_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h
index 5c1b2069..2348b5da 100644
--- a/src/internal/pthread_impl.h
+++ b/src/internal/pthread_impl.h
@@ -83,7 +83,7 @@ struct __timer {
#define _b_limit __u.__i[2]
#define _b_count __u.__i[3]
#define _b_waiters2 __u.__i[4]
-#define _b_inst __u.__p[4]
+#define _b_inst __u.__p[3]
#include "pthread_arch.h"