Skip to content
Commit 242c8f1c authored by Pavel Vasilyev's avatar Pavel Vasilyev Committed by Anas Nashif
Browse files

Bluetooth: Mesh: Avoid undefined behavior in bit shift in blob_cli.c



block_size_log can be 0x20 which will shift 1 by 32 bits which will
cause undefined behavior. Adding ULL to 1 is an option but this will add
little bit more code when debug option is enabled. So simply print the
logarithmic value.

Coverity-ID: 316387
Fixes #58951

Signed-off-by: default avatarPavel Vasilyev <pavel.vasilyev@nordicsemi.no>
parent cfd368fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment