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

[nrf fromlist] [app] Do not crash if CommandHandler fails to allocate packet #401

Merged

Conversation

Damian-Nordic
Copy link
Contributor

CommandHandler uses VerifyOrDie when adding a status to be sent to the requestor. If the device runs out packet buffers and CommandHandler fails to allocate a packet for the status, the device crashes.

Triggering the crash requires many commands to arrive in the device around the same time, which is probably rare but possible.

@LuDuda LuDuda added the bug Something isn't working label Mar 6, 2024
… packet

CommandHandler uses VerifyOrDie when adding a status to be
sent to the requestor. If the device runs out packet buffers
and CommandHandler fails to allocate a packet for the status,
the device crashes.

Triggering the crash requires many commands to arrive in the
device around the same time, which is probably rare but
possible.

Signed-off-by: Damian Krolik <[email protected]>
@Damian-Nordic Damian-Nordic force-pushed the command-handler-crash branch from 427903f to a429e3e Compare March 6, 2024 14:42
@Damian-Nordic Damian-Nordic changed the title [nrf noup] Do not crash if CommandHandler fails to allocate packet [nrf fromlist] [app] Do not crash if CommandHandler fails to allocate packet Mar 6, 2024
@Damian-Nordic Damian-Nordic merged commit 2d33edf into nrfconnect:master Mar 6, 2024
8 checks passed
@Damian-Nordic Damian-Nordic deleted the command-handler-crash branch March 6, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants