Mostly looks good, just a couple potential issues.
Patch set 3:Code-Review -1
View Change
2 comments:
File ifwi.c:
Patch Set #3, Line 242: char _name[sizeof((*layout)->entries[0].name)];
Don't you need to allocate memory and set (*layout)->entries[0].name? I see that new_layout() is called, but that only allocates size for the structs themselves, right?
Patch Set #3, Line 368: free(*layout);
flashrom_layout_release(*layout)?
To view, visit change 31018. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I1f1ef4c5d109b81dec7a11bca04ba89204fa84eb
Gerrit-Change-Number: 31018
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Mon, 02 Dec 2019 01:20:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment