mirror of https://github.com/acidanthera/audk.git
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:
parent
becf2d72f6
commit
fb2e96a8aa
|
@ -24,7 +24,7 @@ EXCEPTION_HANDLER_DATA mExceptionHandlerData = {
|
||||||
};
|
};
|
||||||
|
|
||||||
UINT8 mBuffer[CPU_STACK_SWITCH_EXCEPTION_NUMBER * CPU_KNOWN_GOOD_STACK_SIZE
|
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.
|
Common exception handler.
|
||||||
|
|
Loading…
Reference in New Issue