Automagic: Remove the superfluous num_entries fields

This commit is contained in:
Mike Auty
2021-08-26 16:18:27 +01:00
parent 1e1b3fda36
commit b1156fa0a1
+2 -4
View File
@@ -124,8 +124,7 @@ class DtbTest32bit(DtbTest):
super().__init__(layer_type = layers.intel.WindowsIntel,
ptr_struct = "I",
ptr_reference = [0x300],
mask = 0xFFFFF000,
num_entries = 1024)
mask = 0xFFFFF000)
class DtbTest64bit(DtbTest):
@@ -134,8 +133,7 @@ class DtbTest64bit(DtbTest):
super().__init__(layer_type = layers.intel.WindowsIntel32e,
ptr_struct = "Q",
ptr_reference = range(0x1ff, 0x100, -1),
mask = 0x3FFFFFFFFFF000,
num_entries = 512)
mask = 0x3FFFFFFFFFF000)
# As of Windows-10 RS1+, the ptr_reference is randomized:
# https://blahcat.github.io/2020/06/15/playing_with_self_reference_pml4_entry/