diff options
| -rw-r--r-- | example/ida/ctype_propagation.py | 4 | ||||
| -rw-r--r-- | miasm/core/objc.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/example/ida/ctype_propagation.py b/example/ida/ctype_propagation.py index 3dcd8b98..4cc8907a 100644 --- a/example/ida/ctype_propagation.py +++ b/example/ida/ctype_propagation.py @@ -314,7 +314,7 @@ def analyse_function(): lbl_real_start = loc_db.get_offset_location(addr) lbl_head = loc_db.get_or_create_name_location("start") - first_block = asmcfg.label2block(lbl_real_start) + first_block = asmcfg.loc_key_to_block(lbl_real_start) assignblk_head = AssignBlock( [ @@ -323,7 +323,7 @@ def analyse_function(): ], first_block.lines[0] ) - irb_head = IRBlock(lbl_head, [assignblk_head]) + irb_head = IRBlock(loc_db, lbl_head, [assignblk_head]) ircfg.blocks[lbl_head] = irb_head ircfg.add_uniq_edge(lbl_head, lbl_real_start) diff --git a/miasm/core/objc.py b/miasm/core/objc.py index 87d19dde..24ee84ab 100644 --- a/miasm/core/objc.py +++ b/miasm/core/objc.py @@ -156,7 +156,7 @@ class ObjCInt(ObjC): """C integer""" def __init__(self): - super(ObjCInt, self).__init__(None, None) + super(ObjCInt, self).__init__(None, 0) def __str__(self): return 'int' |