mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user