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 Fix #49

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Bug Fix #49

merged 1 commit into from
Jun 3, 2024

Conversation

0xWhoa
Copy link

@0xWhoa 0xWhoa commented Mar 6, 2024

In IDA 8.4 - ida_typeinf.idc_print_type() may return a hex-string that ends with "LL".

When attempting to convert it to int() it throws an exception and fails.
Added replace("LL", "") to resolve it

…t ends with "LL".

when attempting to convert it to int() it throws an exception and fails.
added replace("LL", "") to resolve it
@anthonyprintup
Copy link
Collaborator

Would be nicer to cut it off at the first non-digit character, or use a pattern like here:

match = re.match(r"^(?P<sign>[-+])?(?P<prefix>0|0x)?(?P<number>[0-9A-F]+)(?P<suffix>b|o|h|u|i64|ui64)?$",

@anthonyprintup anthonyprintup self-assigned this Jun 2, 2024
@anthonyprintup anthonyprintup added ida-plugin bugfix Provides a fix for an existing bug labels Jun 2, 2024
@herrcore herrcore merged commit cbcce1b into OALabs:main Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Provides a fix for an existing bug ida-plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants