projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a938b5a
)
fix uninitialized variable in dladdr
author
Rich Felker
<dalias@aerifal.cx>
Fri, 4 Oct 2013 04:29:58 +0000
(
00:29
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 4 Oct 2013 04:29:58 +0000
(
00:29
-0400)
the affected branch only applies for DSOs that lack standard hash
table and only have the GNU hash table present.
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index a525b3d8fa837b5cbc573f874d6e75a3ce2b0109..fc588320f0be634653b3e71ea32796346e5fb862 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-1354,7
+1354,7
@@
int __dladdr(void *addr, Dl_info *info)
uint32_t *hashval;
buckets = p->ghashtab + 4 + (p->ghashtab[2]*sizeof(size_t)/4);
sym += p->ghashtab[1];
- for (i = 0; i < p->ghashtab[0]; i++) {
+ for (i =
nsym =
0; i < p->ghashtab[0]; i++) {
if (buckets[i] > nsym)
nsym = buckets[i];
}