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

ghidra doesn't like enums with negative values #1

Open
BenLubar opened this issue Jan 21, 2020 · 2 comments
Open

ghidra doesn't like enums with negative values #1

BenLubar opened this issue Jan 21, 2020 · 2 comments

Comments

@BenLubar
Copy link

starting an enum at -1 means ghidra adds 1 to every value, resulting in nothing matching up with what it should. in most cases, the only negative enum values are NONE = -1 or something equivalent, so we can just skip those.

@pronvit
Copy link
Contributor

pronvit commented Jan 21, 2020

I wonder if anything has changed... somewhere. I remember this problem but the scripts were working somehow before.

@BenLubar
Copy link
Author

They work, it's just that enums that have a NONE value end up offset by 1

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