Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 17:49:37 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317201 - head/lib/libthread_db
Message-ID:  <201704201749.v3KHnbJi014707@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu Apr 20 17:49:37 2017
New Revision: 317201
URL: https://svnweb.freebsd.org/changeset/base/317201

Log:
  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

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:43:25 2017	(r317200)
+++ head/lib/libthread_db/libpthread_db.c	Thu Apr 20 17:49:37 2017	(r317201)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704201749.v3KHnbJi014707>