joxeankoret / diaphora

Diaphora, the most advanced Free and Open Source program diffing tool.
http://diaphora.re
GNU Affero General Public License v3.0
3.6k stars 371 forks source link

UnboundLocalError: local variable 'succ_block' referenced before assignment #207

Closed fatrolls closed 3 years ago

fatrolls commented 3 years ago

Normally I have no problem using diaphora.. but 1 case, doesn't seem to export sqlite database

I get this error

error

yes bug is real

I don't know python at all but I fixed the bug from a stackoverflow question. Here is my fix

I added

global succ_block

under

    constants = []

on line 1570

fix

Works good now! :)

I noticed you recently fixed this bug in the last commit I downloade the old version "Diaphora 2.0.2 Latest on Oct 18, 2019"

So yeah.. now it seems to work fine after I re-downloaded the last whole github project.

No problems anymore. You sure it has to be pred_block instead of succ_block ?

joxeankoret commented 3 years ago

Hi! This bug was fixed with this commit some time ago: https://github.com/joxeankoret/diaphora/commit/b019145d1efdcadbdafd6ea95f3d579bc698fbda