Attention is currently required from: Felix Singer, Nico Huber, Edward O'Callaghan, Angel Pons, Light.
Patch set 11:Code-Review +2
View Change
1 comment:
File ich_descriptors.c:
Patch Set #7, Line 1364: int ret = read_ich_descriptors_from_dump(dump, len, &cs, &desc);
What about you Nico?
I also want to understand what to do with this patch. Specifically, the question whether it can cover a bug.
The change is setting default values (all 0s). Without it, `ich_descriptors` will have garbage at the start.
Then `read_ich_descriptors_from_dump()` is expected to initialise all fields. So if works, it doesn't matter what was at the start: 0s or garbage.
If it doesn't work, some of the values would not be initialised (a bug). In the first case they would remain 0s, in the second case they would remain garbage (garbage can be also 0s).
I don't know what is easier to spot: unintended 0s or garbage. Garbage can be anything, it can look like valid values too?
To view, visit change 62763. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6e5bc84c6199a0731db0a9c8ef56f1215686dab2
Gerrit-Change-Number: 62763
Gerrit-PatchSet: 11
Gerrit-Owner: Light <aarya.chaumal@gmail.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Nico Huber <nico.h@gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Light <aarya.chaumal@gmail.com>
Gerrit-Comment-Date: Mon, 02 May 2022 23:47:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Nico Huber <nico.h@gmx.de>
Comment-In-Reply-To: Edward O'Callaghan <quasisec@chromium.org>
Comment-In-Reply-To: Light <aarya.chaumal@gmail.com>
Comment-In-Reply-To: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-MessageType: comment