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

Fix deserialization bug in persisted NDK errors #1220

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Apr 9, 2021

Goal

The memory offset for bsg_app_info_v2 is wrong by one due to the unintentional inclusion of is_launching. This means that the first byte of binary_arch for persisted v4 structs is loaded into is_launching, causing the binary_arch to be incorrectly trimmed to '86' or 'rm64'.

Changeset

Removed is_launching from bsg_app_info_v2 as it was not originally present.

Testing

Added additional unit test coverage of the migration function. Manually tested by triggering a fatal crash in v5.7.0, then updating to v5.9.0 to reproduce the behaviour. Confirmed that a local artefact with these changes fixed the issue.

@fractalwrench fractalwrench changed the title Fix deserialization bug in fatal NDK errors Fix deserialization bug in persisted NDK errors Apr 9, 2021
@fractalwrench fractalwrench marked this pull request as ready for review April 9, 2021 15:44
Copy link
Contributor

@twometresteve twometresteve left a comment

Choose a reason for hiding this comment

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

No comments from me.

@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1513.87 1414.46
arm64_v8a 402.18 299.78
armeabi 381.69 279.29
armeabi_v7a 365.32 262.92
x86 439.02 336.62
x86_64 422.64 320.24

Generated by 🚫 Danger

@fractalwrench
Copy link
Contributor Author

Tweaked release date to TBD.

Copy link
Contributor

@twometresteve twometresteve left a comment

Choose a reason for hiding this comment

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

LGTM

@fractalwrench fractalwrench merged commit 55cbe5b into next Apr 14, 2021
@fractalwrench fractalwrench deleted the fix-app-struct-migration branch April 14, 2021 10:56
fractalwrench added a commit that referenced this pull request Apr 15, 2021
Fix deserialization bug in persisted NDK errors
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.

4 participants