From e1a2230e9ca654cdd2b4230060a304d792843914 Mon Sep 17 00:00:00 2001 From: Gergő Móricz Date: Sun, 17 Oct 2021 21:19:52 +0200 Subject: Add alignment wrapper to pthread_getattr_np. This fixes stack corruption when using pthread_getattr_np on hirsute (Ubuntu 21.04) and libc >=2.33 This should also fix #130. --- src/wrapped/generated/wrappedlibpthreadtypes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wrapped/generated/wrappedlibpthreadtypes.h') diff --git a/src/wrapped/generated/wrappedlibpthreadtypes.h b/src/wrapped/generated/wrappedlibpthreadtypes.h index 2b0d9f50..f7c3a0de 100644 --- a/src/wrapped/generated/wrappedlibpthreadtypes.h +++ b/src/wrapped/generated/wrappedlibpthreadtypes.h @@ -14,6 +14,7 @@ typedef void (*vFp_t)(void*); typedef int64_t (*iFp_t)(void*); typedef void (*vFpi_t)(void*, int64_t); +typedef int64_t (*iFLp_t)(uintptr_t, void*); typedef int64_t (*iFpi_t)(void*, int64_t); typedef int64_t (*iFpL_t)(void*, uintptr_t); typedef int64_t (*iFpp_t)(void*, void*); @@ -48,6 +49,7 @@ typedef int64_t (*iFpppp_t)(void*, void*, void*, void*); GO(pthread_mutexattr_init, iFp_t) \ GO(_pthread_cleanup_pop, vFpi_t) \ GO(_pthread_cleanup_pop_restore, vFpi_t) \ + GO(pthread_getattr_np, iFLp_t) \ GO(__pthread_mutexattr_settype, iFpi_t) \ GO(pthread_attr_setdetachstate, iFpi_t) \ GO(pthread_attr_setinheritsched, iFpi_t) \ -- cgit 1.4.1