Damien Zammit has uploaded this change for review. ( https://review.coreboot.org/21360
Change subject: rmodtool: Increase limit on number of symbols ......................................................................
rmodtool: Increase limit on number of symbols
An internal index `i` was previously allocated as Elf64_Half which is uint16_t. Bumping to uint32_t increases the number of allowed symbols and prevents a segfault in processing a larger ramstage.debug file
Change-Id: I9ad2f64c452cef2e7bf957f766600891cb5ae798 Signed-off-by: Damien Zammit damien@zamaudio.com --- M util/cbfstool/elfheaders.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/21360/1
diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c index 67f01d4..5a56e2c 100644 --- a/util/cbfstool/elfheaders.c +++ b/util/cbfstool/elfheaders.c @@ -435,7 +435,7 @@ { Elf64_Ehdr *ehdr; Elf64_Shdr *shdr; - Elf64_Half i; + Elf64_Word i; Elf64_Xword nsyms; Elf64_Sym *sym; struct buffer b;