adds dynamic length of pool header alignments

This commit is contained in:
Jan
2020-07-17 18:07:23 +01:00
committed by ikelos
parent af1b8c03e7
commit e5d51eb9b7
@@ -361,7 +361,12 @@ class PoolScanner(plugins.PluginInterface):
if not is_windows_10:
scan_layer = context.layers[scan_layer].config['memory_layer']
for constraint, header in cls.pool_scan(context, scan_layer, symbol_table, constraints, alignment = 8):
if symbols.symbol_table_is_64bit(context, symbol_table):
alignment = 0x10
else:
alignment = 8
for constraint, header in cls.pool_scan(context, scan_layer, symbol_table, constraints, alignment = alignment):
mem_object = header.get_object(type_name = constraint.type_name,
use_top_down = is_windows_8_or_later,