the following patch was just integrated into master: commit b946f12ed0c4a4177b64c032f17dd5b3fd2a0c99 Author: Patrick Georgi pgeorgi@chromium.org Date: Sat Sep 19 13:59:36 2015 +0200
cbfstool: make fmap search more strict
Since fmap doesn't come with a checksum, we resort to a number of heuristics to determine if a given location hosts an fmap (instead of another data structure that happens to store the fmap magic string at the right location).
The version test is particularly effective against strings containing the magic (which either terminate with 0, or have some other ASCII data, but rarely a '\001' byte inside the string).
Change-Id: Ic66eb0015c7ffdfe25e0054b7838445b8ba098e9 Signed-off-by: Patrick Georgi pgeorgi@chromium.org Reviewed-on: http://review.coreboot.org/11690 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin adurbin@chromium.org
See http://review.coreboot.org/11690 for details.
-gerrit