arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1347277.patch

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