From febd54ebb7317f4e0fb6264bd181782129564cd1 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 20 Apr 2017 17:49:37 +0000 Subject: [PATCH] libpthread_db: leave the memset size from unchanged. The size for the memset in pt_map_thread() shouldn't actually match the reallocarray() so undo that part of r317200. 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;