View Change
3 comments:
File cli_classic.c:
File libflashrom.c:
Patch Set #18, Line 462:
for (offset = 0;
offse
This does two things:
- Makes the stride fall within the length passed into the function.
- Makes the stride align with block boundaries on the chip.
We could also try setting the stride based on rom_offset and len, e.g. 'stride = log2(len) / 2' in the loop initialization, but that requires adding -lm to link options or implementing our own log2().
Patch Set #18, Line 479: break;
Updated to use rom_offset + len instead of chip_size to enforce the boundaries passed into the function.
To view, visit change 23203. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I0e7fad38ed79a84d41358e1f175c36d255786c12
Gerrit-Change-Number: 23203
Gerrit-PatchSet: 16
Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz>
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: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Werner Zeh <werner.zeh@siemens.com>
Gerrit-Comment-Date: Fri, 27 Jul 2018 00:09:00 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No