-
Notifications
You must be signed in to change notification settings - Fork 112
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
Incorrect loop detection for a section with an non-conditional jump inside it #7
Comments
Actually I got second thoughts on this one. What is the "loop" definition? |
Let me try... A loop in an assembly listing is a block of code which runs repeatedly multiple times, until a condition is met. Now, this is a loop in terms of the definition:
This isn't:
( |
Ok, then by the definition of loop...would this be incorrect?
|
By the definition, it isn't a loop. The commands 1, 2, 5, 6 are a loop, but it's not a contiguous block. Whether the whole block should be marked is a tricky question. What if the number of commands which are not part of the loop is very large? The mark would mis-inform. Perhaps a good solution would be to have the line next to the commands which are not actually part of the loop grayed out. Like this: |
Ok, I see your point @justanotheranonymoususer, unfortunately x64dbg doesnt´t allow that kind of grayed out lines, besides that, making a more complex loops detection algo is not something I got much interest on making right now, anyways PRs are open if you would like to contribute in this matter or any other feature or improvement, anything is well received. Thanks |
Well, this is the ideal option, and I understand that it's not trivial. The original request was just to not mark code which doesn't contain loops at all. Like this one:
In any case, thank you for the plugin, it already is awesome and very helpful! |
An example:
The text was updated successfully, but these errors were encountered: