From 32928415e36b3e234efb5c24143e06060a68fba3 Mon Sep 17 00:00:00 2001 From: "Lendacky, Thomas" Date: Thu, 13 May 2021 10:26:56 -0500 Subject: [PATCH] UefiCpuPkg/CpuExceptionHandler: Add missing comma to exception name array BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3373 An update to expand the mExceptionNameStr array failed to add a comma after original last entry, therefore causing the #CP name to have extra incorrect characters and the remaining entries to be indexed incorrectly (off by 1). Add a comma after the "#CP" entry to resolve this issue. Fixes: 5277540e37e88a1a69f9517c4ad895051b4b3ed3 Cc: Allen Wynn Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kumar Signed-off-by: Tom Lendacky Message-Id: <40e55bf6563ed8ea4962a1219efbe1ab77a56cc4.1620919615.git.thomas.lendacky@amd.com> Reviewed-by: Laszlo Ersek --- UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c index c9003b10e5..49d0041e2f 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c @@ -44,7 +44,7 @@ CONST CHAR8 *mExceptionNameStr[] = { "#MC - Machine-Check", "#XM - SIMD floating-point", "#VE - Virtualization", - "#CP - Control Protection" + "#CP - Control Protection", "Reserved", "Reserved", "Reserved",