summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorChris Fernald <chfernal@microsoft.com>2025-06-12 00:21:34 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-01-19 14:04:24 +0300
commit79eab6ffff07deb80c698453bb67d348d81ab975 (patch)
tree973bae7d3c2e4dc50f254417bc48cc713dc259da /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parent564b8e182569eaf611bad765587b40387dafea33 (diff)
downloadedk2-79eab6ffff07deb80c698453bb67d348d81ab975.tar.xz
StandaloneMmPkg: Avoid updating attributes on 0 length sections
PE images can have a zero virtual length section for placeholders, unused relocation, or other artifacts. At best, updated attributes on such sections is a no-op, but at worst is can cause spurious errors and asserts. Specifically asserts have been observed in Hafnium when attempting to update attributes on a zero length section. It is best to just skip such sections entirely. This commit simply logs and skips these sections explicitly. Signed-off-by: Chris Fernald <chfernal@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions