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

Avoid running over the end of the maps file buffer #1798

Merged
merged 1 commit into from Feb 1, 2023

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Jan 30, 2023

Goal

Avoid buffer overruns (and the resulting SIGSEGV) when parsing the /proc/<pid>/maps files.

Changeset

Updated our internal libunwindstack to a version that checks the length of the buffer when parsing the file. If the end of the buffer is reached while parsing a line, the file is rejected as invalid data.

Testing

Manual saturation testing

@lemnik lemnik requested a review from kstenerud January 30, 2023 17:04
@lemnik lemnik force-pushed the PLAT-9472/rare-refresh-segv branch from 5ae12d6 to 9ee4e5c Compare January 30, 2023 17:05
@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1920.04 1695.49
arm64_v8a 680.33 459.15
armeabi_v7a 614.8 393.62
x86 754.04 532.86
x86_64 725.38 504.19

Generated by 🚫 Danger

@lemnik lemnik merged commit 07206f0 into next Feb 1, 2023
@lemnik lemnik deleted the PLAT-9472/rare-refresh-segv branch February 1, 2023 09:28
This was referenced Feb 8, 2023
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.

None yet

3 participants