Skip to content

Fix a number of static analysis issues #4

Bastien Nocera linux-bluetooth 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/29 patches 3 repliesIn review
  2. v1 posting 1/29 patches 1 replySuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9main: Simplify parse_config_string()src/main.c+10 -93 replies
2/9avdtp: Fix manipulating struct as an arrayprofiles/audio/avdtp.c+23 -220 replies
3/9mesh: Avoid accessing array out-of-boundsmesh/prov-initiator.c+7 -20 replies
4/9obexd: Fix possible memleakobexd/plugins/messages-dummy.c+10 -10 replies
5/9obexd: Fix memory leak in entry structobexd/plugins/messages-dummy.c+1 -00 replies
6/9obexd: Fix leak in backup_object structobexd/plugins/pcsuite.c+1 -00 replies
7/9health/mcap: Fix memory leak in mcl structprofiles/health/mcap.c+1 -00 replies
8/9sdp: Fix memory leak in sdp_data_alloc*()lib/sdp.c+6 -20 replies
9/9sdp: Check memory allocation in sdp_copy_seq()lib/sdp.c+5 -00 replies

Reviews trailers per patch

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

Read the v1 thread

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

"main: Simplify parse_config_string()" is a repeat. If you don't want the patch, please let me know and I'll carry it downstream.

More fixes incoming, please review carefully, thanks!

Re-sent with the correct prefix

Bastien Nocera (9):
main: Simplify parse_config_string()
avdtp: Fix manipulating struct as an array
mesh: Avoid accessing array out-of-bounds
obexd: Fix possible memleak
obexd: Fix memory leak in entry struct
obexd: Fix leak in backup_object struct
health/mcap: Fix memory leak in mcl struct
sdp: Fix memory leak in sdp_data_alloc*()
sdp: Check memory allocation in sdp_copy_seq()

 lib/sdp.c                      | 13 ++++++++--
 mesh/prov-initiator.c          |  9 +++++--
 obexd/plugins/messages-dummy.c | 12 ++++++++-
 obexd/plugins/pcsuite.c        |  1 +
 profiles/audio/avdtp.c         | 45 +++++++++++++++++-----------------
 profiles/health/mcap.c         |  1 +
 src/main.c                     | 19 +++++++-------
 7 files changed, 64 insertions(+), 36 deletions(-)
Signature · 1 line
2.45.2