mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
dl_open_worker: Memset all of seen array.
The seen array was doubled in size recently, but the memset to clear the array was not adjusted. We adjust the memset to always be correct regardless of the size of seen. --- 2013-04-06 Carlos O'Donell <carlos@redhat.com> [BZ #15309] * elf/dl-open.c (dl_open_worker): memset all of seen array.
This commit is contained in:
@@ -344,7 +344,7 @@ dl_open_worker (void *a)
|
||||
if (nmaps > 1)
|
||||
{
|
||||
uint16_t seen[nmaps];
|
||||
memset (seen, '\0', nmaps);
|
||||
memset (seen, '\0', sizeof (seen));
|
||||
size_t i = 0;
|
||||
while (1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user