提交 2fdea17c 编写于 作者: R Rich Felker

fix dlopen UB due to longjmp/volatile rules violation

上级 e936e461
...@@ -536,7 +536,7 @@ void *__dynlink(int argc, char **argv, size_t *got) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册