mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
BaseTools/VolInfo: Correct buffer for GenCrc32 tool
If the guided section was encoded with GenCrc32 tool the resulting 'EFI_GUID_DEFINED_SECTION.DataOffset' field points to the start of the meaningfull data that follows the CRC32 value. But if we want to decode the section with GenCrc32 tool we need to provide a buffer that includes the CRC32 value itself. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
parent
6a2b20ff97
commit
9fc029ee62
@ -2009,6 +2009,13 @@ Returns:
|
|||||||
);
|
);
|
||||||
free (ExtractionTool);
|
free (ExtractionTool);
|
||||||
|
|
||||||
|
if (!CompareGuid (
|
||||||
|
EfiGuid,
|
||||||
|
&gEfiCrc32GuidedSectionExtractionProtocolGuid
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
DataOffset -= 4;
|
||||||
|
}
|
||||||
Status =
|
Status =
|
||||||
PutFileImage (
|
PutFileImage (
|
||||||
ToolInputFile,
|
ToolInputFile,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user