about summary refs log tree commit diff
path: root/elf/dl-tls.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-10-16 21:45:59 +0000
committerUlrich Drepper <drepper@redhat.com>2008-10-16 21:45:59 +0000
commitfb862ace67c15975e2df3f572961b2bd72b2cfbd (patch)
tree9f417f8eec4facff32ab2df7dd84d923b3c6e663 /elf/dl-tls.c
parent472e5e0814ec0e525fe81d4fe736f4cc58a1fad6 (diff)
downloadglibc-fb862ace67c15975e2df3f572961b2bd72b2cfbd.tar.gz
glibc-fb862ace67c15975e2df3f572961b2bd72b2cfbd.tar.xz
glibc-fb862ace67c15975e2df3f572961b2bd72b2cfbd.zip
(_dl_update_slotinfo): Copy all of the initial DTV.
Diffstat (limited to 'elf/dl-tls.c')
-rw-r--r--elf/dl-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 54c3590a9d..edbc953e4a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -634,7 +634,7 @@ _dl_update_slotinfo (unsigned long int req_modid)
 		      newp = malloc ((2 + newsize) * sizeof (dtv_t));
 		      if (newp == NULL)
 			oom ();
-		      memcpy (newp, &dtv[-1], oldsize * sizeof (dtv_t));
+		      memcpy (newp, &dtv[-1], (2 * oldsize) * sizeof (dtv_t));
 		    }
 		  else
 		    {