1
0
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:
Carlos O'Donell
2013-04-06 17:00:02 -04:00
parent 872c0acd85
commit 7208a313b9
3 changed files with 8 additions and 2 deletions

View File

@@ -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)
{