提交 48378032 编写于 作者: Z zhangfanfan2 提交者: dhy308

fixed 46b19a50 from https://gitee.com/dhy308/third_party_musl/pulls/504

fix:  解决在libc.so中check_verinfo函数crash的问题
Signed-off-by: Nzhangfanfan2 <zhangfanfan2@huawei.com>
上级 11277cdf
...@@ -488,7 +488,7 @@ static int check_vna_hash(Verdef *def, int16_t vsym, uint32_t vna_hash) ...@@ -488,7 +488,7 @@ static int check_vna_hash(Verdef *def, int16_t vsym, uint32_t vna_hash)
static int check_verinfo(Verdef *def, int16_t *versym, uint32_t index, struct verinfo *verinfo, char *strings) 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 the versym and verinfo is null , then not need version. */
if (!versym) { if (!versym || !def) {
if (strlen(verinfo->v) == 0) { if (strlen(verinfo->v) == 0) {
return 1; return 1;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册