]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cheri: nptl: fix pthread_attr_t alignment
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 12 Jul 2022 12:09:02 +0000 (13:09 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 5 Aug 2022 18:45:19 +0000 (19:45 +0100)
Alignment of the public definition did not match the internal layout.
Ensure that the type is at least pointer aligned.

sysdeps/nptl/bits/pthreadtypes.h

index 706c2bb49559986f76d2563388dfe772a9b8c456..f889b8926f68249d652bdffc6edf969054957a43 100644 (file)
@@ -61,6 +61,7 @@ union pthread_attr_t
 {
   char __size[__SIZEOF_PTHREAD_ATTR_T];
   long int __align;
+  void * __align_p;
 };
 #ifndef __have_pthread_attr_t
 typedef union pthread_attr_t pthread_attr_t;