Poolscanner: Fix error in index checking.

This commit is contained in:
Mike Auty
2019-11-09 00:17:07 +00:00
parent 082b556f43
commit 23b14b772a
@@ -94,10 +94,10 @@ class PoolHeaderScanner(interfaces.layers.ScannerInterface):
if constraint.index is not None:
if constraint.index[0]:
if header.index < constraint.index[0]:
if header.PoolIndex < constraint.index[0]:
continue
if constraint.index[1]:
if header.index > constraint.index[1]:
if header.PoolIndex > constraint.index[1]:
continue
except exceptions.InvalidAddressException:
# The tested object's header doesn't point to valid addresses, ignore it