olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1347277.patch

00db10
This patch fixes a compile-time type mismatch.  No upstream
00db10
patch; this originated in Fedora and upstream has changed the
00db10
underlying code in a different way.
00db10
00db10
diff -rup a/malloc/hooks.c b/malloc/hooks.c
00db10
--- a/malloc/hooks.c	2017-08-11 14:20:36.000000000 -0400
00db10
+++ b/malloc/hooks.c	2017-08-11 15:43:15.939831964 -0400
00db10
@@ -240,10 +240,10 @@ top_check(void)
00db10
 	(char*)t + chunksize(t) == mp_.sbrk_base + main_arena.system_mem)))
00db10
     return 0;
00db10
 
00db10
-  mutex_unlock(&main_arena);
00db10
+  mutex_unlock(&main_arena.mutex);
00db10
   malloc_printerr (check_action, "malloc: top chunk is corrupt", t,
00db10
 		   &main_arena);
00db10
-  mutex_lock(&main_arena);
00db10
+  mutex_lock(&main_arena.mutex);
00db10
 
00db10
   /* Try to set up a new top chunk. */
00db10
   brk = MORECORE(0);