musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011年07月01日 22:40:00 -0400
committerRich Felker <dalias@aerifal.cx>2011年07月01日 22:40:00 -0400
commit2fdea17c3da17f6ae96601283b28d025ed4d4cee (patch)
tree6da3c4715a83a58bfec9064c6843ace294d40003 /src/ldso/dynlink.c
parente936e4612f2b06d5812eb9215ef69c6a5f5b17d7 (diff)
downloadmusl-2fdea17c3da17f6ae96601283b28d025ed4d4cee.tar.gz
fix dlopen UB due to longjmp/volatile rules violation
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c 2
1 files changed, 1 insertions, 1 deletions
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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月06日 20:49:07 +0000

AltStyle によって変換されたページ (->オリジナル) /