From 8bd16bab859480582f89962c878e867d6c8ab985 Mon Sep 17 00:00:00 2001 From: Florent Monjalet Date: Tue, 24 Nov 2015 19:16:03 +0100 Subject: MemStruct: fix example to use Ptr to MemSizedArray rather that Array --- example/jitter/memstruct.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/jitter/memstruct.py b/example/jitter/memstruct.py index 775b3643..934c1c22 100644 --- a/example/jitter/memstruct.py +++ b/example/jitter/memstruct.py @@ -7,7 +7,7 @@ as well. from miasm2.analysis.machine import Machine from miasm2.analysis.mem import MemStruct, MemSelf, MemVoid, MemStr,\ - Ptr, Num, Array, set_allocator + MemSizedArray, Ptr, Num, Array, set_allocator from miasm2.os_dep.common import heap # Instanciate a heap @@ -130,7 +130,7 @@ class DataArray(MemStruct): # MemStruct containing only one field named "value" will be created, so # that Ptr can point to a MemStruct instance. Here, # data_array.deref_array.value will allow to access an Array - ("arrayptr", Ptr("