-
Notifications
You must be signed in to change notification settings - Fork 951
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
Bug in bin2llvmir Decoder #637
Labels
Comments
Hi, thank you for the report. Indeed it looks like an issue as the boundaries are not checked in those parts of the code. If you want, you can open a pull request to fix this issue. |
seviezhou
added a commit
to seviezhou/retdec
that referenced
this issue
Sep 9, 2019
Reference: avast#637
Merged
PeterMatula
added a commit
that referenced
this issue
Sep 10, 2019
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to translate the following PE file:
pe-Windows-x86-cmd.zip
But in the decoder phase, the retdec just gets an error and exits:
The problem is in file
src/bin2llvmir/optimizations/decoder/ir_modifications.cpp
, functionDecoder::canSplitFunctionOn
, line 426 and line 445, two portions of code:The problem here is, if
up
equals tofncStarts.begin()
, the--up
will crash, the possible fix is:After this fix, the Decoder works well:
The text was updated successfully, but these errors were encountered: