View Change
3 comments:
File dummyflasher.c:
Patch Set #1, Line 175: data->emu_chip = EMULATE_NONE;
This will trigger undefined behavior if `data` is null. Moreover, some compilers will happily optimize out the null check right below because of this. See the second example from here: https://lwn.net/Articles/575563
Patch Set #1, Line 467: {
These braces weren't here before
Patch Set #1, Line 542: emu_data
This was named `data` in `dummy_init`, why use a different name for the same thing here?
To view, visit change 45230. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I972b085875f1277d9ff33326669d2676a3bcd3aa
Gerrit-Change-Number: 45230
Gerrit-PatchSet: 1
Gerrit-Owner: Lachlan Bishop <lxb@google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-Comment-Date: Thu, 10 Sep 2020 05:59:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment