mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(_dl_update_slotinfo): Copy all of the initial DTV.
This commit is contained in:
@ -634,7 +634,7 @@ _dl_update_slotinfo (unsigned long int req_modid)
|
|||||||
newp = malloc ((2 + newsize) * sizeof (dtv_t));
|
newp = malloc ((2 + newsize) * sizeof (dtv_t));
|
||||||
if (newp == NULL)
|
if (newp == NULL)
|
||||||
oom ();
|
oom ();
|
||||||
memcpy (newp, &dtv[-1], oldsize * sizeof (dtv_t));
|
memcpy (newp, &dtv[-1], (2 * oldsize) * sizeof (dtv_t));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user