Skip to content

Conversation

@aw-cf
Copy link
Contributor

@aw-cf aw-cf commented Aug 26, 2024

We noticed crashes due to missing null checks in dynamic_store.rs.

Additional background:
SCDynamicStoreCreate / SCDynamicStoreCreateWithOptions can return null. The returned value is currently passed to wrap_under_create_rule without a null check, which leads to an assertion error (Attempted to create a NULL object).

This PR adds additional checks and modifies affected APIs to return an Option instead.


This change is Reviewable

@dlon dlon force-pushed the dynamicstore_null_checks branch from 84cd925 to b0c5883 Compare September 18, 2025 17:12
@dlon dlon force-pushed the dynamicstore_null_checks branch from b0c5883 to d525d2a Compare September 18, 2025 17:14
@dlon dlon merged commit de5966a into mullvad:main Sep 18, 2025
7 checks passed
@dlon
Copy link
Member

dlon commented Sep 18, 2025

Thank you and sorry about the incredibly late response

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.

2 participants