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

explorer: assume 32-bit displacement for offsets #1250

Merged
merged 2 commits into from
Dec 29, 2022
Merged

Conversation

mike-hunhoff
Copy link
Collaborator

fixes #1243

see #1243 for discussion on the fix.

Copy link

@github-actions github-actions bot left a comment

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 December 28, 2022 16:32

CHANGELOG updated or no update needed, thanks! 😄

Comment on lines +216 to +220

op_off = p_info.get("offset", None)
if op_off is None:
continue

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

do not assume 0 if offset is not present; ideally we'd create a class for phrase info instead of using a dictionary but I do not think it's worth the effort right now.

Copy link
Collaborator

@williballenthin williballenthin left a comment

Choose a reason for hiding this comment

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

nice catch

@mike-hunhoff mike-hunhoff merged commit 5f77200 into master Dec 29, 2022
@mike-hunhoff mike-hunhoff deleted the fix/1243 branch December 29, 2022 14:08
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.

capa explorer: unit test fails
2 participants