Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 8c8aea0e0aa728d8f891deae8645c6031a16d97d
      
https://github.com/tianocore/edk2/commit/8c8aea0e0aa728d8f891deae8645c6031a16d97d
  Author: Michael D Kinney <[email protected]>
  Date:   2025-12-23 (Tue, 23 Dec 2025)

  Changed paths:
    M UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c

  Log Message:
  -----------
  UnitTestFrameworkPkg/UnitTestLib: Fix printf() error from clang

Update UnitTestLib to not pass UnitTest->Log as the format
string to printf(). If UnitTest->Log contains any printf()
format specifiers, then printf() will look for arguments that
are not present and will read beyond the stack frame.

Change use of printf() to an fwrite() to stdout followed by
an fflush() to stdout.

Signed-off-by: Michael D Kinney <[email protected]>


  Commit: d29ff296fb7a07d7b7f200684078cb6d69ae2bf9
      
https://github.com/tianocore/edk2/commit/d29ff296fb7a07d7b7f200684078cb6d69ae2bf9
  Author: Michael D Kinney <[email protected]>
  Date:   2025-12-23 (Tue, 23 Dec 2025)

  Changed paths:
    M 
UnitTestFrameworkPkg/Library/UnitTestDebugAssertLib/UnitTestDebugAssertLibHost.cpp

  Log Message:
  -----------
  UnitTestFrameworkPkg/UnitTestDebugAssertLibHost: Fix clang error

Fix error reported by clang in UnitTestDebugAssertLibHost
that the function snprintf() is undefined. Add include of
<stdio.h> to resolve error.

Signed-off-by: Michael D Kinney <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/d57edbe06095...d29ff296fb7a

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