Skip to content

Conversation

@moonlight83340
Copy link
Contributor

Ensure pointers are validated before dereferencing them in set_arbitrate_interval() and set_interval().

This avoids accessing sensor or connection fields prior to validation and makes the code safe even when assertions are disabled.

No functional change intended.

Ensure pointers are validated before dereferencing them in
set_arbitrate_interval() and set_interval().

This avoids accessing sensor or connection fields prior to
validation and makes the code safe even when assertions are
disabled.

No functional change intended.

Signed-off-by: Gaetan Perrot <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

@moonlight83340 moonlight83340 marked this pull request as ready for review January 9, 2026 23:24
@zephyrbot zephyrbot requested review from lixuzha and yperess January 9, 2026 23:26
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.

4 participants