Skip to content

Fix unchecked return value

Tedd Ho-Jeong An linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9device: Fix unchecked return valuesrc/device.c+119 -221 reply
2/9adapter: Fix unchecked return valuesrc/adapter.c+211 -380 replies
3/9attrib-server: Fix unchecked return valuesrc/attrib-server.c+18 -30 replies
4/9plugins/admin: Fix unchecked return valueplugins/admin.c+13 -20 replies
5/9profiles/a2dp: Fix unchecked return valueprofiles/audio/a2dp.c+28 -50 replies
6/9profiles/input: Fix unchecked return valueprofiles/input/device.c+5 -10 replies
7/9mesh: Fix unchecked return valuemesh/keyring.c mesh/mesh-io-unit.c mesh/rpl.c +1 more+30 -150 replies
8/9obexd: Fix unchecked return valueobexd/client/transfer.c obexd/plugins/pcsuite.c obexd/src/main.c+15 -50 replies
9/9peripheral: Fix unchecked return valueperipheral/main.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [BlueZ PATCH 0/9] Fix unchecked return value

From: Tedd Ho-Jeong An <[email protected]>

This patch series fixes the unchecked return value(CWE-252) issues reported by the Coverity scan.

The idea is to make the change as simple as possible without changing the functional flow. So, it logs the output when the function fails after checking the return value.

Tedd Ho-Jeong An (9):
device: Fix unchecked return value
adapter: Fix unchecked return value
attrib-server: Fix unchecked return value
plugins/admin: Fix unchecked return value
profiles/a2dp: Fix unchecked return value
profiles/input: Fix unchecked return value
mesh: Fix unchecked return value
obexd: Fix unchecked return value
peripheral: Fix unchecked return value

 mesh/keyring.c          |   6 +-
 mesh/mesh-io-unit.c     |   6 +-
 mesh/rpl.c              |  22 ++--
 mesh/util.c             |  11 +-
 obexd/client/transfer.c |  12 +-
 obexd/plugins/pcsuite.c |   4 +-
 obexd/src/main.c        |   4 +-
 peripheral/main.c       |   3 +-
 plugins/admin.c         |  15 ++-
 profiles/audio/a2dp.c   |  33 +++++-
 profiles/input/device.c |   6 +-
 src/adapter.c           | 249 ++++++++++++++++++++++++++++++++++------
 src/attrib-server.c     |  21 +++-
 src/device.c            | 141 +++++++++++++++++++----
 14 files changed, 441 insertions(+), 92 deletions(-)
Signature · 1 line
2.25.1