mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-03 08:18:52 +02:00
Fix up consumption of padding.
This commit is contained in:
@@ -798,7 +798,7 @@ class PdbReader:
|
||||
def consume_padding(self, layer_name: str, offset: int) -> int:
|
||||
"""Returns the amount of padding used between fields"""
|
||||
val = self.context.layers[layer_name].read(offset, 1)
|
||||
if not (int(val[0]) & 0xf0):
|
||||
if not ((val[0] & 0xf0) == 0xf0):
|
||||
return 0
|
||||
return (int(val[0]) & 0x0f)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user