From 48378032fdfd073abd64aece0274fe0b9e311d2a Mon Sep 17 00:00:00 2001 From: zhangfanfan2 Date: Wed, 31 Aug 2022 16:19:28 +0000 Subject: [PATCH] =?UTF-8?q?fixed=2046b19a5=20from=20https://gitee.com/dhy3?= =?UTF-8?q?08/third=5Fparty=5Fmusl/pulls/504=20fix:=20=20=E8=A7=A3?= =?UTF-8?q?=E5=86=B3=E5=9C=A8libc.so=E4=B8=ADcheck=5Fverinfo=E5=87=BD?= =?UTF-8?q?=E6=95=B0crash=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangfanfan2 --- porting/linux/user/ldso/dynlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porting/linux/user/ldso/dynlink.c b/porting/linux/user/ldso/dynlink.c index 5fac1028..e71ce5e7 100644 --- a/porting/linux/user/ldso/dynlink.c +++ b/porting/linux/user/ldso/dynlink.c @@ -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) { /* if the versym and verinfo is null , then not need version. */ - if (!versym) { + if (!versym || !def) { if (strlen(verinfo->v) == 0) { return 1; } else { -- GitLab