Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'year' variable referenced before assignment in libjpeg.py,line:34 #57

Open
hackoflpf opened this issue May 26, 2021 · 3 comments
Open
Assignees

Comments

@hackoflpf
Copy link

No description provided.

@chkp-eyalit chkp-eyalit self-assigned this May 26, 2021
@chkp-eyalit
Copy link
Contributor

Hi, I went over the code and the only case in which "year" isn't being initialized before it is being references is if the "wanted_string" doesn't match the expected format. This means that the library would anyway won't recognize the version in this case.

It would help if you could supply the version with which you tested Karta, or preferably a debug print of the "wanted_string" variable (right after line 29).

I really doubt that I will manage to integrate a fix to this issue (see my last commit), but if you will send me the debug print I asked for in the near future (few hours) I might be able to make it.

@hackoflpf
Copy link
Author

emm,i just use git to download the whole project, then i test karta_identifier.py on ida pro 7.5,it doesn't work because of the problem i mentioned before.You can just change the indent of 'year' in line34,the problem is in src/libs/libjpeg.py.
image

@hackoflpf
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants