edk2/DynamicTablesPkg/Library
Sunil V L c5e42e7942 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>
2026-07-21 00:18:25 +00:00
..
Acpi DynamicTablesPkg: Add HMAT generator tests 2026-07-06 07:39:54 +00:00
Common DynamicTablesPkg: Add System Information CM object and parser 2026-07-17 11:12:25 +00:00
DynamicTablesScmiInfoLib DynamicTablesPkg: Add DynamicTablesScmiInfoLib 2024-01-29 16:47:03 +00:00
FdtHwInfoParserLib DynamicTablesPkg/RiscV: Fix ISA string copy in RiscVIntcParser 2026-07-21 00:18:25 +00:00
Smbios DynamicTablesPkg: Smbios System Information (Type 1) 2026-07-17 11:12:25 +00:00