Patchwork [RFC,1/4] malloc_info: mask out status bits when reporting chunk sizes [BZ #17039]

login
register
mail settings
Submitter Ken Milmore
Date April 30, 2018, 9 p.m.
Message ID <e5f4d8ed-bfb1-da20-6138-984ccb4775e1@gmail.com>
Download mbox | patch
Permalink /patch/27063/
State New
Headers show

Comments

Ken Milmore - April 30, 2018, 9 p.m.
---
 malloc/malloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/malloc/malloc.c b/malloc/malloc.c
index 9614954975..c0f1b26e1e 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -5467,7 +5467,7 @@  __malloc_info (int options, FILE *fp)
 	  if (r != NULL)
 	    while (r != bin)
 	      {
-		size_t r_size = chunksize_nomask (r);
+		size_t r_size = chunksize (r);
 		++sizes[NFASTBINS - 1 + i].count;
 		sizes[NFASTBINS - 1 + i].total += r_size;
 		sizes[NFASTBINS - 1 + i].from