File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ description = "Python wrapper to manipulate bindiff files"
88authors = [{ name = " Robin David" , email = " rdavid@quarkslab.com" }]
99license = { text = " Apache Software License (Apache License, Version 2)" }
1010readme = { file = " README.md" , content-type = " text/markdown" }
11- version = ' 0.2.1 '
11+ version = ' 0.2.2 '
1212requires-python = " >=3.9"
1313dependencies = [
1414 " python-magic; os_name!='nt'" ,
Original file line number Diff line number Diff line change @@ -242,8 +242,9 @@ def iter_instruction_matches(
242242 """
243243 insts = []
244244 for addr , instr in block1 .instructions .items ():
245- if addr2 := self .primary_instruction_match .get (addr ):
246- insts .append ((instr , block2 .instructions [addr2 ]))
245+ if inst_map := self .primary_instruction_match .get (addr ):
246+ if addr2 := inst_map .get (block1 .function .addr ):
247+ insts .append ((instr , block2 .instructions [addr2 ]))
247248 return insts
248249
249250 def get_match (
You can’t perform that action at this time.
0 commit comments