summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorVitaly Cheptsov <vit9696@users.noreply.github.com>2025-04-28 18:09:39 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-12-03 15:29:51 +0300
commit939ebe48e6d6e157b0768368445a51172fee53b9 (patch)
tree4070c16767f9f47799e0e6c5475507ce3c7d42e4 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parent95c4d1e17224ea06ccbf31acbc67c12d9c94e0c2 (diff)
downloadedk2-939ebe48e6d6e157b0768368445a51172fee53b9.tar.xz
BaseTools/VfrCompile: Fix memory issues
Using GCC 13.3.0 discovers an out of bounds memory access in VfrCompile when building DriverSampleDxe. This is also discoverable with ASan. The issue here is that EFI_IFR_TYPE_VALUE is a flexible type and when passed by value for string types only the header part is accessible. Assuming the remainder is zero seems to be ok as gZeroEfiIfrTypeValue is used as a variable source. This change also fixes a warning for new[]/delete[] mismatch discovered by ASan. Co-authored-by: Vitaly Cheptsov <vit9696@protonmail.com> Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions