Skip to content

Commit 30015af

Browse files
authored
peview: Display XFG and Cast guard entries (winsiderss#1096)
1 parent 9399742 commit 30015af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/peview/ldprp.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,16 @@ INT_PTR CALLBACK PvPeLoadConfigDlgProc(
406406
ADD_VALUE(L"Guard EH Continuation table", PhaFormatString(L"0x%Ix", (Config)->GuardEHContinuationTable)->Buffer); \
407407
ADD_VALUE(L"Guard EH Continuation table entry count", PhaFormatUInt64((Config)->GuardEHContinuationCount, TRUE)->Buffer); \
408408
} \
409+
if (RTL_CONTAINS_FIELD((Config), (Config)->Size, GuardXFGCheckFunctionPointer)) \
410+
{ \
411+
ADD_VALUE(L"XFG check-function pointer", PhaFormatString(L"0x%Ix", (Config)->GuardXFGCheckFunctionPointer)->Buffer); \
412+
ADD_VALUE(L"XFG dispatch-function pointer", PhaFormatString(L"0x%Ix", (Config)->GuardXFGDispatchFunctionPointer)->Buffer); \
413+
ADD_VALUE(L"XFG table dispatch-function pointer", PhaFormatString(L"0x%Ix", (Config)->GuardXFGTableDispatchFunctionPointer)->Buffer); \
414+
} \
415+
if (RTL_CONTAINS_FIELD((Config), (Config)->Size, CastGuardOsDeterminedFailureMode)) \
416+
{ \
417+
ADD_VALUE(L"Cast guard failure mode", PhaFormatString(L"0x%Ix", (Config)->CastGuardOsDeterminedFailureMode)->Buffer); \
418+
} \
409419
}
410420

411421
if (PvMappedImage.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC)

0 commit comments

Comments
 (0)