This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2969857ff2b libc/libelf:fix bug for libelf_symname
2969857ff2b is described below
commit 2969857ff2b140dd2f4b05671ccdc4d9346dc526
Author: anjiahao <[email protected]>
AuthorDate: Thu Nov 13 21:20:18 2025 +0800
libc/libelf:fix bug for libelf_symname
readlen maybe not equal CONFIG_LIBELF_BUFFERINCR
Signed-off-by: anjiahao <[email protected]>
---
libs/libc/elf/elf_symbols.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/libc/elf/elf_symbols.c b/libs/libc/elf/elf_symbols.c
index f29e5e2b215..d522fb273a0 100644
--- a/libs/libc/elf/elf_symbols.c
+++ b/libs/libc/elf/elf_symbols.c
@@ -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 */