mirror of
https://github.com/syssec-utd/pylingual.git
synced 2026-05-10 18:39:03 -07:00
Merge branch 'syssec-utd:cflow-refactor' into cflow-refactor
This commit is contained in:
@@ -568,6 +568,10 @@ class EditableBytecode:
|
||||
jump.argval = jump.target.offset
|
||||
jump.argrepr = f"to {jump.argval}"
|
||||
|
||||
jump_targets = [inst.argval for inst in self.instructions if inst.is_jump]
|
||||
for inst in self.instructions:
|
||||
inst.is_jump_target = inst.offset in jump_targets
|
||||
|
||||
# fix exception table offsets
|
||||
self.exception_table = {start.offset: (end.offset, target.offset) for start, (end, target) in temp_exception_table.items()}
|
||||
if temp_named_exception_table:
|
||||
|
||||
Reference in New Issue
Block a user