You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diagnostics.Error(DiagnosticId.PE_ERR_VerifyContextInvalidObject,$"The {nameof(PEBaseRelocationBlock.PageLink)} in the base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)} is null and missing a link to an actual section");
$"The {nameof(PEBaseRelocationBlock.PageLink)} in the base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)} is null and missing a link to an actual section");
@@ -77,11 +84,13 @@ public void Relocate(ulong newImageBase, DiagnosticBag diagnostics)
77
84
{
78
85
if(sectionDataisnull)
79
86
{
80
-
diagnostics.Error(DiagnosticId.PE_ERR_BaseRelocationInvalid,$"Unable to find the section data for the rva {rva} in the base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)}");
$"Unable to find the section data for the rva {rva} in the base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)}");
81
89
return;
82
90
}
83
91
84
-
diagnostics.Warning(DiagnosticId.PE_WRN_BaseRelocationInVirtualMemory,$"Invalid RVA {rva} found in virtual memory from base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)}");
$"Invalid RVA {rva} found in virtual memory from base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)}");
85
94
continue;
86
95
}
87
96
@@ -102,6 +111,7 @@ public void Relocate(ulong newImageBase, DiagnosticBag diagnostics)
@@ -152,6 +165,7 @@ public void Relocate(ulong newImageBase, DiagnosticBag diagnostics)
152
165
{
153
166
gotoWarningOutOfBound;
154
167
}
168
+
155
169
break;
156
170
default:
157
171
diagnostics.Error(DiagnosticId.PE_ERR_BaseRelocationInvalid,$"Unsupported relocation type {relocation.Type} #{j} in {nameof(PEBaseRelocationBlock)}{baseRelocationBlock}.");
@@ -160,7 +174,8 @@ public void Relocate(ulong newImageBase, DiagnosticBag diagnostics)
160
174
161
175
continue;
162
176
WarningOutOfBound:
163
-
diagnostics.Warning(DiagnosticId.PE_WRN_BaseRelocationInVirtualMemory,$"Cannot process base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)}. The linked address is out of bound.");
$"Cannot process base relocation block {baseRelocationBlock} at index #{i} in the {nameof(PEBaseRelocationDirectory)}. The linked address is out of bound.");
164
179
continue;
165
180
166
181
}
@@ -174,5 +189,4 @@ public void Relocate(ulong newImageBase, DiagnosticBag diagnostics)
0 commit comments