mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
Fix stupid off-by-one error in erase verification
As reported by Jody McIntyre. Thanks! Corresponding to flashrom svn r389 and coreboot v2 svn r3894. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
parent
a657e94127
commit
9371dc3cb1
@ -605,7 +605,7 @@ int main(int argc, char *argv[])
|
||||
memcpy(buf, (const char *)flash->virtual_memory, size);
|
||||
else
|
||||
flash->read(flash, buf);
|
||||
for (erasedbytes = 0; erasedbytes <= size; erasedbytes++)
|
||||
for (erasedbytes = 0; erasedbytes < size; erasedbytes++)
|
||||
if (0xff != buf[erasedbytes]) {
|
||||
printf("FAILED!\n");
|
||||
fprintf(stderr, "ERROR at 0x%08x: Expected=0xff, Read=0x%02x\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user