mirror of
https://github.com/fluencelabs/musl
synced 2025-06-07 03:51:36 +00:00
fix dlopen UB due to longjmp/volatile rules violation
This commit is contained in:
parent
e936e4612f
commit
2fdea17c3d
@ -536,7 +536,7 @@ void *__dynlink(int argc, char **argv, size_t *got)
|
|||||||
|
|
||||||
void *dlopen(const char *file, int mode)
|
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;
|
size_t i;
|
||||||
|
|
||||||
if (!file) return head;
|
if (!file) return head;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user