summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorSunil V L <sunilvl@oss.qualcomm.com>2026-04-24 07:29:32 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-21 03:18:25 +0300
commitc5e42e79428ef736a975909bba042d9504c6c47e (patch)
tree712c004bbc709ea11b1ef8132c6778f6b44c896e /MdeModulePkg/Library/PiDxeS3BootScriptLib
parent97665a4ef0ee378bbf3db5375188a6e413c479c4 (diff)
downloadedk2-c5e42e79428ef736a975909bba042d9504c6c47e.tar.xz
DynamicTablesPkg/RiscV: Fix ISA string copy in RiscVIntcParser
The IsaStringInfoParser() routine currently sets the ISA string length to PropSize + 1 and used AsciiStrCpyS() with PropSize + 1 as the destination size. This could lead to incorrect length handling and potential buffer issues. Update the code to: - Set IsaStringInfo.Length to PropSize (actual property size). - Use MAX_ISA_STRING_LENGTH as the destination buffer size when copying the ISA string. - Check the return status of AsciiStrCpyS() and abort with an error message if the copy fails. This ensures safe string handling and prevents buffer overflow or truncation when parsing ISA strings. Reported-by: Zhenyu Liu <lzy00419@outlook.com> Signed-off-by: Sunil V L <sunilvl@oss.qualcomm.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions