bluez-5.79-1.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
bluez-5.79-build/bluez-5.79/attrib/gattrib.c: scope_hint: In function ‘construct_full_pdu’
bluez-5.79-build/bluez-5.79/attrib/gattrib.c:207:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pdu’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
bluez-5.79-build/bluez-5.79/btio/btio.c: scope_hint: In function ‘server_cb.part.0’
bluez-5.79-build/bluez-5.79/btio/btio.c:256:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(io)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
bluez-5.79-build/bluez-5.79/btio/btio.c: scope_hint: In function ‘sco_connect’
bluez-5.79-build/bluez-5.79/btio/btio.c:2043:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(create_io(0, &opts, gerr))’
bluez-5.79-build/bluez-5.79/btio/btio.c:21: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
bluez-5.79-build/bluez-5.79/btio/btio.c: scope_hint: In function ‘bt_io_listen’
bluez-5.79-build/bluez-5.79/btio/btio.c:2108:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(create_io(1, &opts, err))’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
bluez-5.79-build/bluez-5.79/client/advertising.c: scope_hint: In function ‘ad_register’
bluez-5.79-build/bluez-5.79/client/advertising.c:519:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
bluez-5.79-build/bluez-5.79/gdbus/gdbus.h:20: included_from: Included from here.
bluez-5.79-build/bluez-5.79/client/advertising.c:22: included_from: Included from here.
bluez-5.79-build/bluez-5.79/client/advertising.c:517:19: note: in expansion of macro ‘g_strdup’
bluez-5.79-build/bluez-5.79/client/advertising.c: scope_hint: In function ‘ad_register’
/usr/include/string.h:462: included_from: Included from here.
bluez-5.79-build/bluez-5.79/client/advertising.c:20: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
Error: CPPCHECK_WARNING (CWE-457): [#def6]
bluez-5.79-build/bluez-5.79/client/assistant.c:181: warning[uninitvar]: Uninitialized variable: value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
bluez-5.79-build/bluez-5.79/client/display.c: scope_hint: In function ‘rl_printf’
bluez-5.79-build/bluez-5.79/client/display.c:53:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘saved_line’
Error: CPPCHECK_WARNING (CWE-457): [#def8]
bluez-5.79-build/bluez-5.79/client/gatt.c:730: warning[uninitvar]: Uninitialized variable: value
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
bluez-5.79-build/bluez-5.79/client/mgmt.c: scope_hint: In function ‘parse_bytes’
bluez-5.79-build/bluez-5.79/client/mgmt.c:4639:16: warning[-Wanalyzer-malloc-leak]: leak of ‘adv_data’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
bluez-5.79-build/bluez-5.79/client/mgmt.c: scope_hint: In function ‘cmd_add_adv’
bluez-5.79-build/bluez-5.79/client/mgmt.c:4818:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘adv_data’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
bluez-5.79-build/bluez-5.79/client/mgmt.c: scope_hint: In function ‘cmd_add_ext_adv_data’
bluez-5.79-build/bluez-5.79/client/mgmt.c:5242:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘adv_data’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
bluez-5.79-build/bluez-5.79/client/player.c: scope_hint: In function ‘codec_preset_add.part.0’
bluez-5.79-build/bluez-5.79/client/player.c:3493:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘preset’
Error: GCC_ANALYZER_WARNING: [#def13]
bluez-5.79-build/bluez-5.79/client/player.c: scope_hint: In function ‘transport_send_seq.part.0’
bluez-5.79-build/bluez-5.79/client/player.c:5415:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘fd’
bluez-5.79-build/bluez-5.79/client/player.c: scope_hint: In function ‘transport_send_seq.part.0’
bluez-5.79-build/bluez-5.79/client/player.c:20: included_from: Included from here.
bluez-5.79-build/bluez-5.79/client/player.c: scope_hint: In function ‘transport_send_seq.part.0’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
bluez-5.79-build/bluez-5.79/client/player.c: scope_hint: In function ‘cmd_send_transport’
bluez-5.79-build/bluez-5.79/client/player.c:5562:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
bluez-5.79-build/bluez-5.79/client/player.c: scope_hint: In function ‘cmd_send_transport’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
bluez-5.79-build/bluez-5.79/emulator/b1ee.c: scope_hint: In function ‘server_read_callback.part.0’
bluez-5.79-build/bluez-5.79/emulator/b1ee.c:153:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘server_pkt_data’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
bluez-5.79-build/bluez-5.79/emulator/b1ee.c:166:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘server_pkt_data’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
bluez-5.79-build/bluez-5.79/emulator/b1ee.c: scope_hint: In function ‘main’
bluez-5.79-build/bluez-5.79/emulator/b1ee.c:267:28: warning[-Wanalyzer-malloc-leak]: leak of ‘server_port’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def18]
bluez-5.79-build/bluez-5.79/emulator/b1ee.c:300:19: warning[-Wanalyzer-fd-use-after-close]: ‘write’ on closed file descriptor ‘sniffer_fd’
Error: GCC_ANALYZER_WARNING: [#def19]
bluez-5.79-build/bluez-5.79/emulator/b1ee.c:300:19: warning[-Wanalyzer-fd-use-without-check]: ‘write’ on possibly invalid file descriptor ‘-1’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def20]
bluez-5.79-build/bluez-5.79/emulator/btdev.c: scope_hint: In function ‘le_meta_event’
bluez-5.79-build/bluez-5.79/emulator/btdev.c:3740:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
bluez-5.79-build/bluez-5.79/emulator/btdev.c:31: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/shared/util.h:29:27: note: in definition of macro ‘cpu_to_le16’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def21]
bluez-5.79-build/bluez-5.79/emulator/bthost.c: scope_hint: In function ‘queue_command’
bluez-5.79-build/bluez-5.79/emulator/bthost.c:574:52: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
bluez-5.79-build/bluez-5.79/emulator/bthost.c:574:52: note: read of 8 bytes from after the end of ‘iov’
bluez-5.79-build/bluez-5.79/emulator/bthost.c:574:52: note: valid subscripts for ‘iov’ are ‘[0]’ to ‘[2]’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def22]
bluez-5.79-build/bluez-5.79/emulator/bthost.c:574:69: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
bluez-5.79-build/bluez-5.79/emulator/bthost.c:574:69: note: read of 8 bytes from after the end of ‘iov’
bluez-5.79-build/bluez-5.79/emulator/bthost.c:574:69: note: valid subscripts for ‘iov’ are ‘[0]’ to ‘[2]’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
bluez-5.79-build/bluez-5.79/emulator/bthost.c: scope_hint: In function ‘bthost_set_cig_params’
bluez-5.79-build/bluez-5.79/emulator/bthost.c:3409:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
bluez-5.79-build/bluez-5.79/emulator/bthost.c: scope_hint: In function ‘bthost_create_cis’
bluez-5.79-build/bluez-5.79/emulator/bthost.c:3441:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cp’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
bluez-5.79-build/bluez-5.79/emulator/serial.c: scope_hint: In function ‘serial_read_callback.part.0’
bluez-5.79-build/bluez-5.79/emulator/serial.c:130:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*(struct serial *)user_data.pkt_data + (sizetype)*(struct serial *)user_data.pkt_len’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
bluez-5.79-build/bluez-5.79/emulator/serial.c:141:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*(struct serial *)user_data.pkt_data + (sizetype)*(struct serial *)user_data.pkt_len’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: CPPCHECK_WARNING (CWE-457): [#def27]
bluez-5.79-build/bluez-5.79/emulator/serial.c:151: error[legacyUninitvar]: Uninitialized variable: type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def28]
bluez-5.79-build/bluez-5.79/emulator/serial.c: scope_hint: In function ‘open_pty’
bluez-5.79-build/bluez-5.79/emulator/serial.c:192:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
bluez-5.79-build/bluez-5.79/emulator/serial.c:36:30: note: in definition of macro ‘uninitialized_var’
bluez-5.79-build/bluez-5.79/emulator/serial.c:36:30: note: in definition of macro ‘uninitialized_var’
Error: CPPCHECK_WARNING (CWE-457): [#def29]
bluez-5.79-build/bluez-5.79/emulator/serial.c:214: error[legacyUninitvar]: Uninitialized variable: dev_type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def30]
bluez-5.79-build/bluez-5.79/emulator/server.c: scope_hint: In function ‘client_read_callback.part.0’
bluez-5.79-build/bluez-5.79/emulator/server.c:152:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*(struct client *)user_data.pkt_data + (sizetype)*(struct client *)user_data.pkt_len’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
bluez-5.79-build/bluez-5.79/emulator/server.c:163:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*(struct client *)user_data.pkt_data + (sizetype)*(struct client *)user_data.pkt_len’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
bluez-5.79-build/bluez-5.79/emulator/server.c: scope_hint: In function ‘accept_client’
bluez-5.79-build/bluez-5.79/emulator/server.c:182:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘((struct server)*(void *)user_data).fd’
Error: CPPCHECK_WARNING (CWE-457): [#def33]
bluez-5.79-build/bluez-5.79/emulator/server.c:200: error[legacyUninitvar]: Uninitialized variable: type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
bluez-5.79-build/bluez-5.79/gdbus/object.c: scope_hint: In function 'invalidate_parent_data'
bluez-5.79-build/bluez-5.79/gdbus/object.c:772:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.79-build/bluez-5.79/gdbus/object.c: scope_hint: In function 'invalidate_parent_data'
bluez-5.79-build/bluez-5.79/gdbus/object.c: scope_hint: In function 'invalidate_parent_data'
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
bluez-5.79-build/bluez-5.79/gdbus/object.c:19: included_from: Included from here.
bluez-5.79-build/bluez-5.79/gdbus/object.c:771:23: note: in expansion of macro 'g_strdup'
bluez-5.79-build/bluez-5.79/gdbus/object.c: scope_hint: In function 'invalidate_parent_data'
bluez-5.79-build/bluez-5.79/gdbus/object.c:16: included_from: Included from here.
/usr/include/string.h:273:14: note: argument 1 of 'strrchr' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-131): [#def35]
bluez-5.79-build/bluez-5.79/gobex/gobex-apparam.c: scope_hint: In function ‘tag_new’
bluez-5.79-build/bluez-5.79/gobex/gobex-apparam.c:43:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c:95:9: warning[-Wanalyzer-null-argument]: use of NULL ‘utf16’ where non-null expected
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c: scope_hint: In function ‘g_obex_header_encode’
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c: scope_hint: In function ‘g_obex_header_encode’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
bluez-5.79-build/bluez-5.79/gobex/gobex-header.h:13: included_from: Included from here.
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c:16: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:60:62: note: in definition of macro ‘g_assert_cmpuint’
<built-in>: scope_hint: In function ‘g_obex_header_encode’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c: scope_hint: In function ‘g_obex_header_create_list’
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c:563:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hdr’
bluez-5.79-build/bluez-5.79/gobex/gobex-header.c:540:25: note: in expansion of macro ‘G_OBEX_HDR_ENC’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
bluez-5.79-build/bluez-5.79/lib/sdp.c: scope_hint: In function 'sdp_connect_local'
bluez-5.79-build/bluez-5.79/lib/sdp.c:4674:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'socket(1, 524289, 0)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
bluez-5.79-build/bluez-5.79/lib/sdp.c: scope_hint: In function 'sdp_connect_l2cap'
bluez-5.79-build/bluez-5.79/lib/sdp.c:4722:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'socket(31, sockflags, 0)'
Error: GCC_ANALYZER_WARNING (CWE-666): [#def40]
bluez-5.79-build/bluez-5.79/lib/sdp.c:4740:27: warning[-Wanalyzer-fd-phase-mismatch]: 'connect' on file descriptor '*session.sock' in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-666): [#def41]
bluez-5.79-build/bluez-5.79/lib/sdp.c:4740:27: warning[-Wanalyzer-fd-phase-mismatch]: 'connect' on file descriptor 'socket(31, sockflags, 0)' in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
bluez-5.79-build/bluez-5.79/mesh/mesh-io-unit.c: scope_hint: In function ‘unit_init’
bluez-5.79-build/bluez-5.79/mesh/mesh-io-unit.c:238:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(struct mesh_io_private *)<unknown>.fd’
bluez-5.79-build/bluez-5.79/ell/ell.h:1: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/mesh-io-unit.c:22: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/mesh-io-unit.c:224:15: note: in expansion of macro ‘l_new’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def43]
bluez-5.79-build/bluez-5.79/mesh/net.c: scope_hint: In function ‘friend_packet_queue’
bluez-5.79-build/bluez-5.79/mesh/net.c:1349:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
bluez-5.79-build/bluez-5.79/ell/ell.h:1: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/net.c:19: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/net.c:1198:28: note: in expansion of macro ‘l_new’
bluez-5.79-build/bluez-5.79/mesh/net.c:26: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/net.c:1366:29: note: in expansion of macro ‘FRND_OPCODE’
bluez-5.79-build/bluez-5.79/mesh/net.c:1349:25: note: read of 9 bytes from after the end of ‘msg’
bluez-5.79-build/bluez-5.79/mesh/net.c:1349:25: note: valid subscripts for ‘msg’ are ‘[0]’ to ‘[3]’
Error: CPPCHECK_WARNING (CWE-457): [#def44]
bluez-5.79-build/bluez-5.79/mesh/net.c:2214: error[uninitvar]: Uninitialized variable: msg
Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
bluez-5.79-build/bluez-5.79/mesh/node.c: scope_hint: In function ‘check_req_node’
bluez-5.79-build/bluez-5.79/mesh/node.c:1549:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.79-build/bluez-5.79/ell/util.h:11: included_from: Included from here.
bluez-5.79-build/bluez-5.79/ell/ell.h:1: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/node.c:21: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 1 of ‘memcmp’ must be non-null
Error: CPPCHECK_WARNING (CWE-457): [#def46]
bluez-5.79-build/bluez-5.79/mesh/node.c:2152: error[uninitvar]: Uninitialized variable: data
Error: GCC_ANALYZER_WARNING (CWE-465): [#def47]
bluez-5.79-build/bluez-5.79/mesh/prov-acceptor.c: scope_hint: In function ‘acp_prov_rx’
bluez-5.79-build/bluez-5.79/mesh/prov-acceptor.c:685:12: warning[-Wanalyzer-deref-before-check]: check of ‘prov’ for NULL after already dereferencing it
bluez-5.79-build/bluez-5.79/ell/ell.h:2: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/prov-acceptor.c:15: included_from: Included from here.
bluez-5.79-build/bluez-5.79/ell/log.h:90:31: note: in expansion of macro ‘L_DEBUG_SYMBOL’
bluez-5.79-build/bluez-5.79/mesh/prov-acceptor.c:440:9: note: in expansion of macro ‘l_debug’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def48]
bluez-5.79-build/bluez-5.79/mesh/prov-initiator.c: scope_hint: In function ‘int_prov_rx’
bluez-5.79-build/bluez-5.79/mesh/prov-initiator.c:837:12: warning[-Wanalyzer-deref-before-check]: check of ‘prov’ for NULL after already dereferencing it
bluez-5.79-build/bluez-5.79/ell/ell.h:2: included_from: Included from here.
bluez-5.79-build/bluez-5.79/mesh/prov-initiator.c:15: included_from: Included from here.
bluez-5.79-build/bluez-5.79/ell/log.h:90:31: note: in expansion of macro ‘L_DEBUG_SYMBOL’
bluez-5.79-build/bluez-5.79/mesh/prov-initiator.c:664:9: note: in expansion of macro ‘l_debug’
Error: CPPCHECK_WARNING (CWE-457): [#def49]
bluez-5.79-build/bluez-5.79/mesh/rpl.c:277: error[legacyUninitvar]: Uninitialized variable: val
Error: GCC_ANALYZER_WARNING (CWE-457): [#def50]
bluez-5.79-build/bluez-5.79/monitor/bnep.c: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/bnep.c:62:66: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr[5]’
bluez-5.79-build/bluez-5.79/monitor/bnep.c:30: included_from: Included from here.
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/bnep.c:29: included_from: Included from here.
bluez-5.79-build/bluez-5.79/monitor/display.h:56:17: note: in expansion of macro ‘print_indent’
bluez-5.79-build/bluez-5.79/monitor/bnep.c:222:9: note: in expansion of macro ‘print_field’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/bnep.c: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/l2cap.h: scope_hint: In function ‘get_macaddr’
bluez-5.79-build/bluez-5.79/monitor/bnep.c: scope_hint: In function ‘get_macaddr’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
bluez-5.79-build/bluez-5.79/monitor/display.c:107:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
bluez-5.79-build/bluez-5.79/monitor/display.c:107:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
bluez-5.79-build/bluez-5.79/monitor/display.c:158:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
bluez-5.79-build/bluez-5.79/monitor/display.c:164:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
bluez-5.79-build/bluez-5.79/monitor/display.c: scope_hint: In function ‘open_pager’
bluez-5.79-build/bluez-5.79/monitor/display.c:164:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
bluez-5.79-build/bluez-5.79/monitor/jlink.c: scope_hint: In function ‘jlink_start_rtt’
bluez-5.79-build/bluez-5.79/monitor/jlink.c:207:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tok’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
bluez-5.79-build/bluez-5.79/obexd/plugins/messages-dummy.c: scope_hint: In function ‘return_folder_listing’
bluez-5.79-build/bluez-5.79/obexd/plugins/messages-dummy.c:163:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
bluez-5.79-build/bluez-5.79/obexd/plugins/messages-dummy.c:18: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-570): [#def58]
bluez-5.79-build/bluez-5.79/obexd/src/log.c:85: error[comparePointers]: Comparing pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def59]
bluez-5.79-build/bluez-5.79/obexd/src/log.c:98: error[comparePointers]: Comparing pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-457): [#def60]
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:19: included_from: Included from here.
bluez-5.79-build/bluez-5.79/obexd/client/bip.c: scope_hint: In function ‘parse_get_image_dict’
bluez-5.79-build/bluez-5.79/obexd/src/log.h:42:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*maxsize’
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:264:9: note: in expansion of macro ‘DBG’
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
bluez-5.79-build/bluez-5.79/gdbus/gdbus.h:20: included_from: Included from here.
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:16: included_from: Included from here.
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:236:36: note: in expansion of macro ‘g_str_equal’
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:242:36: note: in expansion of macro ‘g_str_equal’
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:264:9: note: in expansion of macro ‘DBG’
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:264:9: note: in expansion of macro ‘DBG’
bluez-5.79-build/bluez-5.79/obexd/client/bip.c:264:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
bluez-5.79-build/bluez-5.79/profiles/audio/a2dp.c: scope_hint: In function ‘select_cb’
bluez-5.79-build/bluez-5.79/profiles/audio/a2dp.c:2811:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*setup.rsep’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
bluez-5.79-build/bluez-5.79/profiles/audio/a2dp.c: scope_hint: In function ‘a2dp_find_eps’
bluez-5.79-build/bluez-5.79/profiles/audio/a2dp.c:2857:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c: scope_hint: In function ‘play_status_to_val’
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c:742:14: warning[-Wanalyzer-null-argument]: use of NULL ‘status’ where non-null expected
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c: scope_hint: In function ‘play_status_to_val’
/usr/include/string.h:462: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c:30: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c: scope_hint: In function ‘avrcp_player_event.part.0’
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c:825:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c: scope_hint: In function ‘avrcp_player_event.part.0’
Error: CPPCHECK_WARNING (CWE-457): [#def65]
bluez-5.79-build/bluez-5.79/profiles/audio/avrcp.c:2376: warning[uninitvar]: Uninitialized variable: attrs
Error: GCC_ANALYZER_WARNING (CWE-688): [#def66]
bluez-5.79-build/bluez-5.79/profiles/audio/player.c: scope_hint: In function ‘media_player_set_setting’
bluez-5.79-build/bluez-5.79/profiles/audio/player.c:1384:13: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
bluez-5.79-build/bluez-5.79/profiles/audio/player.c:25: included_from: Included from here.
bluez-5.79-build/bluez-5.79/profiles/audio/player.c:1375:59: note: in expansion of macro ‘g_strdup’
bluez-5.79-build/bluez-5.79/profiles/audio/player.c: scope_hint: In function ‘media_player_set_setting’
bluez-5.79-build/bluez-5.79/profiles/audio/player.c:1375:44: note: in expansion of macro ‘g_strdup’
bluez-5.79-build/bluez-5.79/profiles/audio/player.c: scope_hint: In function ‘media_player_set_setting’
/usr/include/string.h:462: included_from: Included from here.
bluez-5.79-build/bluez-5.79/profiles/audio/player.c:23: included_from: Included from here.
/usr/include/strings.h:116:12: note: argument 1 of ‘strcasecmp’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-666): [#def67]
bluez-5.79-build/bluez-5.79/profiles/cups/hcrp.c: scope_hint: In function ‘hcrp_print’
bluez-5.79-build/bluez-5.79/profiles/cups/hcrp.c:213:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘ctrl_sk’ in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
bluez-5.79-build/bluez-5.79/profiles/cups/main.c: scope_hint: In function ‘main’
bluez-5.79-build/bluez-5.79/profiles/cups/main.c:768:56: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b[5]’
Error: GCC_ANALYZER_WARNING (CWE-666): [#def69]
bluez-5.79-build/bluez-5.79/profiles/cups/spp.c: scope_hint: In function ‘spp_print’
bluez-5.79-build/bluez-5.79/profiles/cups/spp.c:59:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
bluez-5.79-build/bluez-5.79/src/adv_monitor.c: scope_hint: In function ‘monitor_process’
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:976:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*monitor.merged_pattern’
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:36: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:975:35: note: in expansion of macro ‘malloc0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:976:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 56)’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:20: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:180:30: note: in definition of macro ‘g_str_has_prefix’
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:695:19: note: in expansion of macro ‘new0’
bluez-5.79-build/bluez-5.79/src/adv_monitor.c:975:35: note: in expansion of macro ‘malloc0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
bluez-5.79-build/bluez-5.79/src/battery.c:234:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘battery’
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/src/battery.c:222:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
bluez-5.79-build/bluez-5.79/src/device.c: scope_hint: In function ‘device_bonding_retry’
bluez-5.79-build/bluez-5.79/src/device.c:6681:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
bluez-5.79-build/bluez-5.79/src/device.c: scope_hint: In function ‘device_bonding_retry’
Error: CPPCHECK_WARNING (CWE-570): [#def74]
bluez-5.79-build/bluez-5.79/src/log.c:159: error[comparePointers]: Comparing pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
bluez-5.79-build/bluez-5.79/src/battery.c:28: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/battery.c: scope_hint: In function ‘btd_battery_update’
bluez-5.79-build/bluez-5.79/src/log.h:56:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘battery’
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/src/battery.c:222:9: note: in expansion of macro ‘DBG’
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/src/battery.c:222:9: note: in expansion of macro ‘DBG’
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/src/battery.c:222:9: note: in expansion of macro ‘DBG’
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/src/battery.c:222:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
bluez-5.79-build/bluez-5.79/src/sdp-client.c:353:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bluez-5.79-build/bluez-5.79/src/sdp-client.c: scope_hint: In function ‘bt_search_service’
bluez-5.79-build/bluez-5.79/src/sdp-client.c: scope_hint: In function ‘bt_search_service’
bluez-5.79-build/bluez-5.79/src/sdp-client.c:15: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
bluez-5.79-build/bluez-5.79/src/sdp-xml.c: scope_hint: In function ‘element_start.part.0’
bluez-5.79-build/bluez-5.79/src/sdp-xml.c:461:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
bluez-5.79-build/bluez-5.79/src/sdp-xml.c:465:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c:105:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:16: note: in expansion of macro ‘be16_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
bluez-5.79-build/bluez-5.79/src/sdpd-request.c:106:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘cinfo’ where non-null expected
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:16: note: in expansion of macro ‘be16_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘sdp_cstate_alloc_buf’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c:203:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aid’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:16: note: in expansion of macro ‘be32_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:16: note: in expansion of macro ‘be16_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
bluez-5.79-build/bluez-5.79/src/sdpd-request.c:230:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aid’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:16: note: in expansion of macro ‘be32_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:16: note: in expansion of macro ‘be16_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:216:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def83]
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘process_request’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c:1017:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘process_request’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘process_request’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def84]
bluez-5.79-build/bluez-5.79/src/shared/ad.c: scope_hint: In function 'ad_replace_data'
bluez-5.79-build/bluez-5.79/src/shared/ad.c:394:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.79-build/bluez-5.79/src/shared/ad.c:26: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/shared/ad.c:389:58: note: in expansion of macro 'UINT_TO_PTR'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def85]
bluez-5.79-build/bluez-5.79/src/shared/ad.c: scope_hint: In function 'bt_ad_add_manufacturer_data'
bluez-5.79-build/bluez-5.79/src/shared/ad.c:852:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.79-build/bluez-5.79/src/shared/ad.c:847:49: note: in expansion of macro 'UINT_TO_PTR'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def86]
bluez-5.79-build/bluez-5.79/src/shared/ad.c: scope_hint: In function 'bt_ad_add_service_data'
bluez-5.79-build/bluez-5.79/src/shared/ad.c:988:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
bluez-5.79-build/bluez-5.79/src/shared/bap.c: scope_hint: In function 'bap_get_session.part.0'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:661:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
bluez-5.79-build/bluez-5.79/src/shared/bap.c: scope_hint: In function 'bap_send'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:1535:50: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:1574:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:1574:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:1528:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:1528:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
bluez-5.79-build/bluez-5.79/src/shared/bap.c: scope_hint: In function 'bap_cp_attach'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:5114:50: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
bluez-5.79-build/bluez-5.79/src/shared/bap.c: scope_hint: In function 'foreach_ascs_service'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:5179:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def91]
bluez-5.79-build/bluez-5.79/src/shared/bap.c: scope_hint: In function 'bap_bcast_stream_new'
bluez-5.79-build/bluez-5.79/src/shared/bap.c:5843:20: warning[-Wanalyzer-deref-before-check]: check of 'lpac' for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
bluez-5.79-build/bluez-5.79/src/shared/bass.c: scope_hint: In function 'bass_build_bcast_src'
bluez-5.79-build/bluez-5.79/src/shared/bass.c:420:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'bad_code'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
bluez-5.79-build/bluez-5.79/src/shared/bass.c: scope_hint: In function 'bass_get_session.part.0'
bluez-5.79-build/bluez-5.79/src/shared/bass.c:705:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_incom_call_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:661:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:659:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:659:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_call_state_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:683:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:681:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:681:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_call_list_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:705:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:703:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:703:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_name_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:727:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:725:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:725:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_term_reason_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:749:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:747:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:747:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_status_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:770:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:768:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:768:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_uci_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:792:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:790:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:790:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_technology_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:813:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:811:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:811:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_strength_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:833:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:831:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:831:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_ccid_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:853:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:851:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:851:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_tar_uri_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:872:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:870:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:870:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_ctrl_point_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:893:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:891:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:891:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_ctrl_opcode_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:913:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:911:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:911:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_friendly_name_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:933:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:931:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:931:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_signal_intrvl_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:953:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:951:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:951:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'bt_ccp_uri_list_attach'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:973:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:971:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:971:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
bluez-5.79-build/bluez-5.79/src/shared/ccp.c: scope_hint: In function 'foreach_ccs_service'
bluez-5.79-build/bluez-5.79/src/shared/ccp.c:1129:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
bluez-5.79-build/bluez-5.79/src/shared/crypto.c: scope_hint: In function 'alg_new'
bluez-5.79-build/bluez-5.79/src/shared/crypto.c:212:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor '*crypto.cmac_aes'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def112]
bluez-5.79-build/bluez-5.79/src/shared/crypto.c:212:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor '*crypto.ecb_aes'
bluez-5.79-build/bluez-5.79/src/shared/crypto.c: scope_hint: In function 'alg_new'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def113]
bluez-5.79-build/bluez-5.79/src/shared/gatt-client.c: scope_hint: In function 'request_unref'
bluez-5.79-build/bluez-5.79/src/shared/gatt-client.c:199:32: warning[-Wanalyzer-use-after-free]: use after 'free' of 'data'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def114]
bluez-5.79-build/bluez-5.79/src/shared/gatt-client.c: scope_hint: In function 'complete_write_long_op'
bluez-5.79-build/bluez-5.79/src/shared/gatt-client.c:3295:31: warning[-Wanalyzer-use-after-free]: use after 'free' of 'req'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
bluez-5.79-build/bluez-5.79/src/shared/gatt-db.c: scope_hint: In function 'read_ext_prop_value'
bluez-5.79-build/bluez-5.79/src/shared/gatt-db.c:1902:37: warning[-Wanalyzer-null-dereference]: dereference of NULL 'value'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def116]
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c: scope_hint: In function 'read_by_grp_type_cb'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:322:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'type'
bluez-5.79-build/bluez-5.79/src/shared/att.h:11: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:19: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def117]
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c: scope_hint: In function 'read_by_type_cb'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:528:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'type'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def118]
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c: scope_hint: In function 'prep_write_cb'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:1347:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'malloc((long unsigned int)length)' where non-null expected
bluez-5.79-build/bluez-5.79/src/shared/util.h:26:27: note: in definition of macro 'le16_to_cpu'
bluez-5.79-build/bluez-5.79/src/shared/util.h:211:28: note: in expansion of macro 'get_unaligned'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c: scope_hint: In function 'prep_write_cb'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:1334:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:1334:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:1334:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c: scope_hint: In function 'prep_write_cb'
bluez-5.79-build/bluez-5.79/src/shared/gatt-server.c:1344:16: note: in expansion of macro 'new0'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'mcp_send'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:586:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mcp'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:584:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:584:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_mp_name_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1068:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_track_changed_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1086:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_track_title_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1102:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_track_duration_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1120:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_track_position_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1138:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_media_state_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1156:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_media_cp_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1174:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_media_cp_op_supported_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1190:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'bt_mcp_content_control_id_supported_attach'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1209:49: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
bluez-5.79-build/bluez-5.79/src/shared/mcp.c: scope_hint: In function 'foreach_mcs_service'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1376:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1374:9: note: in expansion of macro 'DBG'
bluez-5.79-build/bluez-5.79/src/shared/mcp.c:1374:9: note: in expansion of macro 'DBG'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'micp_get_session'
bluez-5.79-build/bluez-5.79/src/shared/micp.c:271:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_muted'
bluez-5.79-build/bluez-5.79/src/shared/micp.c:339:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_muted'
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_muted'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_mute_write'
bluez-5.79-build/bluez-5.79/src/shared/micp.c:421:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_mute_write'
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_mute_write'
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'mics_mute_write'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
bluez-5.79-build/bluez-5.79/src/shared/micp.c: scope_hint: In function 'foreach_mics_service'
bluez-5.79-build/bluez-5.79/src/shared/micp.c:786:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def134]
bluez-5.79-build/bluez-5.79/src/shared/shell.c: scope_hint: In function 'bt_shell_printf'
bluez-5.79-build/bluez-5.79/src/shared/shell.c:738:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'saved_line'
bluez-5.79-build/bluez-5.79/src/shared/shell.c:29: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
bluez-5.79-build/bluez-5.79/src/shared/tester.c: scope_hint: In function 'tester_setup_io'
bluez-5.79-build/bluez-5.79/src/shared/tester.c:1041:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/tester.c: scope_hint: In function 'tester_setup_io'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
bluez-5.79-build/bluez-5.79/src/shared/tester.c: scope_hint: In function 'tester_io_send'
bluez-5.79-build/bluez-5.79/src/shared/tester.c:1051:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/tester.c: scope_hint: In function 'tester_io_send'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
bluez-5.79-build/bluez-5.79/src/shared/tester.c: scope_hint: In function 'tester_io_set_complete_func'
bluez-5.79-build/bluez-5.79/src/shared/tester.c:1059:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.79-build/bluez-5.79/src/shared/tester.c: scope_hint: In function 'tester_io_set_complete_func'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def138]
bluez-5.79-build/bluez-5.79/src/shared/util.c: scope_hint: In function 'util_iov_memcpy.part.0'
bluez-5.79-build/bluez-5.79/src/shared/util.c:379:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
bluez-5.79-build/bluez-5.79/src/shared/util.c: scope_hint: In function 'strdelimit'
bluez-5.79-build/bluez-5.79/src/shared/util.c:1852:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dup'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def140]
bluez-5.79-build/bluez-5.79/src/shared/util.h:60:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(struct <anonymous> *)(&mic[0]).__v’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:16: note: in expansion of macro ‘be32_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/crypto.c: scope_hint: In function ‘mesh_crypto_aes_ccm_decrypt’
bluez-5.79-build/bluez-5.79/src/shared/util.h:68:21: note: in definition of macro ‘put_unaligned’
bluez-5.79-build/bluez-5.79/src/shared/util.h:287:23: note: in expansion of macro ‘cpu_to_be32’
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/crypto.c: scope_hint: In function ‘mesh_crypto_aes_ccm_decrypt’
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/crypto.c: scope_hint: In function ‘mesh_crypto_aes_ccm_decrypt’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:16: note: in expansion of macro ‘be32_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:28: note: in expansion of macro ‘get_unaligned’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:16: note: in expansion of macro ‘be32_to_cpu’
bluez-5.79-build/bluez-5.79/src/shared/util.h:240:28: note: in expansion of macro ‘get_unaligned’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
bluez-5.79-build/bluez-5.79/src/shared/util.h:68:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'data'
bluez-5.79-build/bluez-5.79/src/shared/util.h:260:9: note: in expansion of macro 'put_unaligned'
bluez-5.79-build/bluez-5.79/src/shared/gatt-db.c: scope_hint: In function 'gen_hash_m.part.0'
bluez-5.79-build/bluez-5.79/src/shared/util.h:260:9: note: in expansion of macro 'put_unaligned'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
bluez-5.79-build/bluez-5.79/src/shared/util.h:68:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pElem’
bluez-5.79-build/bluez-5.79/src/shared/util.h:265:9: note: in expansion of macro ‘put_unaligned’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/sdpd-request.c: scope_hint: In function ‘extract_des’
bluez-5.79-build/bluez-5.79/src/shared/util.h:265:9: note: in expansion of macro ‘put_unaligned’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
bluez-5.79-build/bluez-5.79/src/shared/util.c:39: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/shared/util.c: scope_hint: In function 'util_iov_dup'
bluez-5.79-build/bluez-5.79/src/shared/util.h:83:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.79-build/bluez-5.79/src/shared/util.c:350:15: note: in expansion of macro 'new0'
bluez-5.79-build/bluez-5.79/src/shared/util.c:350:15: note: in expansion of macro 'new0'
bluez-5.79-build/bluez-5.79/src/shared/util.c:350:15: note: in expansion of macro 'new0'
bluez-5.79-build/bluez-5.79/src/shared/util.c:350:15: note: in expansion of macro 'new0'
bluez-5.79-build/bluez-5.79/src/shared/util.c:350:15: note: in expansion of macro 'new0'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
bluez-5.79-build/bluez-5.79/src/shared/vcp.c: scope_hint: In function 'vcp_get_session.part.0'
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:501:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
bluez-5.79-build/bluez-5.79/src/shared/vcp.c: scope_hint: In function 'aics_new'
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:1733:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'ip_descr' where non-null expected
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:22: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:1728:16: note: in expansion of macro 'new0'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
bluez-5.79-build/bluez-5.79/src/shared/vcp.c: scope_hint: In function 'vcp_audio_loc_notify'
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:1981:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'vocs_audio_loc_n'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
bluez-5.79-build/bluez-5.79/src/shared/vcp.c: scope_hint: In function 'aics_audio_ip_desr_notify'
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:2555:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'aud_ip_desr' where non-null expected
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
bluez-5.79-build/bluez-5.79/src/shared/vcp.c: scope_hint: In function 'foreach_vcs_service'
bluez-5.79-build/bluez-5.79/src/shared/vcp.c:2691:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-666): [#def149]
bluez-5.79-build/bluez-5.79/tools/avinfo.c: scope_hint: In function ‘l2cap_connect’
bluez-5.79-build/bluez-5.79/tools/avinfo.c:880:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-666): [#def150]
bluez-5.79-build/bluez-5.79/tools/avtest.c: scope_hint: In function ‘do_connect’
bluez-5.79-build/bluez-5.79/tools/avtest.c:532:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-479): [#def151]
bluez-5.79-build/bluez-5.79/tools/bneptest.c: scope_hint: In function ‘exit_handler’
bluez-5.79-build/bluez-5.79/tools/bneptest.c:483:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
bluez-5.79-build/bluez-5.79/tools/bneptest.c:35: included_from: Included from here.
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/tools/bneptest.c:555:9: note: in expansion of macro ‘DBG’
Error: GCC_ANALYZER_WARNING (CWE-479): [#def152]
bluez-5.79-build/bluez-5.79/tools/bneptest.c:490:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
bluez-5.79-build/bluez-5.79/src/log.h:60:9: note: in expansion of macro ‘DBG_IDX’
bluez-5.79-build/bluez-5.79/tools/bneptest.c:555:9: note: in expansion of macro ‘DBG’
bluez-5.79-build/bluez-5.79/tools/bneptest.c:490:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
bluez-5.79-build/bluez-5.79/tools/btsnoop.c: scope_hint: In function ‘command_merge’
bluez-5.79-build/bluez-5.79/tools/btsnoop.c:260:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
/usr/include/sys/types.h:176: included_from: Included from here.
/usr/include/stdlib.h:514: included_from: Included from here.
bluez-5.79-build/bluez-5.79/tools/btsnoop.c:21: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-666): [#def154]
bluez-5.79-build/bluez-5.79/tools/cltest.c: scope_hint: In function ‘send_message’
bluez-5.79-build/bluez-5.79/tools/cltest.c:62:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘fd’ in wrong phase
bluez-5.79-build/bluez-5.79/tools/cltest.c:26: included_from: Included from here.
bluez-5.79-build/bluez-5.79/tools/cltest.c:249:33: note: in expansion of macro ‘BDADDR_ANY’
bluez-5.79-build/bluez-5.79/tools/cltest.c:250:53: note: in expansion of macro ‘BDADDR_ANY’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
bluez-5.79-build/bluez-5.79/tools/create-image.c: scope_hint: In function ‘write_block’
bluez-5.79-build/bluez-5.79/tools/create-image.c:108:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
bluez-5.79-build/bluez-5.79/tools/create-image.c:16: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of ‘fprintf’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
bluez-5.79-build/bluez-5.79/tools/hciattach.c: scope_hint: In function ‘main’
bluez-5.79-build/bluez-5.79/tools/hciattach.c:1322:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
bluez-5.79-build/bluez-5.79/tools/hciattach.c:1327:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
bluez-5.79-build/bluez-5.79/tools/hciattach.c:1329:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
bluez-5.79-build/bluez-5.79/tools/hciattach.c:1334:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
bluez-5.79-build/bluez-5.79/tools/hciattach.c:1336:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
bluez-5.79-build/bluez-5.79/tools/hciattach.c:1340:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
bluez-5.79-build/bluez-5.79/tools/hciattach_qualcomm.c: scope_hint: In function ‘qualcomm_load_firmware’
bluez-5.79-build/bluez-5.79/tools/hciattach_qualcomm.c:93:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(firmware, 0)’
bluez-5.79-build/bluez-5.79/tools/hciattach_qualcomm.c:95:9: note: in expansion of macro ‘FAILIF’
bluez-5.79-build/bluez-5.79/tools/hciattach_qualcomm.c:95:9: note: in expansion of macro ‘FAILIF’
bluez-5.79-build/bluez-5.79/tools/hciattach_qualcomm.c:111:17: note: in expansion of macro ‘FAILIF’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
bluez-5.79-build/bluez-5.79/tools/hciattach_tialt.c: scope_hint: In function ‘texas_load_firmware’
bluez-5.79-build/bluez-5.79/tools/hciattach_tialt.c:95:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(firmware, 0)’
bluez-5.79-build/bluez-5.79/tools/hciattach_tialt.c:97:9: note: in expansion of macro ‘FAILIF’
bluez-5.79-build/bluez-5.79/tools/hciattach_tialt.c:97:9: note: in expansion of macro ‘FAILIF’
bluez-5.79-build/bluez-5.79/tools/hciattach_tialt.c:111:17: note: in expansion of macro ‘FAILIF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
bluez-5.79-build/bluez-5.79/tools/hcidump.c: scope_hint: In function ‘process_frames’
bluez-5.79-build/bluez-5.79/tools/hcidump.c:141:24: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
bluez-5.79-build/bluez-5.79/tools/iso-tester.c: scope_hint: In function ‘listen_iso_sock’
bluez-5.79-build/bluez-5.79/tools/iso-tester.c:2791:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘addr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
bluez-5.79-build/bluez-5.79/tools/isotest.c: scope_hint: In function ‘do_listen’
bluez-5.79-build/bluez-5.79/tools/isotest.c:519:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘addr’
bluez-5.79-build/bluez-5.79/tools/isotest.c:17: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def167]
bluez-5.79-build/bluez-5.79/tools/isotest.c: scope_hint: In function ‘main’
bluez-5.79-build/bluez-5.79/tools/isotest.c:1214:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iso_qos’
Error: GCC_ANALYZER_WARNING (CWE-666): [#def168]
bluez-5.79-build/bluez-5.79/tools/l2cap-tester.c: scope_hint: In function ‘connect_l2cap_impl’
bluez-5.79-build/bluez-5.79/tools/l2cap-tester.c:1610:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
bluez-5.79-build/bluez-5.79/tools/l2cap-tester.c: scope_hint: In function ‘l2cap_listen_cb’
bluez-5.79-build/bluez-5.79/tools/l2cap-tester.c:2270:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(io)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def170]
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/crypto.c: scope_hint: In function ‘mesh_crypto_aes_ccm_encrypt’
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/crypto.c:376:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mic’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/prov-db.c: scope_hint: In function ‘prov_file_read’
bluez-5.79-build/bluez-5.79/tools/mesh-gatt/prov-db.c:56:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
Error: CPPCHECK_WARNING (CWE-457): [#def172]
bluez-5.79-build/bluez-5.79/tools/mesh/agent.c:94: error[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def173]
bluez-5.79-build/bluez-5.79/tools/meshctl.c:762: warning[uninitvar]: Uninitialized variable: addr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c:26: included_from: Included from here.
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c: scope_hint: In function ‘mpris_busname’
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c:1863:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
/usr/include/glib-2.0/glib/gstrfuncs.h:71:29: note: in definition of macro ‘g_ascii_isdigit’
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c:1967:27: note: in expansion of macro ‘g_strdup’
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c:1967:27: note: in expansion of macro ‘g_strdup’
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c: scope_hint: In function ‘mpris_busname’
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro ‘_G_NEW’
bluez-5.79-build/bluez-5.79/tools/mpris-proxy.c:1969:18: note: in expansion of macro ‘g_new0’
/usr/include/glib-2.0/glib/gstrfuncs.h:71:29: note: in definition of macro ‘g_ascii_isdigit’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def175]
bluez-5.79-build/bluez-5.79/tools/obex-server-tool.c: scope_hint: In function ‘handle_put’
bluez-5.79-build/bluez-5.79/tools/obex-server-tool.c:133:20: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
bluez-5.79-build/bluez-5.79/tools/obex-server-tool.c:17: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
bluez-5.79-build/bluez-5.79/tools/obex-server-tool.c: scope_hint: In function ‘handle_get’
bluez-5.79-build/bluez-5.79/tools/obex-server-tool.c:192:20: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
bluez-5.79-build/bluez-5.79/tools/parser/amp.c:15: included_from: Included from here.
bluez-5.79-build/bluez-5.79/tools/parser/parser.h: scope_hint: In function ‘p_indent’
bluez-5.79-build/bluez-5.79/tools/parser/parser.h:129:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
Error: GCC_ANALYZER_WARNING: [#def178]
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c: scope_hint: In function ‘create_rfcomm_sock’
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c:404:13: warning[-Wanalyzer-fd-use-without-check]: ‘bind’ on possibly invalid file descriptor ‘sk’
Error: GCC_ANALYZER_WARNING (CWE-666): [#def179]
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c: scope_hint: In function ‘connect_rfcomm_sock’
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c:422:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
Error: GCC_ANALYZER_WARNING: [#def180]
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c:422:15: warning[-Wanalyzer-fd-use-without-check]: ‘connect’ on possibly invalid file descriptor ‘sk’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def181]
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c: scope_hint: In function ‘rfcomm_listen_cb’
bluez-5.79-build/bluez-5.79/tools/rfcomm-tester.c:707:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(io)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
bluez-5.79-build/bluez-5.79/tools/rfcomm.c: scope_hint: In function ‘cmd_connect’
bluez-5.79-build/bluez-5.79/tools/rfcomm.c:354:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&devname, 256)’
bluez-5.79-build/bluez-5.79/tools/rfcomm.c:17: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
bluez-5.79-build/bluez-5.79/tools/rfcomm.c: scope_hint: In function ‘cmd_listen’
bluez-5.79-build/bluez-5.79/tools/rfcomm.c:515:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&devname, 256)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
bluez-5.79-build/bluez-5.79/tools/sco-tester.c: scope_hint: In function ‘create_sco_sock’
bluez-5.79-build/bluez-5.79/tools/sco-tester.c:576:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sk’
Error: GCC_ANALYZER_WARNING (CWE-666): [#def185]
bluez-5.79-build/bluez-5.79/tools/sco-tester.c: scope_hint: In function ‘connect_sco_sock’
bluez-5.79-build/bluez-5.79/tools/sco-tester.c:616:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
Error: CPPCHECK_WARNING (CWE-457): [#def186]
bluez-5.79-build/bluez-5.79/tools/test-runner.c:951: warning[uninitvar]: Uninitialized variable: argv
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-225.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | bluez-5.79-1.fc42 |
store-results-to | /tmp/tmplki9ox_9/bluez-5.79-1.fc42.tar.xz |
time-created | 2024-11-12 23:24:30 |
time-finished | 2024-11-12 23:29:08 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmplki9ox_9/bluez-5.79-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmplki9ox_9/bluez-5.79-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |