fiano icon indicating copy to clipboard operation
fiano copied to clipboard

A zero image is currently parsed as a BIOS region with a padding. Is that an intended behavior?

Open xaionaro opened this issue 4 years ago • 1 comments

Currently if I call uefi.Parse on an image with just a bunch of zeros inside, it will be parsed as a BIOS region with a padding.

While I use uefi.Parse to also verify if a received file is really an UEFI image (not something else). And a zero-file is a quite typical case. For example I faced this problem when another program (which extracts an UEFI image) just works wrong (and extracts a zero-image instead).

So the question is: do we consider parsing a bunch of zeros as a valid BIOS region a correct behavior (for fiano) or not?

xaionaro avatar Nov 27 '20 13:11 xaionaro

Currently yes, but we should rethink this when we add better support for AMD and other file systems like CBFS

GanShun avatar Jul 19 '21 16:07 GanShun