mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
(_dl_update_slotinfo): Copy all of the initial DTV.
This commit is contained in:
parent
472e5e0814
commit
fb862ace67
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user