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

Remove the use of substr from bsg_check_invalid_libname #1961

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Jan 8, 2024

Goal

Remove the use of std::string::substr from bsg_check_invalid_libname to avoid possible deadlocks.

Design

Test the characters of the filename one at a time instead of using the string::substr method, which can allocate a new string to be returned.

Testing

Relied on existing tests

@lemnik lemnik requested a review from tomlongridge January 8, 2024 16:36
@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1842.69 1668.3
arm64_v8a 626.95 450.82
armeabi_v7a 561.42 385.29
x86 700.66 524.53
x86_64 671.99 495.86

Generated by 🚫 Danger

@lemnik lemnik merged commit dc04949 into next Jan 9, 2024
6 checks passed
@lemnik lemnik deleted the PLAT-10041/fix-fallback-symbol-name-check branch January 9, 2024 09:58
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.

3 participants