mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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> |
||
|---|---|---|
| .. | ||
| Acpi | ||
| Common | ||
| DynamicTablesScmiInfoLib | ||
| FdtHwInfoParserLib | ||
| Smbios | ||