maat icon indicating copy to clipboard operation
maat copied to clipboard

Attribute `value` of `mem_access` not writable

Open arullier-cs opened this issue 3 years ago • 0 comments

Hello,

Following the documentation and tutorial related to event, it seems that mem_access is not currently accessible for write fashion from Python bindings.

def mem_written_callback(m: MaatEngine):
    print(f"Writing mem at {m.info.mem_access.addr}")
    print(f"Current value {m.mem.read(m.info.mem_access.addr, m.info.mem_access.size)}"
    print(f"New value {m.info.mem_access.value}")
    m.info.mem_access.value = 0xdeadbeef # does not take count of size, just for the example.

As a result:

AttributeError: attribute 'value' of 'MemAccess' objects is not writable

Thanks you,

arullier-cs avatar Oct 06 '22 14:10 arullier-cs