Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: c5e42e79428ef736a975909bba042d9504c6c47e
      
https://github.com/tianocore/edk2/commit/c5e42e79428ef736a975909bba042d9504c6c47e
  Author: Sunil V L <[email protected]>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M DynamicTablesPkg/Library/FdtHwInfoParserLib/RiscV/Intc/RiscVIntcParser.c

  Log Message:
  -----------
  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 <[email protected]>
Signed-off-by: Sunil V L <[email protected]>


  Commit: f539e44fe447e980aa608111716f64030bbb3934
      
https://github.com/tianocore/edk2/commit/f539e44fe447e980aa608111716f64030bbb3934
  Author: Sunil V L <[email protected]>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M DynamicTablesPkg/Library/Acpi/RiscV/AcpiRhctLibRiscV/RhctGenerator.c
    M DynamicTablesPkg/Library/FdtHwInfoParserLib/RiscV/Intc/RiscVIntcParser.c

  Log Message:
  -----------
  DynamicTablesPkg/RiscV: Fix unused variables warnings

Either use the variables or get rid of them.

Signed-off-by: Sunil V L <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/97665a4ef0ee...f539e44fe447

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to