Skip to content
Commit 7728587f authored by Dominik Ermel's avatar Dominik Ermel Committed by Anas Nashif
Browse files

mgmt/mcumgr/lib: Fix no check on message



The commit fixes smp_process_request_packet not checking header
stated message length against actual message length.
This could lead to an erratic behavior of an application when it tries
to parse CBOR data beyond actual size of message or potential
Zephyr crash.
When application has asserts enabled the error leads to inevitable
Zephyr crash, caused by net_buf checks.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent 56ebbb46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment