From d4dbe5e101dcb86974f8dce3505b38343b83b432 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Wed, 3 Jul 2024 19:32:22 -0400 Subject: [PATCH] SecurityPkg/Tcg2Acpi: Revise debug print This debug print may attempt to print a string without a null terminator that can lead to a machine check. The value printed is substituted with a source buffer to still allow debug. Signed-off-by: Michael Kubacki --- SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c b/SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c index 5addd2f563..b3c99a97e0 100644 --- a/SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c +++ b/SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c @@ -641,7 +641,7 @@ UpdateHID ( CopyMem (DataPtr, Hid, TPM_HID_ACPI_SIZE); } - DEBUG ((DEBUG_INFO, "TPM2 ACPI _HID is patched to %a\n", DataPtr)); + DEBUG ((DEBUG_INFO, "TPM2 ACPI _HID is patched to %a\n", Hid)); return Status; }