minor changes for readability

This commit is contained in:
Jack Wenger
2021-02-08 14:56:40 -05:00
parent a529aa846f
commit fa1c03d24a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ class WindowsCrashDump64Layer(WindowsCrashDump32Layer):
mapped_offset += length mapped_offset += length
# Find the last segment in a file which will be at the end or two pages from the end # Find the last segment in a file which will be at the end or two pages from the end. We multiply by 32 as we want to offset bby words rather than bits
if (bit_position == bitmap_len - 1 or bit_position == bitmap_len - 1 -32*0x2000) and current_bit == 1: if (bit_position == bitmap_len - 1 or bit_position == bitmap_len - 1 -32*0x2000) and current_bit == 1:
length = (bit_position - start_position) * 0x1000 length = (bit_position - start_position) * 0x1000
segments.append((start_position * 0x1000, mapped_offset, length, length)) segments.append((start_position * 0x1000, mapped_offset, length, length))
@@ -23,8 +23,8 @@ class Crashinfo(interfaces.plugins.PluginInterface):
] ]
def _generator(self, layer): def _generator(self, layer):
for seg in layer.mapping(0x0, layer.maximum_address, ignore_errors = True): for offset, length, mapped_offset in layer.mapping(0x0, layer.maximum_address, ignore_errors = True):
yield(0,(seg[0],seg[2],seg[1])) yield(0,(offset,length,mapped_offset))
def run(self): def run(self):