UefiCpuPkg/CpuExceptionHandlerLib: Increase mBuffer size

Add missing GDT alignment into mBuffer to prevent possible memory
corruption on ALIGN_POINTER operation on NewGdtTable
in ArchExceptionHandler

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Savva Mitrofanov 2022-12-09 16:46:50 +06:00 committed by Mikhail Krichanov
parent becf2d72f6
commit fb2e96a8aa
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ EXCEPTION_HANDLER_DATA mExceptionHandlerData = {
};
UINT8 mBuffer[CPU_STACK_SWITCH_EXCEPTION_NUMBER * CPU_KNOWN_GOOD_STACK_SIZE
+ CPU_TSS_GDT_SIZE];
+ sizeof (IA32_TSS_DESCRIPTOR) + CPU_TSS_GDT_SIZE];
/**
Common exception handler.