From: Rich Felker Date: Sat, 2 Jul 2011 02:40:00 +0000 (-0400) Subject: fix dlopen UB due to longjmp/volatile rules violation X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=2fdea17c3da17f6ae96601283b28d025ed4d4cee fix dlopen UB due to longjmp/volatile rules violation --- diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index fc06685f..33937e76 100644 --- 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;