-
Notifications
You must be signed in to change notification settings - Fork 98
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
discrepancy between sark.Line(ea=foo).is_tail and is_tail(idc.GetFlags(ea)), also for is_code #85
Comments
Thanks! |
Hi Tamir, No worries, it's important to take time off also from hobby projects. Hope you've had a good start of the new year :) Happy coding! |
Just looked into it again - I don't think I consider it a bug. Why is this needed? |
Thanks for taking a look at this. I appreciate that Sark is trying to do the right thing by normalizing addresses. I must have missed this in the documentation.
Given that Sark normalizes the address (to represent a valid line), it would make sense to remove the So to avoid confusion, I'd suggest removing the At least, this would be my understanding, but I might have misunderstood the function of is_tail ^^ |
I was using |
It seems that you are correct. |
Thanks, that work-around would suffice.
Ok, so would you agree that removing |
I am willing to add a deprecation warning, but since some code may already be using it, I'd rather not just break people's code. |
But yeah, I agree that it should eventually be removed as it is misleading. |
Hi,
First off. Sark is what I've always wished the IDA API looked like. Thank you so much for reigniting the joy and excitement of binary analysis!! The graph API looks extremely powerful, and the concepts of Sark feel very well thought out. Hats off!
Now, for the issue I happened to stumble upon today, when exploring what the Sark world had to offer.
It seems there is currently a discrepancy between how IDA and Sark handles
is_code
andis_tail
(I did not checkis_data
, but it would make sense to check that too as part of this issue).The proof of concept is as follows:
I can't share this database, however, I hope this should be easy to reproduce. If not, just ping me and we'll do some troubleshooting together.
Oh, and for the record, this is at IDA 7.3, using the 6.x branch of Sark (downloaded today, so should be the latest).
Cheers,
Robin
The text was updated successfully, but these errors were encountered: