mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
offset += CONFIG_LIBC_ELF_BUFFERINCR;
|
offset += readlen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We will not get here */
|
/* We will not get here */
|
||||||
|
|||||||
Reference in New Issue
Block a user