handle pad files and ignore tiano compressed sections

This commit is contained in:
Trammell hudson 2018-01-26 23:09:57 -05:00
parent 356914f9c3
commit 0e22590c5e
Failed to extract signature
2 changed files with 6 additions and 4 deletions

View File

@ -197,10 +197,10 @@ sub process_ffs
my $data = substr($ffs, $data_offset);
my $name = EFI::file_type_lookup($type);
if ($name eq 'RAW')
if ($name eq 'FFS_PAD' or $name eq 'RAW')
{
# we are done here
printf "%s/%s.ffs: RAW length 0x%x \n", $base, $guid, $len;
printf "%s/%s.ffs: $name length 0x%x \n", $base, $guid, $len;
return;
}
@ -265,8 +265,9 @@ sub process_section
return;
}
if ($type eq 'RAW')
{
if ($type eq 'RAW'
or $type eq 'TIANO_COMPRESSED'
) {
return;
}

View File

@ -68,6 +68,7 @@ our %file_types = qw/
our %section_types = qw/
TIANO_COMPRESSED 0x01
GUID_DEFINED 0x02
PE32 0x10
PIC 0x11