Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/35484 )
Change subject: util/smc: Add and use new tool smcbiosinfo
......................................................................
Patch Set 9:
(2 comments)
https://review.coreboot.org/c/coreboot/+/35484/9/util/smc/smcbiosinfo/smcbio...
File util/smc/smcbiosinfo/smcbiosinfo.c:
https://review.coreboot.org/c/coreboot/+/35484/9/util/smc/smcbiosinfo/smcbio...
PS9, Line 100: ret = 0;
Usually it counts as failure, 0 should only be returned if the tool did it's job.
isn't printing a helpmessage doing it's job?
https://review.coreboot.org/c/coreboot/+/35484/9/util/smc/smcbiosinfo/smcbio...
PS9, Line 164: memcpy(&sbu.boardid[1], CONFIG_SUPERMICRO_BOARDID, strlen(CONFIG_SUPERMICRO_BOARDID));
this can overflow, how about MIN(sizeof(sbu.boardid) - 1, ... […]
check is on line 115
--
To view, visit
https://review.coreboot.org/c/coreboot/+/35484
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id608c2ce78614b45a2fd0b26d97d666f02223998
Gerrit-Change-Number: 35484
Gerrit-PatchSet: 9
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Nico Huber
nico.h@gmx.de
Gerrit-CC: Patrick Rudolph
siro@das-labor.org
Gerrit-Comment-Date: Tue, 24 Sep 2019 09:12:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber
nico.h@gmx.de
Gerrit-MessageType: comment