svn commit: r317203 - head/lib/libthread_db
Pedro F. Giffuni
pfg at FreeBSD.org
Thu Apr 20 17:58:28 UTC 2017
Author: pfg
Date: Thu Apr 20 17:58:27 2017
New Revision: 317203
URL: https://svnweb.freebsd.org/changeset/base/317203
Log:
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
Modified:
head/lib/libthread_db/libpthread_db.c
Modified: head/lib/libthread_db/libpthread_db.c
==============================================================================
--- head/lib/libthread_db/libpthread_db.c Thu Apr 20 17:54:59 2017 (r317202)
+++ head/lib/libthread_db/libpthread_db.c Thu Apr 20 17:58:27 2017 (r317203)
@@ -100,7 +100,7 @@ pt_map_thread(const td_thragent_t *const
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;
More information about the svn-src-all
mailing list