mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-10-01 14:04:54 +02:00
Add in some basic offset checks to the translation section of the test_rig.
This commit is contained in:
@@ -111,6 +111,12 @@ def test_translation():
|
||||
ctx = framework.Context(nativelst)
|
||||
intel, x = intel32(ctx)
|
||||
|
||||
base = layers.physical.BufferDataLayer(ctx, 'base', buffer = b" ")
|
||||
|
||||
print(base.is_valid(0), base.is_valid(0) == True)
|
||||
print(base.is_valid(1), base.is_valid(1) == False)
|
||||
print(base.is_valid(0, 2), base.is_valid(0, 2) == False)
|
||||
|
||||
for val in x:
|
||||
a, b = intel._translate(val)
|
||||
print(hex(val), hex(a), hex(b))
|
||||
|
||||
Reference in New Issue
Block a user