glibc: fix uninitialized memory in __pthread_cond_s for <=2.40

* https://sourceware.org/bugzilla/show_bug.cgi?id=32786
* https://inbox.sourceware.org/libc-alpha/87zfhpfqsm.fsf@oldenburg.str.redhat.com
This commit is contained in:
TCROC 2025-03-13 16:23:27 -04:00 committed by Alex Rønne Petersen
parent fdc9326868
commit dc75a64c46
No known key found for this signature in database
4 changed files with 6 additions and 2 deletions

View File

@ -99,6 +99,8 @@ struct __pthread_cond_s
unsigned int __g1_orig_size; unsigned int __g1_orig_size;
unsigned int __wrefs; unsigned int __wrefs;
unsigned int __g_signals[2]; unsigned int __g_signals[2];
unsigned int __unused_initialized_1;
unsigned int __unused_initialized_2;
}; };
typedef unsigned int __tss_t; typedef unsigned int __tss_t;

View File

@ -152,7 +152,7 @@ enum
/* Conditional variable handling. */ /* Conditional variable handling. */
#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0} } } #define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0}, 0, 0 } }
/* Cleanup buffers */ /* Cleanup buffers */

View File

@ -99,6 +99,8 @@ struct __pthread_cond_s
unsigned int __g1_orig_size; unsigned int __g1_orig_size;
unsigned int __wrefs; unsigned int __wrefs;
unsigned int __g_signals[2]; unsigned int __g_signals[2];
unsigned int __unused_initialized_1;
unsigned int __unused_initialized_2;
}; };
typedef unsigned int __tss_t; typedef unsigned int __tss_t;

View File

@ -152,7 +152,7 @@ enum
/* Conditional variable handling. */ /* Conditional variable handling. */
#define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0} } } #define PTHREAD_COND_INITIALIZER { { {0}, {0}, {0, 0}, 0, 0, {0, 0}, 0, 0 } }
/* Cleanup buffers */ /* Cleanup buffers */