Ticket #102 (new defect)
flashrom: coreboot ROM image file identification heuristic is broken
| Reported by: | stuge | Owned by: | stuge |
|---|---|---|---|
| Priority: | major | Milestone: | flashrom v1.0 |
| Component: | flashrom | Version: | |
| Keywords: | rom image heuristic | Cc: | |
| Dependencies: | Patch Status: | there is no patch |
Description
Non-coreboot ROM images are incorrectly identified as coreboot images, and arbitrary data is used in flashrom code.
The heuristic is far too simplistic, we need a proper signature in all coreboot images. The suggested fix is to add a LAR header to the ROM image, I like that too.
When an image is incorrectly identified, junk data used by flashrom typically causes flashrom to segfault.
