[coreboot-gerrit] Change in coreboot[master]: rmodtool: Increase limit on number of symbols

Damien Zammit (Code Review) gerrit at coreboot.org
Sun Sep 3 13:20:40 CEST 2017


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 at 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;

-- 
To view, visit https://review.coreboot.org/21360
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ad2f64c452cef2e7bf957f766600891cb5ae798
Gerrit-Change-Number: 21360
Gerrit-PatchSet: 1
Gerrit-Owner: Damien Zammit <damien at zamaudio.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170903/d86c799f/attachment.html>


More information about the coreboot-gerrit mailing list