Added data_offset to pattern matching result, fixes pdb scanning bug

This commit is contained in:
Paul Kermann
2022-02-09 10:40:37 +02:00
parent 52f325ed54
commit a67121f1c1
@@ -357,4 +357,4 @@ class PdbSignatureScanner(interfaces.layers.ScannerInterface):
guid = (16 * '{:02X}').format(g0, g1, g2, g3, g4, g5, g6, g7, g8, g9, ga, gb, gc, gd, ge, gf)
if match.start(0) < self.chunk_size:
yield (guid, a, pdb_name, match.start(0))
yield (guid, a, pdb_name, data_offset + match.start(0))