mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
c792601963
commit
2969857ff2
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue