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

Bug Report: get_instruction_addresses returning 0 instructions #21

Open
AntoineBlaud opened this issue Apr 5, 2023 · 1 comment
Open

Comments

@AntoineBlaud
Copy link

Hello,

Thank you for creating such great plugins. I have identified a small issue with the Tenet plugin that I would like to address. Specifically, I noticed that the get_instruction_addresses function returns zero instructions when running certain programs, such as /bin/ls. After debugging, I determined that this issue comes from the code snippet that drops data segments, as shown below:

if seg.sclass != ida_segment.SEG_CODE:
    continue

Although I was able to resolve the issue by removing this code, doing so may slow down the loading of traces. I would like to explore alternative solutions to this problem to ensure optimal performance of the plugin while still preserving its functionality.

@J-jaeyoung
Copy link

J-jaeyoung commented Jun 3, 2023

I resolved the issue by changing that code to the following,

- if seg.sclass != ida_segment.SEG_CODE:
+ if seg.sclass != ida_segment.SEG_CODE and seg.sclass != ida_segment.SEG_DATA
...

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