Skip to content

system/settings: fix assertion triggered by uninitialized variables #3108

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

jeanthom
Copy link

Fix non-NULL pointer assertion in get_setting() caused by uninitialized pointer variables.

Summary

system/settings' get_setting() function performs non-NULL assertion on non-initialized variables, triggering assertions.

See #3107 for more details.

Impact

Fix a bug causing system/settings to be unusable.

Testing

Tested on a private project making use of system/settings on NuttX 12.9.0.

Fix non-NULL pointer assertion in `get_setting()` caused by
uninitialized pointer variables.

Signed-off-by: Jean THOMAS <jean@lambdaconcept.com>
Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

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

Thank you @jeanthom :-) Lets just wait for the CI to complete before merge :-)

@jeanthom
Copy link
Author

CI failed due to network errors, could you please retry sim-02? Thanks.

@cederom
Copy link
Contributor

cederom commented Jun 25, 2025

CI restarted :-)

@xiaoxiang781216 xiaoxiang781216 merged commit bb50852 into apache:master Jun 26, 2025
51 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants