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

Bluetooth: Mesh: Fix Coverity reports #65402

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

PavelVPV
Copy link
Collaborator

@PavelVPV PavelVPV commented Nov 17, 2023

The following changes has been done in this PR:

Ignore return value of settings_delete.

Coverity-CID: 330638
Fixes #65330

Check return value of bt_conn_get_info.

Coverity-CID: 323094
Fixes #65366

Coverity-CID: 323081
Fixes #65370

Fix async behavior of Private Beacon Client API.

The Private Beacon Client API requires a response argument to allow to call the API in the asynchronous manner (#56426).

Because the removal of the EXPERIMENTAL tag for this API was not released yet, it should be OK to change this API. The EXPERIMENTAL tag has been removed here: #64866

Coverity-CID: 330039
Coverity-CID: 330029
Coverity-CID: 329977

Fixes #65336
Fixes #65338
Fixes #65354

Fix integer overflow

Fix potential integer overflow by casting one of operands to int64_t.

Coverity-CID: 329961
Fixes #65356

This suppresses warning from Coverity.

Coverity-CID: 330638
Fixes zephyrproject-rtos#65330

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
Coverity-CID: 323094
Fixes zephyrproject-rtos#65366

Coverity-CID: 323081
Fixes zephyrproject-rtos#65370

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
The Private Beacon Client API requires a response argument to allow to
call the API in the asynchronous manner
(zephyrproject-rtos#56426).

Because the removal of the EXPERIMENTAL tag for this API was not
released yet, it should be OK to change this API.
The EXPERIMENTAL tag has been removed here:
zephyrproject-rtos#64866

Coverity-CID: 330039
Coverity-CID: 330029
Coverity-CID: 329977

Fixes zephyrproject-rtos#65336
Fixes zephyrproject-rtos#65338
Fixes zephyrproject-rtos#65354

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
Fix potential integer overflow by casting one of operands to int64_t.

Coverity-CID: 329961
Fixes zephyrproject-rtos#65356

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
@PavelVPV
Copy link
Collaborator Author

Added missed Coverity report

@carlescufi carlescufi merged commit 07848a4 into zephyrproject-rtos:main Nov 20, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants