Skip to content

fix: add IDA 8.5 compatibility - #3138

Open
1337Name wants to merge 2 commits into
mandiant:masterfrom
1337Name:fix/ida-8.5-compat
Open

fix: add IDA 8.5 compatibility#3138
1337Name wants to merge 2 commits into
mandiant:masterfrom
1337Name:fix/ida-8.5-compat

Conversation

@1337Name

@1337Name 1337Name commented Aug 5, 2026

Copy link
Copy Markdown

This is just simple 1 line fix.
As seen in the link below IDA 8.5 uses the same (to my knowledge) updated api a IDA 9 as such the version comparison in capa/ida/helpers.py:59 mistakenly does not include ida 8.5 to the upgraded api. This lead to a failure on loading the plugin on ida 8.5 because idaapi.get_inf_structure() has been removed in that idaapi for both 8.5 and 9.x. but for ida 8.5 the path for the old api is taken.

The reason for this bug probably is that 8.5 was released after 9.0 so the helpers.py was never updated for the 8.5 release

Tested by loading the plugin with IDA 8.5.
REFERENCE
https://docs.hex-rays.com/8.5/developer-guide/idapython/idapython-porting-guide-ida-9#inf_structure-accessors

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed
  • This submission includes AI-generated code and I have provided details in the description.

@google-cla

google-cla Bot commented Aug 5, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add bug fixes, new features, breaking changes and anything else you think is worthwhile mentioning to the master (unreleased) section of CHANGELOG.md. If no CHANGELOG update is needed add the following to the PR description: [x] No CHANGELOG update needed

@github-actions
github-actions Bot dismissed their stale review August 5, 2026 01:50

CHANGELOG updated or no update needed, thanks! 😄

As seen in the link below IDA 8.5 uses the same updated api a IDA 9 as
such the compat comparison is wrong and lead to a failure on loading the
plugin because idaapi.get_inf_structure() has been removed in that
idaapi.
https://docs.hex-rays.com/8.5/developer-guide/idapython/idapython-porting-guide-ida-9
@1337Name
1337Name force-pushed the fix/ida-8.5-compat branch from c6ff4dc to 0ff1125 Compare August 5, 2026 02:03
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

Successfully merging this pull request may close these issues.

1 participant