From 3876a56282935bde846c2c7642a45e124ce0cb19 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 20 Apr 2017 17:58:27 +0000 Subject: [PATCH] libpthread_db: undo the memset size change. I inadvertedly soubled the size of the memset without noticing the start address had changed. The size for the memset in pt_map_thread() shouldn't actually match the reallocarray() so undo that part of r317200. This is a re-commit of r317201 to clarify the log. X-MFC with: r317200 --- lib/libthread_db/libpthread_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c index 66b813ec50d8..55fef7128e40 100644 --- a/lib/libthread_db/libpthread_db.c +++ b/lib/libthread_db/libpthread_db.c @@ -100,7 +100,7 @@ pt_map_thread(const td_thragent_t *const_ta, psaddr_t pt, enum pt_type type) if (new == NULL) return (-1); memset(new + ta->map_len, '\0', ta->map_len * - 2 * sizeof(struct pt_map)); + sizeof(struct pt_map)); first = ta->map_len; ta->map = new; ta->map_len *= 2;