未验证 提交 46b19a50 编写于 作者: Z zhangfanfan2 提交者: Gitee

fix: 解决在libc.so中check_verinfo函数crash的问题

Signed-off-by: Nzhangfanfan2 <zhangfanfan2@huawei.com>
上级 8d471392
......@@ -511,7 +511,7 @@ static int check_verneed(Verdef *def, int vsym, struct verinfo *verinfo)
static int check_verinfo(Verdef *def, int16_t *versym, uint32_t index, struct verinfo *verinfo, char *strings)
{
/* if the versym and verinfo is null , then not need version. */
if (!versym) {
if (!versym || !def) {
if (strlen(verinfo->v) == 0) {
return 1;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册