]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/VolInfo: Correct buffer for GenCrc32 tool
authorKonstantin Aladyshev <aladyshev22@gmail.com>
Tue, 19 Jul 2022 13:44:35 +0000 (21:44 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 2 Oct 2022 05:34:38 +0000 (05:34 +0000)
commit9fc029ee6248e7998a478e02dc1abf82ac8ae376
treeef3f73f74715f696e851460c404696d0323ba318
parent6a2b20ff97e4256970644a07f74a4c5655bf5072
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>
BaseTools/Source/C/VolInfo/VolInfo.c