Skip to content

Fix a number of static analysis issues #3

Bastien Nocera linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9rctest: Fix possible overruntools/rctest.c+2 -11 reply
2/9mgmt-tester: Fix buffer overruntools/mgmt-tester.c+1 -10 replies
3/9l2test: Add missing error checkingtools/l2test.c+5 -00 replies
4/9rfkill: Avoid using a signed int for an unsigned variablesrc/rfkill.c+1 -10 replies
5/9shared/mainloop: Fix integer overflowsrc/shared/mainloop-notify.c+2 -10 replies
6/9sdp: Fix ineffective error guardlib/sdp.c+4 -40 replies
7/9obexd: Fix buffer overrungobex/gobex.c+1 -10 replies
8/9bap: Fix more memory leaks on errorprofiles/audio/bap.c+4 -10 replies
9/9avdtp: Fix manipulating struct as an arrayprofiles/audio/avdtp.c+22 -114 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [BlueZ 0/9] Fix a number of static analysis issues #3

14 defects fixed, and 1 error check added.

Let me know whether there's any problems with the implementation, I'm thinking in particular of the avdtp changes which are pretty invasive.

Cheers

Bastien Nocera (9):
rctest: Fix possible overrun
mgmt-tester: Fix buffer overrun
l2test: Add missing error checking
rfkill: Avoid using a signed int for an unsigned variable shared/mainloop: Fix integer overflow
sdp: Fix ineffective error guard
obexd: Fix buffer overrun
bap: Fix more memory leaks on error
avdtp: Fix manipulating struct as an array

 gobex/gobex.c                |  2 +-
 lib/sdp.c                    |  8 ++++----
 profiles/audio/avdtp.c       | 33 ++++++++++++++++++++++-----------
 profiles/audio/bap.c         |  5 ++++-
 src/rfkill.c                 |  2 +-
 src/shared/mainloop-notify.c |  3 ++-
 tools/l2test.c               |  5 +++++
 tools/mgmt-tester.c          |  2 +-
 tools/rctest.c               |  3 ++-
 9 files changed, 42 insertions(+), 21 deletions(-)
Signature · 1 line
2.45.1