Skip to content

[BUG] Uninitialized pointers in system/settings triggering assertions #3107

Closed
@jeanthom

Description

@jeanthom

Description / Steps to reproduce the issue

Call settings_type(), settings_get() or settings_set() while making sure that the stack variable "setting" (setting_t *) is initialized to a non-zero value (eg. random-initialized RAM). The get_setting() call will assert that setting is NULL, which isn't the case, causing an assertion exception.

On a side note, I find the code quality of this module to be quite concerning. I'll try to do my best to report any bugs that I can find, but I think a re-review of this code from a seasoned maintainer of NuttX would be great.

On which OS does this issue occur?

[OS: Mac]

What is the version of your OS?

macOS 15.5

NuttX Version

12.9.0

Issue Architecture

[Arch: arm]

Issue Area

[Area: System]

Host information

No response

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions