summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
diff options
context:
space:
mode:
authorEvgenii Shatokhin <euspectre@gmail.com>2025-10-20 10:54:59 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-11-22 14:53:36 +0300
commite93ee87643a30df3bffede2f4cdadfc7be88f0bd (patch)
tree219a0129b764dc33717221e65fe3148f1fabc1aa /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
parent83f41e81fc79c64a11b632e6bedb240a3022db68 (diff)
downloadedk2-e93ee87643a30df3bffede2f4cdadfc7be88f0bd.tar.xz
BaseTools: FMMT: Fix incorrect size calculation in ModifyTest()
There is another issue in FvHander.py similar to the one fixed by a60334ad59eb ("BaseTools: Fix FMMT FvHandler Padding operation issue"). For a guided section (ParTree.Data.Type == 0x02), the length of ParTree.Data.OriData is used to obtain the original size of the data even after ParTree.Data.OriData has changed, which is incorrect. This caused the following issue I observed. I built OVMF image for Aarch64 and then tried to add a couple FFS modules to it with 'FMMT -a [...]'. The resulting image turned out to be invalid: the total size of the image was less than the size of the firmware volume within it. UEFITool failed to load such firmware image and complained: "parseRawArea: one of objects inside overlaps the end of data". This patch fixes the issue. Signed-off-by: Evgenii Shatokhin <euspectre@gmail.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c')
0 files changed, 0 insertions, 0 deletions