From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:UEFI firmware volume (PI)" |
|---|
| claim | "A compression section (type 0x01) adds UncompressedLength u32 and CompressionType u8 (0 = not compressed, 1 = EFI standard (Tiano/UEFI) compression) after the common header, 9 bytes in all with the 4-byte common header (13 bytes in EFI_COMPRESSION_SECTION2, whose common header carries the 4-byte ExtendedSize); the payload follows and is itself a sequence of sections. UEFITool also names type 2 (customized) and 0x86 (LZMA with x86 filter)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:UEFI firmware volume (PI)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "EFI_COMPRESSION_SECTION" |
|---|
| size | "0x9" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "EFI_COMMON_SECTION_HEADER" |
|---|
| name | "CommonHeader" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "UncompressedLength" |
|---|
|
| offset | "0x8" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "CompressionType" |
|---|
|
|
|---|
| notes | "Offsets above are for EFI_COMPRESSION_SECTION (4-byte common header, whole struct 9 bytes, pack(1)). EFI_COMPRESSION_SECTION2 uses EFI_COMMON_SECTION_HEADER2 (8 bytes), so UncompressedLength is at 8, CompressionType at 12, size 13." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "EFI_NOT_COMPRESSED 0x00, EFI_STANDARD_COMPRESSION 0x01 and the struct." |
|---|
| repo | "tianocore/edk2" |
|---|
| commit | "c1415771ac592ad8509351c46cd3cda4f38d7d52" |
|---|
| path | "MdePkg/Include/Pi/PiFirmwareFile.h" |
|---|
| lines | "267-289" |
|---|
|
| type | "source" |
|---|
| detail | "Adds EFI_CUSTOMIZED_COMPRESSION 0x02 and EFI_CUSTOMIZED_COMPRESSION_LZMAF86 0x86." |
|---|
| repo | "LongSoft/UEFITool" |
|---|
| commit | "dac91b26733ca21cb204e41614c1b8c81cc50860" |
|---|
| path | "common/ffs.h" |
|---|
| lines | "425-435" |
|---|
|
| type | "source" |
|---|
| detail | "Read EFI_COMPRESSION_SECTION (CommonHeader, UncompressedLength, CompressionType) and EFI_COMPRESSION_SECTION2 with EFI_COMMON_SECTION_HEADER2; #pragma pack(1) at line 17." |
|---|
| repo | "tianocore/edk2" |
|---|
| commit | "c1415771ac592ad8509351c46cd3cda4f38d7d52" |
|---|
| path | "MdePkg/Include/Pi/PiFirmwareFile.h" |
|---|
| lines | "270-306" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "EFI_COMPRESSION_SECTION" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T03:50:25.951Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:50:41.007Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read MdePkg/Include/Pi/PiFirmwareFile.h at the cited commit (pack 1): EFI_COMPRESSION_SECTION = EFI_COMMON_SECTION_HEADER + UINT32 UncompressedLength + UINT8 CompressionType = 9 bytes; EFI_COMPRESSION_SECTION2 uses EFI_COMMON_SECTION_HEADER2 (8 bytes) = 13; EFI_NOT_COMPRESSED 0, EFI_STANDARD_COMPRESSION 1. Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T07:41:24.592Z" |
|---|
| summary | "The 9-byte size holds only for the 4-byte common header; a section whose common header is the 8-byte HEADER2 form (EFI_COMPRESSION_SECTION2) is 13 bytes. Added as a conditional field and note." |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|