diff options
author | Carlos O'Donell <carlos@redhat.com> | 2013-04-06 17:00:02 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2013-04-06 17:00:02 -0400 |
commit | 7208a313b93a42e3cef61c4249a59b4b32a5850b (patch) | |
tree | e3477b3755f18bfe5ab0f7bfc86ba54139047316 /elf | |
parent | 872c0acd85bd158d1c226f290b606d0e7717a2a1 (diff) | |
download | glibc-7208a313b93a42e3cef61c4249a59b4b32a5850b.tar.gz glibc-7208a313b93a42e3cef61c4249a59b4b32a5850b.tar.xz glibc-7208a313b93a42e3cef61c4249a59b4b32a5850b.zip |
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.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c index 201d95d1be..9ff5f5736d 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -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) { |