From e242b9575e1ae2d464f64b5a9c5e02b01d8fc369 Mon Sep 17 00:00:00 2001 From: Packit Date: Aug 21 2020 09:21:00 +0000 Subject: Apply patch glibc-rh1735747-2.patch patch_name: glibc-rh1735747-2.patch location_in_specfile: 196 present_in_specfile: true --- diff --git a/malloc/malloc.c b/malloc/malloc.c index 4fc7f17..fcf480a 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -5433,6 +5433,12 @@ __malloc_info (int options, FILE *fp) __libc_lock_lock (ar_ptr->mutex); + /* Account for top chunk. The top-most available chunk is + treated specially and is never in any bin. See "initial_top" + comments. */ + avail = chunksize (ar_ptr->top); + nblocks = 1; /* Top always exists. */ + for (size_t i = 0; i < NFASTBINS; ++i) { mchunkptr p = fastbin (ar_ptr, i);