libc/libelf:fix bug for libelf_symname

readlen maybe not equal CONFIG_LIBELF_BUFFERINCR

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2025-11-13 21:20:18 +08:00
committed by Xiang Xiao
parent c792601963
commit 2969857ff2
+1 -1
View File
@@ -174,7 +174,7 @@ static int libelf_symname(FAR struct mod_loadinfo_s *loadinfo,
return ret;
}
offset += CONFIG_LIBC_ELF_BUFFERINCR;
offset += readlen;
}
/* We will not get here */