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:
e936e46
)
fix dlopen UB due to longjmp/volatile rules violation
author
Rich Felker
<dalias@aerifal.cx>
Sat, 2 Jul 2011 02:40:00 +0000
(22:40 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 2 Jul 2011 02:40:00 +0000
(22:40 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index fc06685f5995b4b6f57b2fe3c508d28f6ba113c1..33937e7627e460328979a1ff809af94e2e0f3b98 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-536,7
+536,7
@@
void *__dynlink(int argc, char **argv, size_t *got)
void *dlopen(const char *file, int mode)
{
- struct dso *p, *orig_tail = tail, *next;
+ struct dso *
volatile
p, *orig_tail = tail, *next;
size_t i;
if (!file) return head;