(_dl_update_slotinfo): Copy all of the initial DTV.
authorUlrich Drepper <drepper@redhat.com>
Thu, 16 Oct 2008 21:45:59 +0000 (21:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 16 Oct 2008 21:45:59 +0000 (21:45 +0000)
elf/dl-tls.c

index 54c3590..edbc953 100644 (file)
@@ -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
                    {