diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2024-07-03 19:32:22 -0400 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-12 16:04:10 +0000 |
commit | d4dbe5e101dcb86974f8dce3505b38343b83b432 (patch) | |
tree | c560bc0df6f3650fa36f9281a9a0564b4cbf89ce /SecurityPkg/Tcg | |
parent | 807ab61359061003c154174799b1e184cb089b46 (diff) | |
download | edk2-d4dbe5e101dcb86974f8dce3505b38343b83b432.tar.gz edk2-d4dbe5e101dcb86974f8dce3505b38343b83b432.tar.bz2 edk2-d4dbe5e101dcb86974f8dce3505b38343b83b432.zip |
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 <michael.kubacki@microsoft.com>
Diffstat (limited to 'SecurityPkg/Tcg')
-rw-r--r-- | SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|