未验证 提交 cfb4a9c3 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2525 from jesven/fix_dlopen

fix dlmodule_load(): return immediately when open file fail
......@@ -442,6 +442,10 @@ struct rt_dlmodule* dlmodule_load(const char* filename)
close(fd);
fd = -1;
}
else
{
goto __exit;
}
/* check ELF header */
if (rt_memcmp(elf_module->e_ident, RTMMAG, SELFMAG) != 0 &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册