bluez-5.81-2.fc43
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
bluez-5.81/./src/shared/util.h:241:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(struct <anonymous> *)(&mic[0]).__v’
bluez-5.81/tools/mesh-gatt/crypto.c:1054:6: enter_function: entry to ‘mesh_crypto_packet_decode’
bluez-5.81/tools/mesh-gatt/crypto.c:1065:12: branch_false: following ‘false’ branch (when ‘packet_len > 13’)...
bluez-5.81/tools/mesh-gatt/crypto.c:1068:9: call_function: inlined call to ‘put_be32’ from ‘mesh_crypto_packet_decode’
bluez-5.81/tools/mesh-gatt/crypto.c:1071:14: call_function: calling ‘aes_ecb_one’ from ‘mesh_crypto_packet_decode’
bluez-5.81/tools/mesh-gatt/crypto.c:1071:14: return_function: returning to ‘mesh_crypto_packet_decode’ from ‘aes_ecb_one’
bluez-5.81/tools/mesh-gatt/crypto.c:1071:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1074:9: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1075:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
bluez-5.81/tools/mesh-gatt/crypto.c:1076:17: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1075:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
bluez-5.81/tools/mesh-gatt/crypto.c:1076:17: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1081:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1085:14: branch_false: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1108:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1124:22: branch_false: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1124:22: call_function: calling ‘mesh_crypto_aes_ccm_decrypt’ from ‘mesh_crypto_packet_decode’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
bluez-5.81/./src/shared/util.h:251:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(struct <anonymous> *)(&mic[0]).__v’
bluez-5.81/tools/mesh-gatt/crypto.c:1054:6: enter_function: entry to ‘mesh_crypto_packet_decode’
bluez-5.81/tools/mesh-gatt/crypto.c:1065:12: branch_false: following ‘false’ branch (when ‘packet_len > 13’)...
bluez-5.81/tools/mesh-gatt/crypto.c:1068:9: call_function: inlined call to ‘put_be32’ from ‘mesh_crypto_packet_decode’
bluez-5.81/tools/mesh-gatt/crypto.c:1071:14: call_function: calling ‘aes_ecb_one’ from ‘mesh_crypto_packet_decode’
bluez-5.81/tools/mesh-gatt/crypto.c:1071:14: return_function: returning to ‘mesh_crypto_packet_decode’ from ‘aes_ecb_one’
bluez-5.81/tools/mesh-gatt/crypto.c:1071:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1074:9: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1075:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
bluez-5.81/tools/mesh-gatt/crypto.c:1076:17: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1075:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
bluez-5.81/tools/mesh-gatt/crypto.c:1076:17: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1081:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1085:14: branch_false: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1108:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1111:22: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1111:22: call_function: calling ‘mesh_crypto_aes_ccm_decrypt’ from ‘mesh_crypto_packet_decode’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
bluez-5.81/./src/shared/util.h:261:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'data'
bluez-5.81/src/shared/gatt-db.c:407:24: acquire_memory: this call could return NULL
bluez-5.81/src/shared/gatt-db.c:408:17: call_function: inlined call to 'put_le16' from 'gen_hash_m'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
bluez-5.81/./src/shared/util.h:266:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pElem’
bluez-5.81/src/sdpd-request.c:1118:6: enter_function: entry to ‘handle_request’
bluez-5.81/src/sdpd-request.c:1125:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1130:13: branch_false: ...to here
bluez-5.81/src/sdpd-request.c:1130:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdpd-request.c:1133:17: branch_true: ...to here
bluez-5.81/src/sdpd-request.c:1136:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1141:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1147:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1152:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1164:9: call_function: calling ‘process_request’ from ‘handle_request’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
bluez-5.81/./src/shared/util.h:288:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pElem’
bluez-5.81/src/sdpd-request.c:1118:6: enter_function: entry to ‘handle_request’
bluez-5.81/src/sdpd-request.c:1125:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1130:13: branch_false: ...to here
bluez-5.81/src/sdpd-request.c:1130:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdpd-request.c:1133:17: branch_true: ...to here
bluez-5.81/src/sdpd-request.c:1136:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1141:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1147:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1152:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1164:9: call_function: calling ‘process_request’ from ‘handle_request’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
bluez-5.81/attrib/gattrib.c:207:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pdu’
bluez-5.81/attrib/gattrib.c:348:13: enter_function: entry to ‘client_notify_cb’
bluez-5.81/attrib/gattrib.c:355:12: branch_false: following ‘false’ branch (when ‘length == 0’)...
bluez-5.81/attrib/gattrib.c:358:9: branch_false: ...to here
bluez-5.81/attrib/gattrib.c:358:9: call_function: calling ‘attrib_callback_notify’ from ‘client_notify_cb’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
bluez-5.81/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): [#def8]
bluez-5.81/btio/btio.c:2055:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(create_io(0, &opts, gerr))’
bluez-5.81/btio/btio.c:2021:13: enter_function: entry to ‘bt_io_connect’
bluez-5.81/btio/btio.c:2036:12: branch_false: following ‘false’ branch...
bluez-5.81/btio/btio.c:2039:14: branch_false: ...to here
bluez-5.81/btio/btio.c:2039:14: call_function: calling ‘create_io’ from ‘bt_io_connect’
bluez-5.81/btio/btio.c:2039:14: return_function: returning to ‘bt_io_connect’ from ‘create_io’
bluez-5.81/btio/btio.c:2040:12: branch_false: following ‘false’ branch...
bluez-5.81/btio/btio.c:2043:16: branch_false: ...to here
bluez-5.81/btio/btio.c:2064:23: call_function: calling ‘sco_connect’ from ‘bt_io_connect’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
bluez-5.81/btio/btio.c:2120:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(create_io(1, &opts, err))’
bluez-5.81/btio/btio.c:2090:13: enter_function: entry to ‘bt_io_listen’
bluez-5.81/btio/btio.c:2104:12: branch_false: following ‘false’ branch...
bluez-5.81/btio/btio.c:2107:14: branch_false: ...to here
bluez-5.81/btio/btio.c:2107:14: call_function: calling ‘create_io’ from ‘bt_io_listen’
bluez-5.81/btio/btio.c:2107:14: return_function: returning to ‘bt_io_listen’ from ‘create_io’
bluez-5.81/btio/btio.c:2108:12: branch_false: following ‘false’ branch...
bluez-5.81/btio/btio.c:2111:16: branch_false: ...to here
bluez-5.81/btio/btio.c:2120:12: danger: ‘g_io_channel_unix_get_fd(create_io(1, &opts, err))’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
bluez-5.81/client/advertising.c:708:14: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.81/client/advertising.c:698:6: enter_function: entry to ‘ad_register’
bluez-5.81/client/advertising.c:700:12: branch_false: following ‘false’ branch...
bluez-5.81/client/advertising.c:705:16: branch_false: ...to here
bluez-5.81/client/advertising.c:706:9: release_memory: ‘0’ is NULL
bluez-5.81/client/advertising.c:708:14: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-457): [#def11]
bluez-5.81/client/assistant.c:181: warning[uninitvar]: Uninitialized variable: value
Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
bluez-5.81/client/display.c:53:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘saved_line’
bluez-5.81/client/display.c:39:12: branch_false: following ‘false’ branch...
bluez-5.81/client/display.c:47:9: branch_false: ...to here
bluez-5.81/client/display.c:51:12: branch_true: following ‘true’ branch...
bluez-5.81/client/display.c:52:17: branch_true: ...to here
bluez-5.81/client/display.c:53:17: danger: use of uninitialized value ‘saved_line’ here
Error: CPPCHECK_WARNING (CWE-457): [#def13]
bluez-5.81/client/gatt.c:730: warning[uninitvar]: Uninitialized variable: value
Error: CPPCHECK_WARNING (CWE-457): [#def14]
bluez-5.81/client/hci.c:102: warning[uninitvar]: Uninitialized variable: value
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
bluez-5.81/client/mgmt.c:4748:9: warning[-Wanalyzer-malloc-leak]: leak of ‘adv_data’
bluez-5.81/client/mgmt.c:4768:13: enter_function: entry to ‘cmd_add_adv’
bluez-5.81/client/mgmt.c:4786:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
bluez-5.81/client/mgmt.c:4788:17: branch_true: ...to here
bluez-5.81/client/mgmt.c:4826:28: branch_false: following ‘false’ branch...
bluez-5.81/client/mgmt.c:4831:30: branch_false: ...to here
bluez-5.81/client/mgmt.c:4831:30: call_function: calling ‘parse_bytes’ from ‘cmd_add_adv’
bluez-5.81/client/mgmt.c:4831:30: return_function: returning to ‘cmd_add_adv’ from ‘parse_bytes’
bluez-5.81/client/mgmt.c:4831:28: branch_true: following ‘true’ branch...
branch_true: ...to here
bluez-5.81/client/mgmt.c:4786:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
bluez-5.81/client/mgmt.c:4788:17: branch_true: ...to here
bluez-5.81/client/mgmt.c:4826:28: branch_false: following ‘false’ branch...
bluez-5.81/client/mgmt.c:4831:30: branch_false: ...to here
bluez-5.81/client/mgmt.c:4831:30: call_function: calling ‘parse_bytes’ from ‘cmd_add_adv’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
bluez-5.81/client/mgmt.c:4927:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘adv_data’
bluez-5.81/client/mgmt.c:4768:13: enter_function: entry to ‘cmd_add_adv’
bluez-5.81/client/mgmt.c:4786:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
bluez-5.81/client/mgmt.c:4788:17: branch_true: ...to here
bluez-5.81/client/mgmt.c:4826:28: branch_false: following ‘false’ branch...
bluez-5.81/client/mgmt.c:4831:30: branch_false: ...to here
bluez-5.81/client/mgmt.c:4831:30: call_function: calling ‘parse_bytes’ from ‘cmd_add_adv’
bluez-5.81/client/mgmt.c:4831:30: return_function: returning to ‘cmd_add_adv’ from ‘parse_bytes’
bluez-5.81/client/mgmt.c:4831:28: branch_true: following ‘true’ branch...
branch_true: ...to here
bluez-5.81/client/mgmt.c:4786:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
bluez-5.81/client/mgmt.c:4890:14: branch_false: ...to here
bluez-5.81/client/mgmt.c:4894:12: branch_false: following ‘false’ branch (when ‘argc == 1’)...
bluez-5.81/client/mgmt.c:4899:12: branch_false: ...to here
bluez-5.81/client/mgmt.c:4899:12: branch_false: following ‘false’ branch (when ‘uuid_bytes == 0’)...
bluez-5.81/client/mgmt.c:4902:20: branch_false: ...to here
bluez-5.81/client/mgmt.c:4910:12: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
bluez-5.81/client/mgmt.c:4913:9: branch_false: ...to here
bluez-5.81/client/mgmt.c:4920:12: branch_false: following ‘false’ branch (when ‘uuid_bytes == 0’)...
bluez-5.81/client/mgmt.c:4926:12: branch_false: ...to here
bluez-5.81/client/mgmt.c:4926:12: branch_true: following ‘true’ branch...
bluez-5.81/client/mgmt.c:4927:17: branch_true: ...to here
bluez-5.81/client/mgmt.c:4927:17: danger: use of uninitialized value ‘adv_data’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
bluez-5.81/client/mgmt.c:5351:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘adv_data’
bluez-5.81/client/mgmt.c:5234:13: enter_function: entry to ‘cmd_add_ext_adv_data’
bluez-5.81/client/mgmt.c:5250:16: branch_true: following ‘true’ branch (when ‘opt != -1’)...
bluez-5.81/client/mgmt.c:5252:17: branch_true: ...to here
bluez-5.81/client/mgmt.c:5290:28: branch_false: following ‘false’ branch...
bluez-5.81/client/mgmt.c:5295:30: branch_false: ...to here
bluez-5.81/client/mgmt.c:5295:30: call_function: calling ‘parse_bytes’ from ‘cmd_add_ext_adv_data’
bluez-5.81/client/mgmt.c:5295:30: return_function: returning to ‘cmd_add_ext_adv_data’ from ‘parse_bytes’
bluez-5.81/client/mgmt.c:5295:28: branch_true: following ‘true’ branch...
branch_true: ...to here
bluez-5.81/client/mgmt.c:5250:16: branch_false: following ‘false’ branch (when ‘opt == -1’)...
bluez-5.81/client/mgmt.c:5317:14: branch_false: ...to here
bluez-5.81/client/mgmt.c:5321:12: branch_false: following ‘false’ branch (when ‘argc == 1’)...
bluez-5.81/client/mgmt.c:5326:12: branch_false: ...to here
bluez-5.81/client/mgmt.c:5326:12: branch_false: following ‘false’ branch (when ‘uuid_bytes == 0’)...
bluez-5.81/client/mgmt.c:5329:20: branch_false: ...to here
bluez-5.81/client/mgmt.c:5337:12: branch_false: following ‘false’ branch (when ‘cp’ is non-NULL)...
bluez-5.81/client/mgmt.c:5340:9: branch_false: ...to here
bluez-5.81/client/mgmt.c:5344:12: branch_false: following ‘false’ branch (when ‘uuid_bytes == 0’)...
bluez-5.81/client/mgmt.c:5350:12: branch_false: ...to here
bluez-5.81/client/mgmt.c:5350:12: branch_true: following ‘true’ branch...
bluez-5.81/client/mgmt.c:5351:17: branch_true: ...to here
bluez-5.81/client/mgmt.c:5351:17: danger: use of uninitialized value ‘adv_data’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
bluez-5.81/client/player.c:3506:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘preset’
bluez-5.81/client/player.c:3495:29: enter_function: entry to ‘codec_preset_add’
bluez-5.81/client/player.c:3500:17: call_function: calling ‘preset_find_name’ from ‘codec_preset_add’
bluez-5.81/client/player.c:3500:17: return_function: returning to ‘codec_preset_add’ from ‘preset_find_name’
bluez-5.81/client/player.c:3501:12: branch_false: following ‘false’ branch...
branch_false: ...to here
call_function: calling ‘codec_preset_add’ from ‘codec_preset_add’
Error: GCC_ANALYZER_WARNING: [#def19]
bluez-5.81/client/player.c:5550:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘fd’
bluez-5.81/client/player.c:5684:13: enter_function: entry to ‘cmd_send_transport’
bluez-5.81/client/player.c:5693:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
bluez-5.81/client/player.c:5694:67: branch_true: ...to here
bluez-5.81/client/player.c:5696:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5701:29: call_function: inlined call to ‘find_transport’ from ‘cmd_send_transport’
bluez-5.81/client/player.c:5702:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5707:21: branch_false: ...to here
bluez-5.81/client/player.c:5707:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5712:21: branch_false: ...to here
bluez-5.81/client/player.c:5712:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5719:17: branch_false: ...to here
bluez-5.81/client/player.c:5724:20: branch_true: following ‘true’ branch...
bluez-5.81/client/player.c:5727:66: branch_true: ...to here
bluez-5.81/client/player.c:5728:31: call_function: calling ‘transport_send’ from ‘cmd_send_transport’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
bluez-5.81/client/player.c:5698:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
bluez-5.81/client/player.c:5684:13: enter_function: entry to ‘cmd_send_transport’
bluez-5.81/client/player.c:5693:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
bluez-5.81/client/player.c:5694:67: branch_true: ...to here
bluez-5.81/client/player.c:5696:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5701:29: call_function: inlined call to ‘find_transport’ from ‘cmd_send_transport’
bluez-5.81/client/player.c:5702:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5707:21: branch_false: ...to here
bluez-5.81/client/player.c:5707:20: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5712:21: branch_false: ...to here
bluez-5.81/client/player.c:5713:30: call_function: calling ‘open_file’ from ‘cmd_send_transport’
bluez-5.81/client/player.c:5713:30: return_function: returning to ‘cmd_send_transport’ from ‘open_file’
bluez-5.81/client/player.c:5714:28: branch_false: following ‘false’ branch...
bluez-5.81/client/player.c:5719:17: branch_false: ...to here
bluez-5.81/client/player.c:5745:20: branch_false: following ‘false’ branch (when ‘err >= 0’)...
bluez-5.81/client/player.c:5693:31: branch_false: ...to here
bluez-5.81/client/player.c:5698:32: danger: ‘fd’ leaks here; was opened at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
bluez-5.81/emulator/b1ee.c:267:28: warning[-Wanalyzer-malloc-leak]: leak of ‘server_port’
bluez-5.81/emulator/b1ee.c:249:5: enter_function: entry to ‘main’
bluez-5.81/emulator/b1ee.c:261:20: branch_false: following ‘false’ branch (when ‘opt >= 0’)...
bluez-5.81/emulator/b1ee.c:264:17: branch_false: ...to here
bluez-5.81/emulator/b1ee.c:266:39: call_function: calling ‘set_port’ from ‘main’
bluez-5.81/emulator/b1ee.c:266:39: return_function: returning to ‘main’ from ‘set_port’
bluez-5.81/emulator/b1ee.c:267:28: branch_false: following ‘false’ branch...
branch_false: ...to here
bluez-5.81/emulator/b1ee.c:261:20: branch_false: following ‘false’ branch (when ‘opt >= 0’)...
bluez-5.81/emulator/b1ee.c:264:17: branch_false: ...to here
bluez-5.81/emulator/b1ee.c:266:39: call_function: calling ‘set_port’ from ‘main’
bluez-5.81/emulator/b1ee.c:266:39: return_function: returning to ‘main’ from ‘set_port’
bluez-5.81/emulator/b1ee.c:267:28: branch_false: following ‘false’ branch...
branch_false: ...to here
bluez-5.81/emulator/b1ee.c:267:28: danger: ‘server_port’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-910): [#def22]
bluez-5.81/emulator/b1ee.c:300:19: warning[-Wanalyzer-fd-use-after-close]: ‘write’ on closed file descriptor ‘sniffer_fd’
bluez-5.81/emulator/b1ee.c:249:5: enter_function: entry to ‘main’
bluez-5.81/emulator/b1ee.c:261:20: branch_true: following ‘true’ branch (when ‘opt < 0’)...
bluez-5.81/emulator/b1ee.c:289:16: branch_true: ...to here
bluez-5.81/emulator/b1ee.c:293:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/b1ee.c:296:21: branch_false: following ‘false’ branch (when ‘server_port’ is NULL)...
branch_false: ...to here
bluez-5.81/emulator/b1ee.c:296:21: call_function: calling ‘do_connect’ from ‘main’
bluez-5.81/emulator/b1ee.c:296:21: return_function: returning to ‘main’ from ‘do_connect’
bluez-5.81/emulator/b1ee.c:297:22: branch_false: following ‘false’ branch (when ‘sniffer_port’ is NULL)...
branch_false: ...to here
bluez-5.81/emulator/b1ee.c:297:22: call_function: calling ‘do_connect’ from ‘main’
bluez-5.81/emulator/b1ee.c:297:22: return_function: returning to ‘main’ from ‘do_connect’
bluez-5.81/emulator/b1ee.c:300:19: danger: ‘write’ on closed file descriptor ‘sniffer_fd’; ‘close’ was at [(29)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING: [#def23]
bluez-5.81/emulator/b1ee.c:300:19: warning[-Wanalyzer-fd-use-without-check]: ‘write’ on possibly invalid file descriptor ‘-1’
bluez-5.81/emulator/b1ee.c:249:5: enter_function: entry to ‘main’
bluez-5.81/emulator/b1ee.c:261:20: branch_true: following ‘true’ branch (when ‘opt < 0’)...
bluez-5.81/emulator/b1ee.c:289:16: branch_true: ...to here
bluez-5.81/emulator/b1ee.c:293:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/b1ee.c:296:21: branch_false: following ‘false’ branch (when ‘server_port’ is NULL)...
branch_false: ...to here
bluez-5.81/emulator/b1ee.c:296:21: call_function: calling ‘do_connect’ from ‘main’
bluez-5.81/emulator/b1ee.c:296:21: return_function: returning to ‘main’ from ‘do_connect’
bluez-5.81/emulator/b1ee.c:297:22: branch_false: following ‘false’ branch (when ‘sniffer_port’ is NULL)...
branch_false: ...to here
bluez-5.81/emulator/b1ee.c:297:22: call_function: calling ‘do_connect’ from ‘main’
bluez-5.81/emulator/b1ee.c:297:22: return_function: returning to ‘main’ from ‘do_connect’
bluez-5.81/emulator/b1ee.c:300:19: danger: ‘-1’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
bluez-5.81/emulator/btdev.c:3794:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data’
bluez-5.81/emulator/btdev.c:6524:12: enter_function: entry to ‘cmd_big_create_sync_complete’
bluez-5.81/emulator/btdev.c:6541:13: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6545:49: branch_false: ...to here
bluez-5.81/emulator/btdev.c:6544:18: call_function: calling ‘find_btdev_by_bdaddr_type’ from ‘cmd_big_create_sync_complete’
bluez-5.81/emulator/btdev.c:6544:18: return_function: returning to ‘cmd_big_create_sync_complete’ from ‘find_btdev_by_bdaddr_type’
bluez-5.81/emulator/btdev.c:6546:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6549:31: branch_false: ...to here
bluez-5.81/emulator/btdev.c:6549:15: call_function: calling ‘le_big_new’ from ‘cmd_big_create_sync_complete’
bluez-5.81/emulator/btdev.c:6549:15: return_function: returning to ‘cmd_big_create_sync_complete’ from ‘le_big_new’
bluez-5.81/emulator/btdev.c:6550:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6557:9: branch_false: ...to here
bluez-5.81/emulator/btdev.c:6559:21: branch_true: following ‘true’ branch...
bluez-5.81/emulator/btdev.c:6560:24: branch_true: ...to here
bluez-5.81/emulator/btdev.c:6560:24: call_function: calling ‘conn_link_bis’ from ‘cmd_big_create_sync_complete’
bluez-5.81/emulator/btdev.c:6560:24: return_function: returning to ‘cmd_big_create_sync_complete’ from ‘conn_link_bis’
bluez-5.81/emulator/btdev.c:6561:20: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6564:30: branch_false: ...to here
bluez-5.81/emulator/btdev.c:6559:21: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6569:18: branch_false: ...to here
bluez-5.81/emulator/btdev.c:6569:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6578:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/btdev.c:6585:25: branch_false: ...to here
bluez-5.81/emulator/btdev.c:6595:9: call_function: calling ‘le_meta_event’ from ‘cmd_big_create_sync_complete’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def25]
bluez-5.81/emulator/bthost.c:589:46: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
bluez-5.81/emulator/bthost.c:3417:13: enter_function: entry to ‘set_pa_data’
bluez-5.81/emulator/bthost.c:3431:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/bthost.c:3439:17: branch_false: ...to here
bluez-5.81/emulator/bthost.c:3450:9: call_function: calling ‘send_command’ from ‘set_pa_data’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def26]
bluez-5.81/emulator/bthost.c:589:63: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
bluez-5.81/emulator/bthost.c:3417:13: enter_function: entry to ‘set_pa_data’
bluez-5.81/emulator/bthost.c:3431:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/bthost.c:3439:17: branch_false: ...to here
bluez-5.81/emulator/bthost.c:3450:9: call_function: calling ‘send_command’ from ‘set_pa_data’
Error: CPPCHECK_WARNING (CWE-476): [#def27]
bluez-5.81/emulator/bthost.c:3537: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def28]
bluez-5.81/emulator/bthost.c:3538: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
bluez-5.81/emulator/bthost.c:3538:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cp’
bluez-5.81/emulator/bthost.c:3536:14: acquire_memory: this call could return NULL
bluez-5.81/emulator/bthost.c:3538:9: danger: ‘cp’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def30]
bluez-5.81/emulator/bthost.c:3540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def31]
bluez-5.81/emulator/bthost.c:3542: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def32]
bluez-5.81/emulator/bthost.c:3543: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def33]
bluez-5.81/emulator/bthost.c:3545: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def34]
bluez-5.81/emulator/bthost.c:3547: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def35]
bluez-5.81/emulator/bthost.c:3548: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def36]
bluez-5.81/emulator/bthost.c:3549: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def37]
bluez-5.81/emulator/bthost.c:3550: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def38]
bluez-5.81/emulator/bthost.c:3551: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def39]
bluez-5.81/emulator/bthost.c:3553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def40]
bluez-5.81/emulator/bthost.c:3555: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def41]
bluez-5.81/emulator/bthost.c:3556: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def42]
bluez-5.81/emulator/bthost.c:3569: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def43]
bluez-5.81/emulator/bthost.c:3570: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
bluez-5.81/emulator/bthost.c:3570:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cp’
bluez-5.81/emulator/bthost.c:3568:14: acquire_memory: this call could return NULL
bluez-5.81/emulator/bthost.c:3570:9: danger: ‘cp’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def45]
bluez-5.81/emulator/bthost.c:3571: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-476): [#def46]
bluez-5.81/emulator/bthost.c:3572: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cp
Error: CPPCHECK_WARNING (CWE-457): [#def47]
bluez-5.81/emulator/serial.c:150: error[legacyUninitvar]: Uninitialized variable: type
Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
bluez-5.81/emulator/serial.c:191:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
bluez-5.81/emulator/serial.c:153:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/serial.c:158:13: branch_false: ...to here
bluez-5.81/emulator/serial.c:158:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/serial.c:165:13: branch_false: ...to here
bluez-5.81/emulator/serial.c:165:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/serial.c:172:31: branch_false: ...to here
branch_false: following ‘false’ branch...
bluez-5.81/emulator/serial.c:191:44: branch_false: ...to here
bluez-5.81/emulator/serial.c:191:25: danger: use of uninitialized value ‘type’ here
Error: CPPCHECK_WARNING (CWE-457): [#def49]
bluez-5.81/emulator/serial.c:213: error[legacyUninitvar]: Uninitialized variable: dev_type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
bluez-5.81/emulator/server.c:182:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘((struct server)*(void *)user_data).fd’
bluez-5.81/emulator/server.c:196:13: enter_function: entry to ‘server_accept_callback’
bluez-5.81/emulator/server.c:202:12: branch_false: following ‘false’ branch...
bluez-5.81/emulator/server.c:207:18: branch_false: ...to here
bluez-5.81/emulator/server.c:208:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
bluez-5.81/emulator/server.c:211:9: branch_false: ...to here
bluez-5.81/emulator/server.c:213:22: call_function: calling ‘accept_client’ from ‘server_accept_callback’
Error: CPPCHECK_WARNING (CWE-457): [#def51]
bluez-5.81/emulator/server.c:200: error[legacyUninitvar]: Uninitialized variable: type
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
bluez-5.81/gdbus/client.c:493:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.81/gdbus/client.c:1204:13: enter_function: entry to 'parse_interfaces'
bluez-5.81/gdbus/client.c:1214:16: branch_true: following 'true' branch...
bluez-5.81/gdbus/client.c:1218:17: branch_true: ...to here
bluez-5.81/gdbus/client.c:1220:20: branch_false: following 'false' branch...
bluez-5.81/gdbus/client.c:1223:17: branch_false: ...to here
bluez-5.81/gdbus/client.c:1226:17: call_function: calling 'parse_properties' from 'parse_interfaces'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
bluez-5.81/gdbus/object.c:778:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.81/gdbus/object.c:1971:10: enter_function: entry to 'g_dbus_detach_object_manager'
bluez-5.81/gdbus/object.c:1973:14: call_function: calling 'g_dbus_unregister_interface' from 'g_dbus_detach_object_manager'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
bluez-5.81/gdbus/object.c:813:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/gdbus/object.c:1955:10: enter_function: entry to 'g_dbus_attach_object_manager'
bluez-5.81/gdbus/object.c:1959:16: call_function: calling 'object_path_ref' from 'g_dbus_attach_object_manager'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def55]
bluez-5.81/gobex/gobex-apparam.c:43:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
bluez-5.81/gobex/gobex-apparam.c:182:15: enter_function: entry to ‘g_obex_apparam_set_uint16’
bluez-5.81/gobex/gobex-apparam.c:189:16: call_function: calling ‘g_obex_apparam_set_bytes’ from ‘g_obex_apparam_set_uint16’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
bluez-5.81/gobex/gobex-header.c:563:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hdr’
bluez-5.81/gobex/gobex-header.c:523:9: enter_function: entry to ‘g_obex_header_create_list’
bluez-5.81/gobex/gobex-header.c:533:16: branch_true: following ‘true’ branch (when ‘id != 0’)...
bluez-5.81/gobex/gobex-header.c:540:25: branch_true: ...to here
bluez-5.81/gobex/gobex-header.c:543:31: call_function: calling ‘g_obex_header_new_unicode’ from ‘g_obex_header_create_list’
bluez-5.81/gobex/gobex-header.c:543:31: return_function: returning to ‘g_obex_header_create_list’ from ‘g_obex_header_new_unicode’
bluez-5.81/gobex/gobex-header.c:563:31: danger: dereference of NULL ‘hdr’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
bluez-5.81/lib/sdp.c:4674:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'socket(1, 524289, 0)'
bluez-5.81/lib/sdp.c:4666:25: acquire_resource: socket created here
bluez-5.81/lib/sdp.c:4667:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4669:9: branch_false: ...to here
bluez-5.81/lib/sdp.c:4674:16: danger: 'socket(1, 524289, 0)' leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
bluez-5.81/lib/sdp.c:4722:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'socket(31, sockflags, 0)'
bluez-5.81/lib/sdp.c:4708:25: acquire_resource: socket created here
bluez-5.81/lib/sdp.c:4709:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4711:9: branch_false: ...to here
bluez-5.81/lib/sdp.c:4720:12: branch_true: following 'true' branch...
bluez-5.81/lib/sdp.c:4721:17: branch_true: ...to here
bluez-5.81/lib/sdp.c:4722:20: danger: 'socket(31, sockflags, 0)' leaks here
Error: GCC_ANALYZER_WARNING (CWE-666): [#def59]
bluez-5.81/lib/sdp.c:4740:27: warning[-Wanalyzer-fd-phase-mismatch]: 'connect' on file descriptor '*session.sock' in wrong phase
bluez-5.81/lib/sdp.c:4708:25: acquire_resource: socket created here
bluez-5.81/lib/sdp.c:4709:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4711:9: branch_false: ...to here
bluez-5.81/lib/sdp.c:4720:12: branch_true: following 'true' branch...
bluez-5.81/lib/sdp.c:4721:17: branch_true: ...to here
bluez-5.81/lib/sdp.c:4722:20: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4726:12: branch_false: ...to here
bluez-5.81/lib/sdp.c:4726:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4732:12: branch_false: ...to here
bluez-5.81/lib/sdp.c:4732:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4736:9: branch_false: ...to here
bluez-5.81/lib/sdp.c:4740:27: danger: 'connect' expects a new socket file descriptor but '*session.sock' is bound
Error: GCC_ANALYZER_WARNING (CWE-666): [#def60]
bluez-5.81/lib/sdp.c:4740:27: warning[-Wanalyzer-fd-phase-mismatch]: 'connect' on file descriptor 'socket(31, sockflags, 0)' in wrong phase
bluez-5.81/lib/sdp.c:4708:25: acquire_resource: socket created here
bluez-5.81/lib/sdp.c:4709:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4711:9: branch_false: ...to here
bluez-5.81/lib/sdp.c:4720:12: branch_true: following 'true' branch...
bluez-5.81/lib/sdp.c:4721:17: branch_true: ...to here
bluez-5.81/lib/sdp.c:4722:20: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4726:12: branch_false: ...to here
bluez-5.81/lib/sdp.c:4726:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4732:12: branch_false: ...to here
bluez-5.81/lib/sdp.c:4732:12: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4736:9: branch_false: ...to here
bluez-5.81/lib/sdp.c:4741:20: branch_false: following 'false' branch...
bluez-5.81/lib/sdp.c:4743:20: branch_false: ...to here
bluez-5.81/lib/sdp.c:4743:20: branch_true: following 'true' branch...
bluez-5.81/lib/sdp.c:4743:21: branch_true: ...to here
bluez-5.81/lib/sdp.c:4746:18: branch_true: following 'true' branch...
bluez-5.81/lib/sdp.c:4740:27: danger: 'connect' expects a new socket file descriptor but 'socket(31, sockflags, 0)' is bound
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
bluez-5.81/mesh/mesh-io-unit.c:239:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*(struct mesh_io_private *)<unknown>.fd’
bluez-5.81/mesh/mesh-io-unit.c:220:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/mesh-io-unit.c:232:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/mesh-io-unit.c:235:9: branch_false: ...to here
bluez-5.81/mesh/mesh-io-unit.c:239:12: danger: ‘*(struct mesh_io_private *)<unknown>.fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-126): [#def62]
bluez-5.81/mesh/net.c:1350:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
bluez-5.81/mesh/net.c:3805:13: enter_function: entry to ‘hb_pub_timeout_func’
bluez-5.81/mesh/net.c:3810:9: call_function: calling ‘send_hb_publication’ from ‘hb_pub_timeout_func’
Error: CPPCHECK_WARNING (CWE-457): [#def63]
bluez-5.81/mesh/net.c:2215: error[uninitvar]: Uninitialized variable: msg
Error: GCC_ANALYZER_WARNING (CWE-688): [#def64]
bluez-5.81/mesh/node.c:1550:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.81/mesh/node.c:1550:12: branch_true: following ‘true’ branch...
bluez-5.81/mesh/node.c:1550:33: branch_true: ...to here
bluez-5.81/mesh/node.c:1550:33: danger: argument 1 (‘node_get_comp(node, 0, & node_len)’) NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-457): [#def65]
bluez-5.81/mesh/node.c:2153: error[uninitvar]: Uninitialized variable: data
Error: GCC_ANALYZER_WARNING (CWE-465): [#def66]
bluez-5.81/mesh/prov-acceptor.c:687:12: warning[-Wanalyzer-deref-before-check]: check of ‘prov’ for NULL after already dereferencing it
bluez-5.81/mesh/prov-acceptor.c:439:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-acceptor.c:439:33: branch_false: ...to here
bluez-5.81/mesh/prov-acceptor.c:439:13: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-acceptor.c:442:9: branch_false: ...to here
bluez-5.81/mesh/prov-acceptor.c:445:12: branch_false: following ‘false’ branch (when ‘type <= 9’)...
bluez-5.81/mesh/prov-acceptor.c:451:13: branch_false: ...to here
bluez-5.81/mesh/prov-acceptor.c:451:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-acceptor.c:454:20: branch_false: ...to here
bluez-5.81/mesh/prov-acceptor.c:454:19: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-acceptor.c:461:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-acceptor.c:468:9: branch_false: ...to here
bluez-5.81/mesh/prov-acceptor.c:687:12: danger: pointer ‘prov’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def67]
bluez-5.81/mesh/prov-initiator.c:839:12: warning[-Wanalyzer-deref-before-check]: check of ‘prov’ for NULL after already dereferencing it
bluez-5.81/mesh/prov-initiator.c:663:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-initiator.c:663:33: branch_false: ...to here
bluez-5.81/mesh/prov-initiator.c:663:13: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-initiator.c:666:9: branch_false: ...to here
bluez-5.81/mesh/prov-initiator.c:669:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-initiator.c:672:27: branch_false: ...to here
bluez-5.81/mesh/prov-initiator.c:672:19: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-initiator.c:678:12: branch_false: following ‘false’ branch (when ‘type <= 9’)...
bluez-5.81/mesh/prov-initiator.c:684:20: branch_false: ...to here
bluez-5.81/mesh/prov-initiator.c:684:12: branch_false: following ‘false’ branch...
bluez-5.81/mesh/prov-initiator.c:691:9: branch_false: ...to here
bluez-5.81/mesh/prov-initiator.c:839:12: danger: pointer ‘prov’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
bluez-5.81/monitor/bnep.c:62:62: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘addr[5]’
bluez-5.81/monitor/bnep.c:212:13: enter_function: entry to ‘filter_multaddr_req’
bluez-5.81/monitor/bnep.c:219:14: call_function: calling ‘l2cap_frame_get_be16’ from ‘filter_multaddr_req’
bluez-5.81/monitor/bnep.c:219:14: return_function: returning to ‘filter_multaddr_req’ from ‘l2cap_frame_get_be16’
bluez-5.81/monitor/bnep.c:219:12: branch_true: following ‘true’ branch...
bluez-5.81/monitor/bnep.c:222:9: branch_true: ...to here
bluez-5.81/monitor/bnep.c:224:21: branch_true: following ‘true’ branch...
bluez-5.81/monitor/bnep.c:226:22: branch_true: ...to here
bluez-5.81/monitor/bnep.c:226:22: call_function: calling ‘get_macaddr’ from ‘filter_multaddr_req’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
bluez-5.81/monitor/display.c:107:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
bluez-5.81/monitor/display.c:106:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:109:17: branch_false: ...to here
bluez-5.81/monitor/display.c:115:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:118:9: branch_false: ...to here
bluez-5.81/monitor/display.c:120:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:125:22: branch_false: ...to here
bluez-5.81/monitor/display.c:134:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:158:13: branch_false: ...to here
bluez-5.81/monitor/display.c:158:12: branch_true: following ‘true’ branch...
bluez-5.81/monitor/display.c:159:17: branch_true: ...to here
bluez-5.81/monitor/display.c:107:17: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
bluez-5.81/monitor/display.c:107:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
bluez-5.81/monitor/display.c:106:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:109:17: branch_false: ...to here
bluez-5.81/monitor/display.c:115:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:118:9: branch_false: ...to here
bluez-5.81/monitor/display.c:120:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:125:22: branch_false: ...to here
bluez-5.81/monitor/display.c:134:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:158:13: branch_false: ...to here
bluez-5.81/monitor/display.c:158:12: branch_true: following ‘true’ branch...
bluez-5.81/monitor/display.c:159:17: branch_true: ...to here
bluez-5.81/monitor/display.c:107:17: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
bluez-5.81/monitor/display.c:158:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
bluez-5.81/monitor/display.c:106:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:109:17: branch_false: ...to here
bluez-5.81/monitor/display.c:115:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:118:9: branch_false: ...to here
bluez-5.81/monitor/display.c:120:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:125:22: branch_false: ...to here
bluez-5.81/monitor/display.c:128:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:134:12: branch_false: ...to here
bluez-5.81/monitor/display.c:134:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:158:13: branch_false: ...to here
bluez-5.81/monitor/display.c:158:13: acquire_resource: opened here
bluez-5.81/monitor/display.c:158:12: danger: ‘dup2(fd[1], 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
bluez-5.81/monitor/display.c:164:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
bluez-5.81/monitor/display.c:100:6: enter_function: entry to ‘open_pager’
bluez-5.81/monitor/display.c:106:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:109:17: branch_false: ...to here
bluez-5.81/monitor/display.c:115:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:118:9: branch_false: ...to here
bluez-5.81/monitor/display.c:120:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:125:22: branch_false: ...to here
bluez-5.81/monitor/display.c:128:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:134:12: branch_false: ...to here
bluez-5.81/monitor/display.c:134:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:158:13: branch_false: ...to here
bluez-5.81/monitor/display.c:158:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:163:9: branch_false: ...to here
bluez-5.81/monitor/display.c:163:9: call_function: calling ‘close_pipe’ from ‘open_pager’
bluez-5.81/monitor/display.c:163:9: return_function: returning to ‘open_pager’ from ‘close_pipe’
bluez-5.81/monitor/display.c:164:1: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
bluez-5.81/monitor/display.c:164:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
bluez-5.81/monitor/display.c:100:6: enter_function: entry to ‘open_pager’
bluez-5.81/monitor/display.c:106:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:109:17: branch_false: ...to here
bluez-5.81/monitor/display.c:115:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:118:9: branch_false: ...to here
bluez-5.81/monitor/display.c:120:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:125:22: branch_false: ...to here
bluez-5.81/monitor/display.c:128:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:134:12: branch_false: ...to here
bluez-5.81/monitor/display.c:134:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:158:13: branch_false: ...to here
bluez-5.81/monitor/display.c:158:12: branch_false: following ‘false’ branch...
bluez-5.81/monitor/display.c:163:9: branch_false: ...to here
bluez-5.81/monitor/display.c:163:9: call_function: calling ‘close_pipe’ from ‘open_pager’
bluez-5.81/monitor/display.c:163:9: return_function: returning to ‘open_pager’ from ‘close_pipe’
bluez-5.81/monitor/display.c:164:1: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
bluez-5.81/monitor/jlink.c:207:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tok’
bluez-5.81/monitor/jlink.c:203:12: branch_false: following ‘false’ branch (when ‘cfg’ is non-NULL)...
bluez-5.81/monitor/jlink.c:206:15: branch_false: ...to here
bluez-5.81/monitor/jlink.c:207:13: danger: dereference of NULL ‘tok’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def75]
bluez-5.81/obexd/client/bip.c:266:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*maxsize’
bluez-5.81/obexd/client/bip.c:280:21: enter_function: entry to ‘get_image’
bluez-5.81/obexd/client/bip.c:295:14: call_function: calling ‘parse_get_image_dict’ from ‘get_image’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
bluez-5.81/obexd/plugins/messages-dummy.c:165:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
bluez-5.81/obexd/plugins/messages-dummy.c:176:17: enter_function: entry to ‘get_folder_listing’
bluez-5.81/obexd/plugins/messages-dummy.c:180:17: release_memory: ‘list’ is NULL
bluez-5.81/obexd/plugins/messages-dummy.c:182:13: call_function: calling ‘get_subdirs’ from ‘get_folder_listing’
bluez-5.81/obexd/plugins/messages-dummy.c:182:13: return_function: returning to ‘get_folder_listing’ from ‘get_subdirs’
bluez-5.81/obexd/plugins/messages-dummy.c:184:12: branch_false: following ‘false’ branch...
bluez-5.81/obexd/plugins/messages-dummy.c:189:13: branch_false: ...to here
bluez-5.81/obexd/plugins/messages-dummy.c:189:12: branch_false: following ‘false’ branch...
bluez-5.81/obexd/plugins/messages-dummy.c:194:9: branch_false: ...to here
bluez-5.81/obexd/plugins/messages-dummy.c:194:9: release_memory: ‘list’ is NULL
bluez-5.81/obexd/plugins/messages-dummy.c:194:9: call_function: calling ‘return_folder_listing’ from ‘get_folder_listing’
Error: CPPCHECK_WARNING (CWE-570): [#def77]
bluez-5.81/obexd/src/log.c:85: error[comparePointers]: Comparing pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def78]
bluez-5.81/obexd/src/log.c:98: error[comparePointers]: Comparing pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
bluez-5.81/profiles/audio/a2dp.c:2812:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*setup.rsep’
bluez-5.81/profiles/audio/a2dp.c:2791:13: enter_function: entry to ‘select_cb’
bluez-5.81/profiles/audio/a2dp.c:2797:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/audio/a2dp.c:2800:12: branch_false: ...to here
bluez-5.81/profiles/audio/a2dp.c:2800:12: branch_false: following ‘false’ branch (when ‘size < 0’)...
bluez-5.81/profiles/audio/a2dp.c:2805:22: branch_false: ...to here
bluez-5.81/profiles/audio/a2dp.c:2806:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/audio/a2dp.c:2811:23: branch_false: ...to here
bluez-5.81/profiles/audio/a2dp.c:2811:23: call_function: calling ‘find_remote_sep’ from ‘select_cb’
bluez-5.81/profiles/audio/a2dp.c:2811:23: return_function: returning to ‘select_cb’ from ‘find_remote_sep’
bluez-5.81/profiles/audio/a2dp.c:2811:9: release_memory: ‘*setup.rsep’ is NULL
bluez-5.81/profiles/audio/a2dp.c:2812:19: danger: dereference of NULL ‘find_remote_sep(*setup.chan, queue_pop_head(*setup.eps))’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
bluez-5.81/profiles/audio/a2dp.c:2858:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bluez-5.81/profiles/audio/a2dp.c:2828:22: enter_function: entry to ‘a2dp_find_eps’
bluez-5.81/profiles/audio/a2dp.c:2831:37: call_function: calling ‘find_channel’ from ‘a2dp_find_eps’
bluez-5.81/profiles/audio/a2dp.c:2831:37: return_function: returning to ‘a2dp_find_eps’ from ‘find_channel’
bluez-5.81/profiles/audio/a2dp.c:2834:16: branch_true: following ‘true’ branch (when ‘list’ is non-NULL)...
bluez-5.81/profiles/audio/a2dp.c:2835:34: branch_true: ...to here
bluez-5.81/profiles/audio/a2dp.c:2851:20: branch_false: following ‘false’ branch...
bluez-5.81/profiles/audio/a2dp.c:2854:20: branch_false: ...to here
bluez-5.81/profiles/audio/a2dp.c:2854:20: branch_true: following ‘true’ branch (when ‘seps’ is NULL)...
bluez-5.81/profiles/audio/a2dp.c:2855:32: branch_true: ...to here
bluez-5.81/profiles/audio/a2dp.c:2858:21: danger: dereference of NULL ‘find_channel(session)’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
bluez-5.81/profiles/audio/avrcp.c:742:14: warning[-Wanalyzer-null-argument]: use of NULL ‘status’ where non-null expected
bluez-5.81/profiles/audio/avrcp.c:4572:6: enter_function: entry to ‘avrcp_unregister_player’
bluez-5.81/profiles/audio/avrcp.c:4580:36: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
bluez-5.81/profiles/audio/avrcp.c:4581:31: branch_true: ...to here
bluez-5.81/profiles/audio/avrcp.c:4595:25: call_function: calling ‘notify_addressed_player_changed’ from ‘avrcp_unregister_player’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
bluez-5.81/profiles/audio/avrcp.c:825:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
bluez-5.81/profiles/audio/avrcp.c:4572:6: enter_function: entry to ‘avrcp_unregister_player’
bluez-5.81/profiles/audio/avrcp.c:4580:36: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
bluez-5.81/profiles/audio/avrcp.c:4581:31: branch_true: ...to here
bluez-5.81/profiles/audio/avrcp.c:4595:25: call_function: calling ‘notify_addressed_player_changed’ from ‘avrcp_unregister_player’
Error: CPPCHECK_WARNING (CWE-457): [#def83]
bluez-5.81/profiles/audio/avrcp.c:2377: warning[uninitvar]: Uninitialized variable: attrs
Error: GCC_ANALYZER_WARNING (CWE-688): [#def84]
bluez-5.81/profiles/audio/player.c:1384:13: warning[-Wanalyzer-null-argument]: use of NULL ‘value’ where non-null expected
bluez-5.81/profiles/audio/player.c:1353:6: enter_function: entry to ‘media_player_set_setting’
bluez-5.81/profiles/audio/player.c:1361:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/audio/player.c:1371:18: branch_false: ...to here
bluez-5.81/profiles/audio/player.c:1372:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/audio/player.c:1375:59: call_function: inlined call to ‘g_strdup_inline’ from ‘media_player_set_setting’
bluez-5.81/profiles/audio/player.c:1380:13: call_function: calling ‘find_pending’ from ‘media_player_set_setting’
bluez-5.81/profiles/audio/player.c:1380:13: return_function: returning to ‘media_player_set_setting’ from ‘find_pending’
bluez-5.81/profiles/audio/player.c:1381:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/audio/player.c:1384:13: branch_false: ...to here
bluez-5.81/profiles/audio/player.c:1384:13: danger: argument 1 (‘value’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-666): [#def85]
bluez-5.81/profiles/cups/hcrp.c:213:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘ctrl_sk’ in wrong phase
bluez-5.81/profiles/cups/hcrp.c:187:24: acquire_resource: socket created here
bluez-5.81/profiles/cups/hcrp.c:187:12: branch_false: following ‘false’ branch (when ‘ctrl_sk >= 0’)...
bluez-5.81/profiles/cups/hcrp.c:195:9: branch_false: ...to here
bluez-5.81/profiles/cups/hcrp.c:199:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/cups/hcrp.c:208:9: branch_false: ...to here
bluez-5.81/profiles/cups/hcrp.c:213:13: danger: ‘connect’ expects a new socket file descriptor but ‘ctrl_sk’ is bound
Error: GCC_ANALYZER_WARNING (CWE-457): [#def86]
bluez-5.81/profiles/cups/main.c:768:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b[5]’
bluez-5.81/profiles/cups/main.c:718:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
bluez-5.81/profiles/cups/main.c:723:19: branch_false: ...to here
bluez-5.81/profiles/cups/main.c:734:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/cups/main.c:741:12: branch_false: ...to here
bluez-5.81/profiles/cups/main.c:741:12: branch_false: following ‘false’ branch (when ‘argc != 6’)...
bluez-5.81/profiles/cups/main.c:745:27: branch_false: ...to here
bluez-5.81/profiles/cups/main.c:745:20: branch_false: following ‘false’ branch...
bluez-5.81/profiles/cups/main.c:749:26: branch_false: ...to here
bluez-5.81/profiles/cups/main.c:756:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/cups/main.c:761:15: branch_false: ...to here
bluez-5.81/profiles/cups/main.c:762:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
bluez-5.81/profiles/cups/main.c:763:17: branch_true: ...to here
bluez-5.81/profiles/cups/main.c:762:21: branch_false: following ‘false’ branch (when ‘i == 6’)...
bluez-5.81/profiles/cups/main.c:768:55: branch_false: ...to here
bluez-5.81/profiles/cups/main.c:768:55: danger: use of uninitialized value ‘b[5]’ here
Error: GCC_ANALYZER_WARNING (CWE-666): [#def87]
bluez-5.81/profiles/cups/spp.c:59:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
bluez-5.81/profiles/cups/spp.c:34:19: acquire_resource: stream socket created here
bluez-5.81/profiles/cups/spp.c:34:12: branch_false: following ‘false’ branch (when ‘sk >= 0’)...
bluez-5.81/profiles/cups/spp.c:42:9: branch_false: ...to here
bluez-5.81/profiles/cups/spp.c:46:12: branch_false: following ‘false’ branch...
bluez-5.81/profiles/cups/spp.c:55:9: branch_false: ...to here
bluez-5.81/profiles/cups/spp.c:59:13: danger: ‘connect’ expects a new socket file descriptor but ‘sk’ is bound
Error: CPPCHECK_WARNING (CWE-476): [#def88]
bluez-5.81/src/adv_monitor.c:976: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: monitor->merged_pattern
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
bluez-5.81/src/adv_monitor.c:976:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*monitor.merged_pattern’
bluez-5.81/src/adv_monitor.c:975:35: acquire_memory: this call could return NULL
bluez-5.81/src/adv_monitor.c:976:9: danger: ‘calloc(1, 56)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
bluez-5.81/src/adv_monitor.c:976:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 56)’
bluez-5.81/src/adv_monitor.c:1192:13: enter_function: entry to ‘monitor_proxy_added_cb’
bluez-5.81/src/adv_monitor.c:1202:12: branch_false: following ‘false’ branch (when the strings are equal)...
bluez-5.81/src/adv_monitor.c:1203:18: branch_false: ...to here
bluez-5.81/src/adv_monitor.c:1202:13: branch_false: following ‘false’ branch...
bluez-5.81/src/adv_monitor.c:1207:13: branch_false: ...to here
bluez-5.81/src/adv_monitor.c:1207:12: branch_false: following ‘false’ branch...
bluez-5.81/src/adv_monitor.c:1214:19: branch_false: ...to here
bluez-5.81/src/adv_monitor.c:1214:19: call_function: calling ‘monitor_new’ from ‘monitor_proxy_added_cb’
bluez-5.81/src/adv_monitor.c:1214:19: return_function: returning to ‘monitor_proxy_added_cb’ from ‘monitor_new’
bluez-5.81/src/adv_monitor.c:1215:12: branch_false: following ‘false’ branch...
bluez-5.81/src/adv_monitor.c:1222:14: branch_false: ...to here
bluez-5.81/src/adv_monitor.c:1222:14: call_function: calling ‘monitor_process’ from ‘monitor_proxy_added_cb’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
bluez-5.81/src/battery.c:222:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘battery’
bluez-5.81/src/battery.c:279:13: enter_function: entry to ‘provided_battery_added_cb’
bluez-5.81/src/battery.c:290:12: branch_false: following ‘false’ branch (when the strings are equal)...
bluez-5.81/src/battery.c:294:13: branch_false: ...to here
bluez-5.81/src/battery.c:294:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:299:9: branch_false: ...to here
bluez-5.81/src/battery.c:303:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:309:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:315:9: branch_false: ...to here
bluez-5.81/src/battery.c:318:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:321:61: branch_false: ...to here
bluez-5.81/src/battery.c:328:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:331:9: branch_false: ...to here
bluez-5.81/src/battery.c:333:9: call_function: calling ‘btd_battery_update’ from ‘provided_battery_added_cb’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
bluez-5.81/src/battery.c:234:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘battery’
bluez-5.81/src/battery.c:279:13: enter_function: entry to ‘provided_battery_added_cb’
bluez-5.81/src/battery.c:290:12: branch_false: following ‘false’ branch (when the strings are equal)...
bluez-5.81/src/battery.c:294:13: branch_false: ...to here
bluez-5.81/src/battery.c:294:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:299:9: branch_false: ...to here
bluez-5.81/src/battery.c:303:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:309:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:315:9: branch_false: ...to here
bluez-5.81/src/battery.c:318:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:321:61: branch_false: ...to here
bluez-5.81/src/battery.c:328:12: branch_false: following ‘false’ branch...
bluez-5.81/src/battery.c:331:9: branch_false: ...to here
bluez-5.81/src/battery.c:333:9: call_function: calling ‘btd_battery_update’ from ‘provided_battery_added_cb’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
bluez-5.81/src/device.c:6865:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
bluez-5.81/src/device.c:6861:17: enter_function: entry to ‘device_bonding_retry’
bluez-5.81/src/device.c:6864:39: call_function: inlined call to ‘device_get_adapter’ from ‘device_bonding_retry’
bluez-5.81/src/device.c:6865:29: branch_true: ...to here
bluez-5.81/src/device.c:6865:29: danger: dereference of NULL ‘data’
Error: CPPCHECK_WARNING (CWE-570): [#def94]
bluez-5.81/src/log.c:159: error[comparePointers]: Comparing pointers that point to different objects
Error: GCC_ANALYZER_WARNING (CWE-688): [#def95]
bluez-5.81/src/profile.c:2286:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
bluez-5.81/src/profile.c:2356:28: enter_function: entry to ‘create_ext’
bluez-5.81/src/profile.c:2366:12: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2371:22: call_function: inlined call to ‘g_strdup_inline’ from ‘create_ext’
bluez-5.81/src/profile.c:2371:9: release_memory: ‘0’ is NULL
bluez-5.81/src/profile.c:2374:9: call_function: calling ‘ext_set_defaults’ from ‘create_ext’
bluez-5.81/src/profile.c:2374:9: return_function: returning to ‘create_ext’ from ‘ext_set_defaults’
bluez-5.81/src/profile.c:2376:16: branch_true: following ‘true’ branch...
bluez-5.81/src/profile.c:2380:17: branch_true: ...to here
bluez-5.81/src/profile.c:2386:21: call_function: calling ‘parse_ext_opt’ from ‘create_ext’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def96]
bluez-5.81/src/profile.c:2286:21: warning[-Wanalyzer-null-argument]: use of NULL ‘*ext.role’ where non-null expected
bluez-5.81/src/profile.c:2233:12: enter_function: entry to ‘parse_ext_opt’
bluez-5.81/src/profile.c:2241:12: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2247:20: branch_false: ...to here
bluez-5.81/src/profile.c:2247:19: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2252:20: branch_false: ...to here
bluez-5.81/src/profile.c:2252:19: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2257:20: branch_false: ...to here
bluez-5.81/src/profile.c:2257:19: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2265:20: branch_false: ...to here
bluez-5.81/src/profile.c:2265:19: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2274:20: branch_false: ...to here
bluez-5.81/src/profile.c:2274:19: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2279:20: branch_false: ...to here
bluez-5.81/src/profile.c:2279:19: branch_true: following ‘true’ branch...
bluez-5.81/src/profile.c:2280:20: branch_true: ...to here
bluez-5.81/src/profile.c:2280:20: branch_false: following ‘false’ branch...
bluez-5.81/src/profile.c:2282:17: branch_false: ...to here
bluez-5.81/src/profile.c:2284:17: release_memory: ‘*ext.role’ is NULL
bluez-5.81/src/profile.c:2286:21: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
bluez-5.81/src/sdp-client.c:353:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bluez-5.81/src/sdp-client.c:382:5: enter_function: entry to ‘bt_search_service’
bluez-5.81/src/sdp-client.c:386:32: release_memory: ‘ctxt’ is NULL
bluez-5.81/src/sdp-client.c:389:12: branch_false: following ‘false’ branch (when ‘cb’ is non-NULL)...
bluez-5.81/src/sdp-client.c:393:15: call_function: inlined call to ‘create_search_context_full’ from ‘bt_search_service’
bluez-5.81/src/sdp-client.c:393:15: call_function: inlined call to ‘create_search_context_full’ from ‘bt_search_service’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
bluez-5.81/src/sdp-xml.c:461:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bluez-5.81/src/sdp-xml.c:447:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
bluez-5.81/src/sdp-xml.c:459:13: branch_false: ...to here
bluez-5.81/src/sdp-xml.c:459:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdp-xml.c:460:48: branch_true: ...to here
bluez-5.81/src/sdp-xml.c:462:17: release_memory: ‘0’ is NULL
bluez-5.81/src/sdp-xml.c:461:17: danger: dereference of NULL ‘sdp_xml_data_alloc()’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
bluez-5.81/src/sdp-xml.c:465:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
bluez-5.81/src/sdp-xml.c:447:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
bluez-5.81/src/sdp-xml.c:459:13: branch_false: ...to here
bluez-5.81/src/sdp-xml.c:459:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdp-xml.c:464:40: branch_false: ...to here
bluez-5.81/src/sdp-xml.c:465:17: release_memory: ‘0’ is NULL
bluez-5.81/src/sdp-xml.c:465:17: release_memory: ‘0’ is NULL
bluez-5.81/src/sdp-xml.c:465:17: danger: dereference of NULL ‘sdp_xml_data_alloc()’
Error: CPPCHECK_WARNING (CWE-476): [#def100]
bluez-5.81/src/sdpd-request.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def101]
bluez-5.81/src/sdpd-request.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: GCC_ANALYZER_WARNING (CWE-688): [#def102]
bluez-5.81/src/sdpd-request.c:106:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘cinfo’ where non-null expected
bluez-5.81/src/sdpd-request.c:1118:6: enter_function: entry to ‘handle_request’
bluez-5.81/src/sdpd-request.c:1125:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1130:13: branch_false: ...to here
bluez-5.81/src/sdpd-request.c:1130:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdpd-request.c:1133:17: branch_true: ...to here
bluez-5.81/src/sdpd-request.c:1136:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1141:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1147:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1152:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1164:9: call_function: calling ‘process_request’ from ‘handle_request’
Error: CPPCHECK_WARNING (CWE-476): [#def103]
bluez-5.81/src/sdpd-request.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def104]
bluez-5.81/src/sdpd-request.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def105]
bluez-5.81/src/sdpd-request.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def106]
bluez-5.81/src/sdpd-request.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def107]
bluez-5.81/src/sdpd-request.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def108]
bluez-5.81/src/sdpd-request.c:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def109]
bluez-5.81/src/sdpd-request.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cinfo
Error: CPPCHECK_WARNING (CWE-476): [#def110]
bluez-5.81/src/sdpd-request.c:203: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
bluez-5.81/src/sdpd-request.c:203:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aid’
bluez-5.81/src/sdpd-request.c:1118:6: enter_function: entry to ‘handle_request’
bluez-5.81/src/sdpd-request.c:1125:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1130:13: branch_false: ...to here
bluez-5.81/src/sdpd-request.c:1130:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdpd-request.c:1133:17: branch_true: ...to here
bluez-5.81/src/sdpd-request.c:1136:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1141:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1147:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1152:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1164:9: call_function: calling ‘process_request’ from ‘handle_request’
Error: CPPCHECK_WARNING (CWE-476): [#def112]
bluez-5.81/src/sdpd-request.c:204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aid
Error: CPPCHECK_WARNING (CWE-476): [#def113]
bluez-5.81/src/sdpd-request.c:230: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
bluez-5.81/src/sdpd-request.c:230:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘aid’
bluez-5.81/src/sdpd-request.c:1118:6: enter_function: entry to ‘handle_request’
bluez-5.81/src/sdpd-request.c:1125:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1130:13: branch_false: ...to here
bluez-5.81/src/sdpd-request.c:1130:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdpd-request.c:1133:17: branch_true: ...to here
bluez-5.81/src/sdpd-request.c:1136:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1141:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1147:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1152:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1164:9: call_function: calling ‘process_request’ from ‘handle_request’
Error: CPPCHECK_WARNING (CWE-476): [#def115]
bluez-5.81/src/sdpd-request.c:231: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aid
Error: CPPCHECK_WARNING (CWE-476): [#def116]
bluez-5.81/src/sdpd-request.c:1017: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
bluez-5.81/src/sdpd-request.c:1017:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
bluez-5.81/src/sdpd-request.c:1118:6: enter_function: entry to ‘handle_request’
bluez-5.81/src/sdpd-request.c:1125:12: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1130:13: branch_false: ...to here
bluez-5.81/src/sdpd-request.c:1130:12: branch_true: following ‘true’ branch...
bluez-5.81/src/sdpd-request.c:1133:17: branch_true: ...to here
bluez-5.81/src/sdpd-request.c:1136:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1141:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1147:20: branch_false: following ‘false’ branch...
bluez-5.81/src/sdpd-request.c:1152:17: call_function: inlined call to ‘bacpy’ from ‘handle_request’
bluez-5.81/src/sdpd-request.c:1164:9: call_function: calling ‘process_request’ from ‘handle_request’
Error: CPPCHECK_WARNING (CWE-682): [#def118]
bluez-5.81/src/sdpd-request.c:1018: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def119]
bluez-5.81/src/sdpd-service.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: version
Error: CPPCHECK_WARNING (CWE-476): [#def120]
bluez-5.81/src/sdpd-service.c:379: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: version
Error: CPPCHECK_WARNING (CWE-476): [#def121]
bluez-5.81/src/sdpd-service.c:380: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: version
Error: CPPCHECK_WARNING (CWE-476): [#def122]
bluez-5.81/src/sdpd-service.c:381: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: versions
Error: CPPCHECK_WARNING (CWE-476): [#def123]
bluez-5.81/src/sdpd-service.c:382: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: versionDTDs
Error: CPPCHECK_WARNING (CWE-476): [#def124]
bluez-5.81/src/sdpd-service.c:386: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: versions
Error: CPPCHECK_WARNING (CWE-476): [#def125]
bluez-5.81/src/shared/bap.c:1006: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def126]
bluez-5.81/src/shared/bap.c:1007: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def127]
bluez-5.81/src/shared/bap.c:1008: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def128]
bluez-5.81/src/shared/bap.c:1070: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def129]
bluez-5.81/src/shared/bap.c:1071: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def130]
bluez-5.81/src/shared/bap.c:1072: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def131]
bluez-5.81/src/shared/bap.c:1074: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def132]
bluez-5.81/src/shared/bap.c:1107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def133]
bluez-5.81/src/shared/bap.c:1108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def134]
bluez-5.81/src/shared/bap.c:1109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: CPPCHECK_WARNING (CWE-476): [#def135]
bluez-5.81/src/shared/bap.c:1111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: status
Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
bluez-5.81/src/shared/bap.c:1613:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/bap.c:5192:13: enter_function: entry to 'bap_cp_notify'
bluez-5.81/src/shared/bap.c:5201:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/bap.c:5205:9: branch_false: ...to here
bluez-5.81/src/shared/bap.c:5237:9: call_function: calling 'bap_req_complete' from 'bap_cp_notify'
bluez-5.81/src/shared/bap.c:5237:9: return_function: returning to 'bap_cp_notify' from 'bap_req_complete'
bluez-5.81/src/shared/bap.c:5238:9: call_function: calling 'bap_process_queue' from 'bap_cp_notify'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
bluez-5.81/src/shared/bap.c:5246:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/bap.c:5241:13: enter_function: entry to 'bap_cp_attach'
bluez-5.81/src/shared/bap.c:5244:32: call_function: calling 'bap_get_ascs' from 'bap_cp_attach'
bluez-5.81/src/shared/bap.c:5244:32: return_function: returning to 'bap_cp_attach' from 'bap_get_ascs'
bluez-5.81/src/shared/bap.c:5246:46: danger: dereference of NULL 'bap_get_ascs(bap)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
bluez-5.81/src/shared/bap.c:5311:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/bap.c:5305:13: enter_function: entry to 'foreach_ascs_service'
bluez-5.81/src/shared/bap.c:5309:32: call_function: calling 'bap_get_ascs' from 'foreach_ascs_service'
bluez-5.81/src/shared/bap.c:5309:32: return_function: returning to 'foreach_ascs_service' from 'bap_get_ascs'
bluez-5.81/src/shared/bap.c:5311:9: danger: dereference of NULL 'bap_get_ascs(user_data)'
Error: GCC_ANALYZER_WARNING (CWE-465): [#def139]
bluez-5.81/src/shared/bap.c:6067:20: warning[-Wanalyzer-deref-before-check]: check of 'lpac' for NULL after already dereferencing it
bluez-5.81/src/shared/bap.c:6049:30: enter_function: entry to 'bap_bcast_stream_new'
bluez-5.81/src/shared/bap.c:6058:12: branch_false: following 'false' branch (when 'bap' is non-NULL)...
bluez-5.81/src/shared/bap.c:6061:13: branch_false: ...to here
bluez-5.81/src/shared/bap.c:6061:12: branch_true: following 'true' branch...
bluez-5.81/src/shared/bap.c:6062:17: branch_true: ...to here
bluez-5.81/src/shared/bap.c:6066:17: call_function: calling 'bt_bap_foreach_pac' from 'bap_bcast_stream_new'
bluez-5.81/src/shared/bap.c:6066:17: return_function: returning to 'bap_bcast_stream_new' from 'bt_bap_foreach_pac'
bluez-5.81/src/shared/bap.c:6067:20: danger: pointer 'lpac' is checked for NULL here but it was already dereferenced at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
bluez-5.81/src/shared/bass.c:420:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'bad_code'
bluez-5.81/src/shared/bass.c:1280:13: enter_function: entry to 'read_bcast_recv_state'
bluez-5.81/src/shared/bass.c:1299:13: call_function: calling 'bass_build_bcast_src' from 'read_bcast_recv_state'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
bluez-5.81/src/shared/bass.c:705:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/bass.c:691:24: enter_function: entry to 'bass_get_session'
bluez-5.81/src/shared/bass.c:704:16: call_function: calling 'bt_bass_new' from 'bass_get_session'
bluez-5.81/src/shared/bass.c:704:16: return_function: returning to 'bass_get_session' from 'bt_bass_new'
bluez-5.81/src/shared/bass.c:705:9: danger: dereference of NULL 'bt_bass_new(db, 0, adapter_bdaddr)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
bluez-5.81/src/shared/ccp.c:661:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:654:13: enter_function: entry to 'bt_ccp_incom_call_attach'
bluez-5.81/src/shared/ccp.c:657:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_incom_call_attach'
bluez-5.81/src/shared/ccp.c:657:30: return_function: returning to 'bt_ccp_incom_call_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:659:9: call_function: calling 'ccp_debug' from 'bt_ccp_incom_call_attach'
bluez-5.81/src/shared/ccp.c:659:9: return_function: returning to 'bt_ccp_incom_call_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:661:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
bluez-5.81/src/shared/ccp.c:683:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:676:13: enter_function: entry to 'bt_ccp_call_state_attach'
bluez-5.81/src/shared/ccp.c:679:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_call_state_attach'
bluez-5.81/src/shared/ccp.c:679:30: return_function: returning to 'bt_ccp_call_state_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:681:9: call_function: calling 'ccp_debug' from 'bt_ccp_call_state_attach'
bluez-5.81/src/shared/ccp.c:681:9: return_function: returning to 'bt_ccp_call_state_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:683:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
bluez-5.81/src/shared/ccp.c:705:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:698:13: enter_function: entry to 'bt_ccp_call_list_attach'
bluez-5.81/src/shared/ccp.c:701:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_call_list_attach'
bluez-5.81/src/shared/ccp.c:701:30: return_function: returning to 'bt_ccp_call_list_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:703:9: call_function: calling 'ccp_debug' from 'bt_ccp_call_list_attach'
bluez-5.81/src/shared/ccp.c:703:9: return_function: returning to 'bt_ccp_call_list_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:705:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
bluez-5.81/src/shared/ccp.c:727:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:720:13: enter_function: entry to 'bt_ccp_name_attach'
bluez-5.81/src/shared/ccp.c:723:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_name_attach'
bluez-5.81/src/shared/ccp.c:723:30: return_function: returning to 'bt_ccp_name_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:725:9: call_function: calling 'ccp_debug' from 'bt_ccp_name_attach'
bluez-5.81/src/shared/ccp.c:725:9: return_function: returning to 'bt_ccp_name_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:727:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
bluez-5.81/src/shared/ccp.c:749:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:742:13: enter_function: entry to 'bt_ccp_term_reason_attach'
bluez-5.81/src/shared/ccp.c:745:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_term_reason_attach'
bluez-5.81/src/shared/ccp.c:745:30: return_function: returning to 'bt_ccp_term_reason_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:747:9: call_function: calling 'ccp_debug' from 'bt_ccp_term_reason_attach'
bluez-5.81/src/shared/ccp.c:747:9: return_function: returning to 'bt_ccp_term_reason_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:749:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
bluez-5.81/src/shared/ccp.c:770:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:763:13: enter_function: entry to 'bt_ccp_status_attach'
bluez-5.81/src/shared/ccp.c:766:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_status_attach'
bluez-5.81/src/shared/ccp.c:766:30: return_function: returning to 'bt_ccp_status_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:768:9: call_function: calling 'ccp_debug' from 'bt_ccp_status_attach'
bluez-5.81/src/shared/ccp.c:768:9: return_function: returning to 'bt_ccp_status_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:770:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
bluez-5.81/src/shared/ccp.c:792:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:785:13: enter_function: entry to 'bt_ccp_uci_attach'
bluez-5.81/src/shared/ccp.c:788:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_uci_attach'
bluez-5.81/src/shared/ccp.c:788:30: return_function: returning to 'bt_ccp_uci_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:790:9: call_function: calling 'ccp_debug' from 'bt_ccp_uci_attach'
bluez-5.81/src/shared/ccp.c:790:9: return_function: returning to 'bt_ccp_uci_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:792:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
bluez-5.81/src/shared/ccp.c:813:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:806:13: enter_function: entry to 'bt_ccp_technology_attach'
bluez-5.81/src/shared/ccp.c:809:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_technology_attach'
bluez-5.81/src/shared/ccp.c:809:30: return_function: returning to 'bt_ccp_technology_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:811:9: call_function: calling 'ccp_debug' from 'bt_ccp_technology_attach'
bluez-5.81/src/shared/ccp.c:811:9: return_function: returning to 'bt_ccp_technology_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:813:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
bluez-5.81/src/shared/ccp.c:833:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:826:13: enter_function: entry to 'bt_ccp_strength_attach'
bluez-5.81/src/shared/ccp.c:829:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_strength_attach'
bluez-5.81/src/shared/ccp.c:829:30: return_function: returning to 'bt_ccp_strength_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:831:9: call_function: calling 'ccp_debug' from 'bt_ccp_strength_attach'
bluez-5.81/src/shared/ccp.c:831:9: return_function: returning to 'bt_ccp_strength_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:833:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
bluez-5.81/src/shared/ccp.c:853:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:846:13: enter_function: entry to 'bt_ccp_ccid_attach'
bluez-5.81/src/shared/ccp.c:849:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_ccid_attach'
bluez-5.81/src/shared/ccp.c:849:30: return_function: returning to 'bt_ccp_ccid_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:851:9: call_function: calling 'ccp_debug' from 'bt_ccp_ccid_attach'
bluez-5.81/src/shared/ccp.c:851:9: return_function: returning to 'bt_ccp_ccid_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:853:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
bluez-5.81/src/shared/ccp.c:872:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:865:13: enter_function: entry to 'bt_ccp_tar_uri_attach'
bluez-5.81/src/shared/ccp.c:868:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_tar_uri_attach'
bluez-5.81/src/shared/ccp.c:868:30: return_function: returning to 'bt_ccp_tar_uri_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:870:9: call_function: calling 'ccp_debug' from 'bt_ccp_tar_uri_attach'
bluez-5.81/src/shared/ccp.c:870:9: return_function: returning to 'bt_ccp_tar_uri_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:872:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
bluez-5.81/src/shared/ccp.c:893:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:886:13: enter_function: entry to 'bt_ccp_ctrl_point_attach'
bluez-5.81/src/shared/ccp.c:889:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_ctrl_point_attach'
bluez-5.81/src/shared/ccp.c:889:30: return_function: returning to 'bt_ccp_ctrl_point_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:891:9: call_function: calling 'ccp_debug' from 'bt_ccp_ctrl_point_attach'
bluez-5.81/src/shared/ccp.c:891:9: return_function: returning to 'bt_ccp_ctrl_point_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:893:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
bluez-5.81/src/shared/ccp.c:913:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:906:13: enter_function: entry to 'bt_ccp_ctrl_opcode_attach'
bluez-5.81/src/shared/ccp.c:909:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_ctrl_opcode_attach'
bluez-5.81/src/shared/ccp.c:909:30: return_function: returning to 'bt_ccp_ctrl_opcode_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:911:9: call_function: calling 'ccp_debug' from 'bt_ccp_ctrl_opcode_attach'
bluez-5.81/src/shared/ccp.c:911:9: return_function: returning to 'bt_ccp_ctrl_opcode_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:913:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
bluez-5.81/src/shared/ccp.c:933:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:926:13: enter_function: entry to 'bt_ccp_friendly_name_attach'
bluez-5.81/src/shared/ccp.c:929:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_friendly_name_attach'
bluez-5.81/src/shared/ccp.c:929:30: return_function: returning to 'bt_ccp_friendly_name_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:931:9: call_function: calling 'ccp_debug' from 'bt_ccp_friendly_name_attach'
bluez-5.81/src/shared/ccp.c:931:9: return_function: returning to 'bt_ccp_friendly_name_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:933:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
bluez-5.81/src/shared/ccp.c:953:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:946:13: enter_function: entry to 'bt_ccp_signal_intrvl_attach'
bluez-5.81/src/shared/ccp.c:949:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_signal_intrvl_attach'
bluez-5.81/src/shared/ccp.c:949:30: return_function: returning to 'bt_ccp_signal_intrvl_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:951:9: call_function: calling 'ccp_debug' from 'bt_ccp_signal_intrvl_attach'
bluez-5.81/src/shared/ccp.c:951:9: return_function: returning to 'bt_ccp_signal_intrvl_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:953:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
bluez-5.81/src/shared/ccp.c:973:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:966:13: enter_function: entry to 'bt_ccp_uri_list_attach'
bluez-5.81/src/shared/ccp.c:969:30: call_function: calling 'ccp_get_ccs' from 'bt_ccp_uri_list_attach'
bluez-5.81/src/shared/ccp.c:969:30: return_function: returning to 'bt_ccp_uri_list_attach' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:971:9: call_function: calling 'ccp_debug' from 'bt_ccp_uri_list_attach'
bluez-5.81/src/shared/ccp.c:971:9: return_function: returning to 'bt_ccp_uri_list_attach' from 'ccp_debug'
bluez-5.81/src/shared/ccp.c:973:46: danger: dereference of NULL 'ccp_get_ccs(ccp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
bluez-5.81/src/shared/ccp.c:1129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/ccp.c:1123:13: enter_function: entry to 'foreach_ccs_service'
bluez-5.81/src/shared/ccp.c:1127:30: call_function: calling 'ccp_get_ccs' from 'foreach_ccs_service'
bluez-5.81/src/shared/ccp.c:1127:30: return_function: returning to 'foreach_ccs_service' from 'ccp_get_ccs'
bluez-5.81/src/shared/ccp.c:1129:9: danger: dereference of NULL 'ccp_get_ccs(user_data)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
bluez-5.81/src/shared/crypto.c:212:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor '*crypto.cmac_aes'
bluez-5.81/src/shared/crypto.c:724:6: enter_function: entry to 'bt_crypto_gatt_hash'
bluez-5.81/src/shared/crypto.c:731:12: branch_false: following 'false' branch (when 'crypto' is non-NULL)...
bluez-5.81/src/shared/crypto.c:734:14: branch_false: ...to here
bluez-5.81/src/shared/crypto.c:734:14: call_function: calling 'alg_new' from 'bt_crypto_gatt_hash'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
bluez-5.81/src/shared/crypto.c:212:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor '*crypto.ecb_aes'
bluez-5.81/src/shared/crypto.c:785:6: enter_function: entry to 'bt_crypto_sih'
bluez-5.81/src/shared/crypto.c:788:16: call_function: calling 'bt_crypto_ah' from 'bt_crypto_sih'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def161]
bluez-5.81/src/shared/gatt-client.c:199:32: warning[-Wanalyzer-use-after-free]: use after 'free' of 'data'
bluez-5.81/src/shared/gatt-client.c:3247:13: enter_function: entry to 'start_next_long_write'
bluez-5.81/src/shared/gatt-client.c:3257:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-client.c:3260:9: branch_false: ...to here
bluez-5.81/src/shared/gatt-client.c:3260:9: call_function: calling 'handle_next_prep_write' from 'start_next_long_write'
bluez-5.81/src/shared/gatt-client.c:3260:9: return_function: returning to 'start_next_long_write' from 'handle_next_prep_write'
bluez-5.81/src/shared/gatt-client.c:3266:9: call_function: calling 'request_unref' from 'start_next_long_write'
Error: GCC_ANALYZER_WARNING (CWE-416): [#def162]
bluez-5.81/src/shared/gatt-client.c:3297:31: warning[-Wanalyzer-use-after-free]: use after 'free' of 'req'
bluez-5.81/src/shared/gatt-client.c:3247:13: enter_function: entry to 'start_next_long_write'
bluez-5.81/src/shared/gatt-client.c:3257:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-client.c:3260:9: branch_false: ...to here
bluez-5.81/src/shared/gatt-client.c:3260:9: call_function: calling 'handle_next_prep_write' from 'start_next_long_write'
Error: CPPCHECK_WARNING (CWE-682): [#def163]
bluez-5.81/src/shared/gatt-db.c:397: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def164]
bluez-5.81/src/shared/gatt-db.c:398: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def165]
bluez-5.81/src/shared/gatt-db.c:409: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
bluez-5.81/src/shared/gatt-db.c:1920:32: warning[-Wanalyzer-null-dereference]: dereference of NULL 'value'
bluez-5.81/src/shared/gatt-db.c:1923:13: enter_function: entry to 'read_ext_prop'
bluez-5.81/src/shared/gatt-db.c:1938:9: call_function: calling 'gatt_db_attribute_read' from 'read_ext_prop'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
bluez-5.81/src/shared/gatt-server.c:322:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'type'
bluez-5.81/src/shared/gatt-server.c:270:13: enter_function: entry to 'read_by_grp_type_cb'
bluez-5.81/src/shared/gatt-server.c:284:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-server.c:289:13: branch_false: ...to here
bluez-5.81/src/shared/gatt-server.c:293:9: call_function: calling 'get_uuid_le' from 'read_by_grp_type_cb'
bluez-5.81/src/shared/gatt-server.c:293:9: return_function: returning to 'read_by_grp_type_cb' from 'get_uuid_le'
bluez-5.81/src/shared/gatt-server.c:297:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-server.c:304:12: branch_false: ...to here
bluez-5.81/src/shared/gatt-server.c:304:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-server.c:315:9: branch_false: ...to here
bluez-5.81/src/shared/gatt-server.c:322:9: danger: use of uninitialized value 'type' here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def168]
bluez-5.81/src/shared/gatt-server.c:528:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'type'
bluez-5.81/src/shared/gatt-server.c:491:13: enter_function: entry to 'read_by_type_cb'
bluez-5.81/src/shared/gatt-server.c:503:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-server.c:508:13: branch_false: ...to here
bluez-5.81/src/shared/gatt-server.c:512:9: call_function: calling 'get_uuid_le' from 'read_by_type_cb'
bluez-5.81/src/shared/gatt-server.c:512:9: return_function: returning to 'read_by_type_cb' from 'get_uuid_le'
bluez-5.81/src/shared/gatt-server.c:516:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-server.c:523:12: branch_false: ...to here
bluez-5.81/src/shared/gatt-server.c:523:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/gatt-server.c:528:9: branch_false: ...to here
bluez-5.81/src/shared/gatt-server.c:528:9: danger: use of uninitialized value 'type' here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
bluez-5.81/src/shared/mcp.c:586:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mcp'
bluez-5.81/src/shared/mcp.c:578:21: enter_function: entry to 'mcp_send'
bluez-5.81/src/shared/mcp.c:580:30: call_function: calling 'mcp_get_mcs' from 'mcp_send'
bluez-5.81/src/shared/mcp.c:580:30: return_function: returning to 'mcp_send' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:584:9: call_function: calling 'mcp_debug' from 'mcp_send'
bluez-5.81/src/shared/mcp.c:584:9: return_function: returning to 'mcp_send' from 'mcp_debug'
bluez-5.81/src/shared/mcp.c:586:14: danger: dereference of NULL 'mcp'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
bluez-5.81/src/shared/mcp.c:1068:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1063:13: enter_function: entry to 'bt_mcp_mp_name_attach'
bluez-5.81/src/shared/mcp.c:1066:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_mp_name_attach'
bluez-5.81/src/shared/mcp.c:1066:30: return_function: returning to 'bt_mcp_mp_name_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1068:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
bluez-5.81/src/shared/mcp.c:1086:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1081:13: enter_function: entry to 'bt_mcp_track_changed_attach'
bluez-5.81/src/shared/mcp.c:1084:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_track_changed_attach'
bluez-5.81/src/shared/mcp.c:1084:30: return_function: returning to 'bt_mcp_track_changed_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1086:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
bluez-5.81/src/shared/mcp.c:1102:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1097:13: enter_function: entry to 'bt_mcp_track_title_attach'
bluez-5.81/src/shared/mcp.c:1100:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_track_title_attach'
bluez-5.81/src/shared/mcp.c:1100:30: return_function: returning to 'bt_mcp_track_title_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1102:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
bluez-5.81/src/shared/mcp.c:1120:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1115:13: enter_function: entry to 'bt_mcp_track_duration_attach'
bluez-5.81/src/shared/mcp.c:1118:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_track_duration_attach'
bluez-5.81/src/shared/mcp.c:1118:30: return_function: returning to 'bt_mcp_track_duration_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1120:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
bluez-5.81/src/shared/mcp.c:1138:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1133:13: enter_function: entry to 'bt_mcp_track_position_attach'
bluez-5.81/src/shared/mcp.c:1136:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_track_position_attach'
bluez-5.81/src/shared/mcp.c:1136:30: return_function: returning to 'bt_mcp_track_position_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1138:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
bluez-5.81/src/shared/mcp.c:1156:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1151:13: enter_function: entry to 'bt_mcp_media_state_attach'
bluez-5.81/src/shared/mcp.c:1154:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_media_state_attach'
bluez-5.81/src/shared/mcp.c:1154:30: return_function: returning to 'bt_mcp_media_state_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1156:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
bluez-5.81/src/shared/mcp.c:1174:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1169:13: enter_function: entry to 'bt_mcp_media_cp_attach'
bluez-5.81/src/shared/mcp.c:1172:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_media_cp_attach'
bluez-5.81/src/shared/mcp.c:1172:30: return_function: returning to 'bt_mcp_media_cp_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1174:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
bluez-5.81/src/shared/mcp.c:1190:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1185:13: enter_function: entry to 'bt_mcp_media_cp_op_supported_attach'
bluez-5.81/src/shared/mcp.c:1188:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_media_cp_op_supported_attach'
bluez-5.81/src/shared/mcp.c:1188:30: return_function: returning to 'bt_mcp_media_cp_op_supported_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1190:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
bluez-5.81/src/shared/mcp.c:1209:46: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1204:13: enter_function: entry to 'bt_mcp_content_control_id_supported_attach'
bluez-5.81/src/shared/mcp.c:1207:30: call_function: calling 'mcp_get_mcs' from 'bt_mcp_content_control_id_supported_attach'
bluez-5.81/src/shared/mcp.c:1207:30: return_function: returning to 'bt_mcp_content_control_id_supported_attach' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1209:46: danger: dereference of NULL 'mcp_get_mcs(mcp)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
bluez-5.81/src/shared/mcp.c:1376:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/mcp.c:1368:13: enter_function: entry to 'foreach_mcs_service'
bluez-5.81/src/shared/mcp.c:1372:30: call_function: calling 'mcp_get_mcs' from 'foreach_mcs_service'
bluez-5.81/src/shared/mcp.c:1372:30: return_function: returning to 'foreach_mcs_service' from 'mcp_get_mcs'
bluez-5.81/src/shared/mcp.c:1374:9: call_function: calling 'mcp_debug' from 'foreach_mcs_service'
bluez-5.81/src/shared/mcp.c:1374:9: return_function: returning to 'foreach_mcs_service' from 'mcp_debug'
bluez-5.81/src/shared/mcp.c:1376:9: danger: dereference of NULL 'mcp_get_mcs(user_data)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
bluez-5.81/src/shared/micp.c:271:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/micp.c:258:24: enter_function: entry to 'micp_get_session'
bluez-5.81/src/shared/micp.c:270:16: call_function: calling 'bt_micp_new' from 'micp_get_session'
bluez-5.81/src/shared/micp.c:270:16: return_function: returning to 'micp_get_session' from 'bt_micp_new'
bluez-5.81/src/shared/micp.c:271:9: danger: dereference of NULL 'bt_micp_new(db, 0)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def181]
bluez-5.81/src/shared/micp.c:339:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/micp.c:323:16: enter_function: entry to 'mics_muted'
bluez-5.81/src/shared/micp.c:331:15: call_function: inlined call to 'micp_get_mdb' from 'mics_muted'
bluez-5.81/src/shared/micp.c:332:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/micp.c:337:22: call_function: inlined call to 'mdb_get_mute_state' from 'mics_muted'
bluez-5.81/src/shared/micp.c:339:9: branch_true: ...to here
bluez-5.81/src/shared/micp.c:339:9: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
bluez-5.81/src/shared/micp.c:421:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/micp.c:368:13: enter_function: entry to 'mics_mute_write'
bluez-5.81/src/shared/micp.c:375:32: call_function: calling 'micp_get_session' from 'mics_mute_write'
bluez-5.81/src/shared/micp.c:375:32: return_function: returning to 'mics_mute_write' from 'micp_get_session'
bluez-5.81/src/shared/micp.c:387:12: branch_false: following 'false' branch (when 'offset == 0')...
bluez-5.81/src/shared/micp.c:393:12: branch_false: ...to here
bluez-5.81/src/shared/micp.c:393:12: branch_false: following 'false' branch (when 'len != 0')...
bluez-5.81/src/shared/micp.c:400:19: call_function: inlined call to 'iov_pull_mem' from 'mics_mute_write'
bluez-5.81/src/shared/micp.c:401:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
bluez-5.81/src/shared/micp.c:406:14: branch_false: ...to here
bluez-5.81/src/shared/micp.c:406:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/micp.c:414:15: call_function: inlined call to 'micp_get_mdb' from 'mics_mute_write'
bluez-5.81/src/shared/micp.c:415:12: branch_false: following 'false' branch...
bluez-5.81/src/shared/micp.c:420:22: call_function: inlined call to 'mdb_get_mute_state' from 'mics_mute_write'
bluez-5.81/src/shared/micp.c:421:13: branch_true: ...to here
bluez-5.81/src/shared/micp.c:421:13: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
bluez-5.81/src/shared/micp.c:786:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/micp.c:780:13: enter_function: entry to 'foreach_mics_service'
bluez-5.81/src/shared/micp.c:784:32: call_function: calling 'micp_get_mics' from 'foreach_mics_service'
bluez-5.81/src/shared/micp.c:784:32: return_function: returning to 'foreach_mics_service' from 'micp_get_mics'
bluez-5.81/src/shared/micp.c:786:9: danger: dereference of NULL 'micp_get_mics(user_data)'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def184]
bluez-5.81/src/shared/shell.c:742:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'saved_line'
bluez-5.81/src/shared/shell.c:233:13: enter_function: entry to 'cmd_back'
bluez-5.81/src/shared/shell.c:236:17: call_function: calling 'bt_shell_printf' from 'cmd_back'
Error: COMPILER_WARNING: [#def185]
bluez-5.81/src/shared/shell.c: scope_hint: In function 'rl_cleanup'
bluez-5.81/src/shared/shell.c:1429:20: warning[-Wformat-zero-length]: zero-length gnu_printf format string
Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
bluez-5.81/src/shared/tester.c:1041:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/tester.c:1029:12: enter_function: entry to 'tester_setup_io'
bluez-5.81/src/shared/tester.c:1031:34: call_function: inlined call to 'tester_get_test' from 'tester_setup_io'
bluez-5.81/src/shared/tester.c:1033:14: branch_true: ...to here
bluez-5.81/src/shared/tester.c:1041:9: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
bluez-5.81/src/shared/tester.c:1051:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/tester.c:1047:6: enter_function: entry to 'tester_io_send'
bluez-5.81/src/shared/tester.c:1049:34: call_function: inlined call to 'tester_get_test' from 'tester_io_send'
bluez-5.81/src/shared/tester.c:1051:13: branch_true: ...to here
bluez-5.81/src/shared/tester.c:1051:13: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
bluez-5.81/src/shared/tester.c:1059:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/tester.c:1055:6: enter_function: entry to 'tester_io_set_complete_func'
bluez-5.81/src/shared/tester.c:1057:34: call_function: inlined call to 'tester_get_test' from 'tester_io_set_complete_func'
bluez-5.81/src/shared/tester.c:1059:9: branch_true: ...to here
bluez-5.81/src/shared/tester.c:1059:9: danger: dereference of NULL '<unknown>'
Error: CPPCHECK_WARNING (CWE-476): [#def189]
bluez-5.81/src/shared/util.c:1852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dup
Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
bluez-5.81/src/shared/util.c:1852:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dup'
bluez-5.81/src/shared/util.c:1848:12: branch_false: following 'false' branch (when 'str' is non-NULL)...
bluez-5.81/src/shared/util.c:1851:15: branch_false: ...to here
bluez-5.81/src/shared/util.c:1851:15: acquire_memory: this call could return NULL
bluez-5.81/src/shared/util.c:1852:13: danger: 'dup' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def191]
bluez-5.81/src/shared/util.h:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: __p
Error: CPPCHECK_WARNING (CWE-476): [#def192]
bluez-5.81/src/shared/util.h:266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: __p
Error: CPPCHECK_WARNING (CWE-476): [#def193]
bluez-5.81/src/shared/util.h:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: __p
Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
bluez-5.81/src/shared/vcp.c:545:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/vcp.c:531:23: enter_function: entry to 'vcp_get_session'
bluez-5.81/src/shared/vcp.c:544:15: call_function: calling 'bt_vcp_new' from 'vcp_get_session'
bluez-5.81/src/shared/vcp.c:544:15: return_function: returning to 'vcp_get_session' from 'bt_vcp_new'
bluez-5.81/src/shared/vcp.c:545:9: danger: dereference of NULL 'bt_vcp_new(db, 0)'
Error: CPPCHECK_WARNING (CWE-476): [#def195]
bluez-5.81/src/shared/vcp.c:1801: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ip_descr
Error: GCC_ANALYZER_WARNING (CWE-688): [#def196]
bluez-5.81/src/shared/vcp.c:1801:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'ip_descr' where non-null expected
bluez-5.81/src/shared/vcp.c:1793:12: branch_false: following 'false' branch (when 'db' is non-NULL)...
bluez-5.81/src/shared/vcp.c:1796:16: branch_false: ...to here
bluez-5.81/src/shared/vcp.c:1800:20: acquire_memory: this call could return NULL
bluez-5.81/src/shared/vcp.c:1801:9: danger: argument 1 ('ip_descr') from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def197]
bluez-5.81/src/shared/vcp.c:1813: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ip_descr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
bluez-5.81/src/shared/vcp.c:2156:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/vcp.c:2151:13: enter_function: entry to 'vcp_set_volume_server'
bluez-5.81/src/shared/vcp.c:2153:33: call_function: inlined call to 'vcp_get_vdb' from 'vcp_set_volume_server'
bluez-5.81/src/shared/vcp.c:2156:9: branch_true: ...to here
bluez-5.81/src/shared/vcp.c:2156:9: danger: dereference of NULL '0'
Error: CPPCHECK_WARNING (CWE-476): [#def199]
bluez-5.81/src/shared/vcp.c:2206: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vocs_audio_loc_n
Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
bluez-5.81/src/shared/vcp.c:2206:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'vocs_audio_loc_n'
bluez-5.81/src/shared/vcp.c:2205:38: acquire_memory: this call could return NULL
bluez-5.81/src/shared/vcp.c:2206:9: danger: 'vocs_audio_loc_n' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def201]
bluez-5.81/src/shared/vcp.c:2211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vocs_audio_loc_n
Error: CPPCHECK_WARNING (CWE-476): [#def202]
bluez-5.81/src/shared/vcp.c:2783: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aud_ip_desr
Error: CPPCHECK_WARNING (CWE-476): [#def203]
bluez-5.81/src/shared/vcp.c:2784: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aud_ip_desr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
bluez-5.81/src/shared/vcp.c:2919:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
bluez-5.81/src/shared/vcp.c:2913:13: enter_function: entry to 'foreach_vcs_service'
bluez-5.81/src/shared/vcp.c:2917:30: call_function: calling 'vcp_get_vcs' from 'foreach_vcs_service'
bluez-5.81/src/shared/vcp.c:2917:30: return_function: returning to 'foreach_vcs_service' from 'vcp_get_vcs'
bluez-5.81/src/shared/vcp.c:2919:9: danger: dereference of NULL 'vcp_get_vcs(user_data)'
Error: GCC_ANALYZER_WARNING (CWE-666): [#def205]
bluez-5.81/tools/avinfo.c:880:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
bluez-5.81/tools/avinfo.c:862:14: acquire_resource: socket created here
bluez-5.81/tools/avinfo.c:863:12: branch_false: following ‘false’ branch (when ‘sk >= 0’)...
bluez-5.81/tools/avinfo.c:869:13: branch_false: ...to here
bluez-5.81/tools/avinfo.c:869:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/avinfo.c:875:9: branch_false: ...to here
bluez-5.81/tools/avinfo.c:880:13: danger: ‘connect’ expects a new socket file descriptor but ‘sk’ is bound
Error: GCC_ANALYZER_WARNING (CWE-666): [#def206]
bluez-5.81/tools/avtest.c:550:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
bluez-5.81/tools/avtest.c:787:5: enter_function: entry to ‘main’
bluez-5.81/tools/avtest.c:866:22: call_function: calling ‘do_connect’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-479): [#def207]
bluez-5.81/tools/bneptest.c:483:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
bluez-5.81/tools/bneptest.c:549:5: enter_function: entry to ‘main’
bluez-5.81/tools/bneptest.c:555:9: branch_false: following ‘false’ branch...
bluez-5.81/tools/bneptest.c:557:9: branch_false: ...to here
bluez-5.81/tools/bneptest.c:481:13: enter_function: entry to ‘exit_handler’
bluez-5.81/tools/bneptest.c:483:9: danger: call to ‘printf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def208]
bluez-5.81/tools/bneptest.c:490:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
bluez-5.81/tools/bneptest.c:549:5: enter_function: entry to ‘main’
bluez-5.81/tools/bneptest.c:555:9: branch_false: following ‘false’ branch...
bluez-5.81/tools/bneptest.c:557:9: branch_false: ...to here
bluez-5.81/tools/bneptest.c:481:13: enter_function: entry to ‘exit_handler’
bluez-5.81/tools/bneptest.c:490:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-775): [#def209]
bluez-5.81/tools/btsnoop.c:260:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
bluez-5.81/tools/btsnoop.c:119:13: enter_function: entry to ‘command_merge’
bluez-5.81/tools/btsnoop.c:129:12: branch_false: following ‘false’ branch (when ‘argc <= 8’)...
branch_false: ...to here
bluez-5.81/tools/btsnoop.c:134:21: branch_true: following ‘true’ branch (when ‘num_input < argc’)...
bluez-5.81/tools/btsnoop.c:138:39: branch_true: ...to here
bluez-5.81/tools/btsnoop.c:138:22: call_function: calling ‘open_btsnoop’ from ‘command_merge’
bluez-5.81/tools/btsnoop.c:138:22: return_function: returning to ‘command_merge’ from ‘open_btsnoop’
bluez-5.81/tools/btsnoop.c:139:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/btsnoop.c:142:21: branch_false: ...to here
bluez-5.81/tools/btsnoop.c:142:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/btsnoop.c:149:26: branch_false: ...to here
bluez-5.81/tools/btsnoop.c:134:21: branch_true: following ‘true’ branch (when ‘num_input < argc’)...
bluez-5.81/tools/btsnoop.c:138:39: branch_true: ...to here
bluez-5.81/tools/btsnoop.c:138:22: call_function: calling ‘open_btsnoop’ from ‘command_merge’
bluez-5.81/tools/btsnoop.c:138:22: return_function: returning to ‘command_merge’ from ‘open_btsnoop’
bluez-5.81/tools/btsnoop.c:139:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/btsnoop.c:142:21: branch_false: ...to here
bluez-5.81/tools/btsnoop.c:142:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/btsnoop.c:149:26: branch_false: ...to here
bluez-5.81/tools/btsnoop.c:260:1: danger: leaks here; was opened at [(29)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-666): [#def210]
bluez-5.81/tools/cltest.c:62:13: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘fd’ in wrong phase
bluez-5.81/tools/cltest.c:239:5: enter_function: entry to ‘main’
bluez-5.81/tools/cltest.c:246:14: call_function: calling ‘find_controllers’ from ‘main’
bluez-5.81/tools/cltest.c:246:14: return_function: returning to ‘main’ from ‘find_controllers’
bluez-5.81/tools/cltest.c:246:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/cltest.c:249:33: branch_true: ...to here
bluez-5.81/tools/cltest.c:249:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/cltest.c:250:53: branch_false: ...to here
bluez-5.81/tools/cltest.c:249:13: branch_false: following ‘false’ branch...
bluez-5.81/tools/cltest.c:255:9: branch_false: ...to here
bluez-5.81/tools/cltest.c:262:9: call_function: calling ‘create_receiver’ from ‘main’
bluez-5.81/tools/cltest.c:262:9: return_function: returning to ‘main’ from ‘create_receiver’
bluez-5.81/tools/cltest.c:263:9: call_function: calling ‘send_message’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def211]
bluez-5.81/tools/create-image.c:108:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
bluez-5.81/tools/create-image.c:142:5: enter_function: entry to ‘main’
bluez-5.81/tools/create-image.c:152:20: branch_false: following ‘false’ branch (when ‘opt >= 0’)...
bluez-5.81/tools/create-image.c:155:17: branch_false: ...to here
bluez-5.81/tools/create-image.c:170:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/create-image.c:175:12: branch_false: ...to here
bluez-5.81/tools/create-image.c:175:12: branch_false: following ‘false’ branch (when ‘output_pathname’ is non-NULL)...
bluez-5.81/tools/create-image.c:180:14: branch_false: ...to here
bluez-5.81/tools/create-image.c:180:14: acquire_memory: this call could return NULL
bluez-5.81/tools/create-image.c:182:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/create-image.c:184:52: branch_true: ...to here
bluez-5.81/tools/create-image.c:183:17: call_function: calling ‘write_block’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def212]
bluez-5.81/tools/create-image.c:188: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
bluez-5.81/tools/hciattach.c:1322:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
bluez-5.81/tools/hciattach.c:1281:12: branch_false: following ‘false’ branch (when ‘n > 1’)...
branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1297:28: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach.c:1302:25: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1322:25: danger: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
bluez-5.81/tools/hciattach.c:1327:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
bluez-5.81/tools/hciattach.c:1281:12: branch_false: following ‘false’ branch (when ‘n > 1’)...
branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1297:28: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach.c:1302:25: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1326:28: branch_true: following ‘true’ branch (when the strings are equal)...
bluez-5.81/tools/hciattach.c:1327:33: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1327:33: danger: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
bluez-5.81/tools/hciattach.c:1329:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
bluez-5.81/tools/hciattach.c:1281:12: branch_false: following ‘false’ branch (when ‘n > 1’)...
branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1297:28: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach.c:1302:25: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1326:28: branch_false: following ‘false’ branch (when the strings are non-equal)...
bluez-5.81/tools/hciattach.c:1329:33: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1329:33: danger: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
bluez-5.81/tools/hciattach.c:1334:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
bluez-5.81/tools/hciattach.c:1281:12: branch_false: following ‘false’ branch (when ‘n > 1’)...
branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1297:28: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach.c:1302:25: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1333:28: branch_true: following ‘true’ branch (when the strings are equal)...
bluez-5.81/tools/hciattach.c:1334:33: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1334:33: danger: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
bluez-5.81/tools/hciattach.c:1336:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
bluez-5.81/tools/hciattach.c:1281:12: branch_false: following ‘false’ branch (when ‘n > 1’)...
branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1297:28: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach.c:1302:25: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1333:28: branch_false: following ‘false’ branch (when the strings are non-equal)...
bluez-5.81/tools/hciattach.c:1336:33: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1336:33: danger: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
bluez-5.81/tools/hciattach.c:1340:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘u’
bluez-5.81/tools/hciattach.c:1281:12: branch_false: following ‘false’ branch (when ‘n > 1’)...
branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1297:28: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach.c:1302:25: branch_false: ...to here
bluez-5.81/tools/hciattach.c:1286:21: branch_true: following ‘true’ branch...
bluez-5.81/tools/hciattach.c:1289:27: branch_true: ...to here
bluez-5.81/tools/hciattach.c:1340:25: danger: dereference of NULL ‘u’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def219]
bluez-5.81/tools/hciattach_qualcomm.c:93:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(firmware, 0)’
bluez-5.81/tools/hciattach_qualcomm.c:91:18: acquire_resource: opened here
bluez-5.81/tools/hciattach_qualcomm.c:95:9: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach_qualcomm.c:99:9: branch_false: ...to here
bluez-5.81/tools/hciattach_qualcomm.c:108:20: branch_false: following ‘false’ branch (when ‘nr != 0’)...
bluez-5.81/tools/hciattach_qualcomm.c:111:17: branch_false: ...to here
bluez-5.81/tools/hciattach_qualcomm.c:93:9: danger: ‘open(firmware, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def220]
bluez-5.81/tools/hciattach_tialt.c:95:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(firmware, 0)’
bluez-5.81/tools/hciattach_tialt.c:93:18: acquire_resource: opened here
bluez-5.81/tools/hciattach_tialt.c:97:9: branch_false: following ‘false’ branch...
bluez-5.81/tools/hciattach_tialt.c:101:9: branch_false: ...to here
bluez-5.81/tools/hciattach_tialt.c:109:20: branch_false: following ‘false’ branch (when ‘nr != 0’)...
bluez-5.81/tools/hciattach_tialt.c:111:17: branch_false: ...to here
bluez-5.81/tools/hciattach_tialt.c:95:9: danger: ‘open(firmware, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
bluez-5.81/tools/hcidump.c:141:24: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
bluez-5.81/tools/hcidump.c:657:5: enter_function: entry to ‘main’
bluez-5.81/tools/hcidump.c:780:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/hcidump.c:783:13: branch_false: ...to here
bluez-5.81/tools/hcidump.c:783:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/hcidump.c:786:9: branch_false: ...to here
bluez-5.81/tools/hcidump.c:791:17: call_function: calling ‘open_socket’ from ‘main’
bluez-5.81/tools/hcidump.c:791:17: return_function: returning to ‘main’ from ‘open_socket’
bluez-5.81/tools/hcidump.c:791:17: call_function: calling ‘process_frames’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def222]
bluez-5.81/tools/iso-tester.c:2826: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def223]
bluez-5.81/tools/iso-tester.c:2827: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
bluez-5.81/tools/iso-tester.c:2827:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘addr’
bluez-5.81/tools/iso-tester.c:3407:13: enter_function: entry to ‘test_bcast_recv2’
bluez-5.81/tools/iso-tester.c:3413:9: call_function: calling ‘setup_listen_many’ from ‘test_bcast_recv2’
Error: CPPCHECK_WARNING (CWE-476): [#def225]
bluez-5.81/tools/iso-tester.c:2829: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def226]
bluez-5.81/tools/iso-tester.c:2966: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def227]
bluez-5.81/tools/iso-tester.c:2967: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def228]
bluez-5.81/tools/iso-tester.c:2969: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def229]
bluez-5.81/tools/iso-tester.c:2970: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: GCC_ANALYZER_WARNING (CWE-775): [#def230]
bluez-5.81/tools/iso-tester.c:3053:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(io)’
bluez-5.81/tools/iso-tester.c:3108:17: enter_function: entry to ‘iso_accept_cb’
bluez-5.81/tools/iso-tester.c:3117:24: call_function: calling ‘iso_accept’ from ‘iso_accept_cb’
Error: CPPCHECK_WARNING (CWE-476): [#def231]
bluez-5.81/tools/isotest.c:518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def232]
bluez-5.81/tools/isotest.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
bluez-5.81/tools/isotest.c:519:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘addr’
bluez-5.81/tools/isotest.c:1202:5: enter_function: entry to ‘main’
bluez-5.81/tools/isotest.c:1420:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/isotest.c:1425:9: branch_false: ...to here
bluez-5.81/tools/isotest.c:1432:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/isotest.c:1433:17: branch_true: ...to here
bluez-5.81/tools/isotest.c:1435:25: call_function: calling ‘do_listen’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def234]
bluez-5.81/tools/isotest.c:522: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def235]
bluez-5.81/tools/isotest.c:527: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def236]
bluez-5.81/tools/isotest.c:528: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def237]
bluez-5.81/tools/isotest.c:531: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: addr
Error: CPPCHECK_WARNING (CWE-476): [#def238]
bluez-5.81/tools/isotest.c:1214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iso_qos
Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
bluez-5.81/tools/isotest.c:1214:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iso_qos’
bluez-5.81/tools/isotest.c:1212:19: acquire_memory: this call could return NULL
bluez-5.81/tools/isotest.c:1214:9: danger: ‘malloc(60)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-666): [#def240]
bluez-5.81/tools/l2cap-tester.c:1636:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
bluez-5.81/tools/l2cap-tester.c:1886:12: enter_function: entry to ‘connect_socket’
bluez-5.81/tools/l2cap-tester.c:1894:14: call_function: calling ‘create_l2cap_sock’ from ‘connect_socket’
bluez-5.81/tools/l2cap-tester.c:1894:14: return_function: returning to ‘connect_socket’ from ‘create_l2cap_sock’
bluez-5.81/tools/l2cap-tester.c:1896:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/l2cap-tester.c:1905:12: branch_false: ...to here
bluez-5.81/tools/l2cap-tester.c:1905:12: branch_false: following ‘false’ branch (when ‘defer == 0’)...
bluez-5.81/tools/l2cap-tester.c:1918:45: branch_false: ...to here
bluez-5.81/tools/l2cap-tester.c:1917:13: call_function: calling ‘connect_l2cap_impl’ from ‘connect_socket’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
bluez-5.81/tools/l2cap-tester.c:2296:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘g_io_channel_unix_get_fd(io)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def242]
bluez-5.81/tools/mesh-gatt/crypto.c:376:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&mic’
bluez-5.81/tools/mesh-gatt/crypto.c:994:6: enter_function: entry to ‘mesh_crypto_packet_encode’
bluez-5.81/tools/mesh-gatt/crypto.c:1005:13: branch_false: following ‘false’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1009:17: branch_false: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1028:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/mesh-gatt/crypto.c:1029:22: branch_true: ...to here
bluez-5.81/tools/mesh-gatt/crypto.c:1029:22: call_function: calling ‘mesh_crypto_aes_ccm_encrypt’ from ‘mesh_crypto_packet_encode’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
bluez-5.81/tools/mesh-gatt/prov-db.c:56:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
bluez-5.81/tools/mesh-gatt/prov-db.c:1472:13: enter_function: entry to ‘read_json_db’
bluez-5.81/tools/mesh-gatt/prov-db.c:1489:15: call_function: calling ‘prov_file_read’ from ‘read_json_db’
Error: CPPCHECK_WARNING (CWE-457): [#def244]
bluez-5.81/tools/mesh/agent.c:94: error[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def245]
bluez-5.81/tools/meshctl.c:762: warning[uninitvar]: Uninitialized variable: addr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
bluez-5.81/tools/mpris-proxy.c:1915:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
bluez-5.81/tools/mpris-proxy.c:2343:13: enter_function: entry to ‘proxy_added’
bluez-5.81/tools/mpris-proxy.c:2351:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
bluez-5.81/tools/mpris-proxy.c:2358:21: branch_false: ...to here
bluez-5.81/tools/mpris-proxy.c:2358:19: branch_true: following ‘true’ branch (when the strings are equal)...
bluez-5.81/tools/mpris-proxy.c:2359:17: branch_true: ...to here
bluez-5.81/tools/mpris-proxy.c:2360:17: call_function: calling ‘register_player’ from ‘proxy_added’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def247]
bluez-5.81/tools/obex-server-tool.c:133:20: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
bluez-5.81/tools/obex-server-tool.c:120:17: release_memory: ‘type’ is NULL
bluez-5.81/tools/obex-server-tool.c:123:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/obex-server-tool.c:126:17: branch_false: ...to here
bluez-5.81/tools/obex-server-tool.c:126:17: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:129:62: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:128:9: branch_false: following ‘false’ branch...
bluez-5.81/tools/obex-server-tool.c:128:55: branch_false: ...to here
bluez-5.81/tools/obex-server-tool.c:133:20: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:133:20: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:133:20: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:133:20: danger: argument 1 (‘name’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def248]
bluez-5.81/tools/obex-server-tool.c:192:20: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
bluez-5.81/tools/obex-server-tool.c:179:17: release_memory: ‘type’ is NULL
bluez-5.81/tools/obex-server-tool.c:182:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/obex-server-tool.c:185:17: branch_false: ...to here
bluez-5.81/tools/obex-server-tool.c:185:17: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:188:62: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:187:9: branch_false: following ‘false’ branch...
bluez-5.81/tools/obex-server-tool.c:187:55: branch_false: ...to here
bluez-5.81/tools/obex-server-tool.c:192:20: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:192:20: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:192:20: release_memory: ‘name’ is NULL
bluez-5.81/tools/obex-server-tool.c:192:20: danger: argument 1 (‘name’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
bluez-5.81/tools/parser/parser.h:129:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
bluez-5.81/tools/parser/l2cap.c:1199:6: enter_function: entry to ‘l2cap_dump’
bluez-5.81/tools/parser/l2cap.c:1209:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/parser/l2cap.c:1215:20: branch_false: ...to here
bluez-5.81/tools/parser/l2cap.c:1215:20: branch_true: following ‘true’ branch...
bluez-5.81/tools/parser/l2cap.c:1217:25: branch_true: ...to here
bluez-5.81/tools/parser/l2cap.c:1217:25: call_function: calling ‘l2cap_parse’ from ‘l2cap_dump’
Error: GCC_ANALYZER_WARNING: [#def250]
bluez-5.81/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): [#def251]
bluez-5.81/tools/rfcomm-tester.c:422:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
bluez-5.81/tools/rfcomm-tester.c:628:13: enter_function: entry to ‘test_connect’
bluez-5.81/tools/rfcomm-tester.c:644:14: call_function: calling ‘create_rfcomm_sock’ from ‘test_connect’
bluez-5.81/tools/rfcomm-tester.c:644:14: return_function: returning to ‘test_connect’ from ‘create_rfcomm_sock’
bluez-5.81/tools/rfcomm-tester.c:646:13: call_function: calling ‘connect_rfcomm_sock’ from ‘test_connect’
Error: GCC_ANALYZER_WARNING: [#def252]
bluez-5.81/tools/rfcomm-tester.c:422:15: warning[-Wanalyzer-fd-use-without-check]: ‘connect’ on possibly invalid file descriptor ‘sk’
bluez-5.81/tools/rfcomm-tester.c:628:13: enter_function: entry to ‘test_connect’
bluez-5.81/tools/rfcomm-tester.c:644:14: call_function: calling ‘create_rfcomm_sock’ from ‘test_connect’
bluez-5.81/tools/rfcomm-tester.c:644:14: return_function: returning to ‘test_connect’ from ‘create_rfcomm_sock’
bluez-5.81/tools/rfcomm-tester.c:646:13: call_function: calling ‘connect_rfcomm_sock’ from ‘test_connect’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def253]
bluez-5.81/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): [#def254]
bluez-5.81/tools/rfcomm.c:354:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&devname, 256)’
bluez-5.81/tools/rfcomm.c:283:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
bluez-5.81/tools/rfcomm.c:288:9: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:297:12: branch_false: following ‘false’ branch (when ‘sk >= 0’)...
bluez-5.81/tools/rfcomm.c:302:13: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:312:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:318:13: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:318:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:324:9: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:325:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:331:9: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:340:12: branch_false: following ‘false’ branch (when ‘dev >= 0’)...
bluez-5.81/tools/rfcomm.c:346:9: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:347:16: branch_true: following ‘true’ branch...
bluez-5.81/tools/rfcomm.c:348:21: branch_true: ...to here
bluez-5.81/tools/rfcomm.c:348:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:353:17: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:354:27: acquire_resource: opened here
bluez-5.81/tools/rfcomm.c:354:20: danger: ‘open(&devname, 256)’ leaks here; was opened at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def255]
bluez-5.81/tools/rfcomm.c:515:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&devname, 256)’
bluez-5.81/tools/rfcomm.c:438:12: branch_false: following ‘false’ branch (when ‘sk >= 0’)...
bluez-5.81/tools/rfcomm.c:443:9: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:459:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:465:58: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:473:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:480:13: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:500:12: branch_false: following ‘false’ branch (when ‘dev >= 0’)...
bluez-5.81/tools/rfcomm.c:507:9: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:508:16: branch_true: following ‘true’ branch...
bluez-5.81/tools/rfcomm.c:509:21: branch_true: ...to here
bluez-5.81/tools/rfcomm.c:509:20: branch_false: following ‘false’ branch...
bluez-5.81/tools/rfcomm.c:514:17: branch_false: ...to here
bluez-5.81/tools/rfcomm.c:515:27: acquire_resource: opened here
bluez-5.81/tools/rfcomm.c:515:20: danger: ‘open(&devname, 256)’ leaks here; was opened at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def256]
bluez-5.81/tools/sco-tester.c:682:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sk’
bluez-5.81/tools/sco-tester.c:676:14: acquire_resource: socket created here
bluez-5.81/tools/sco-tester.c:678:12: branch_false: following ‘false’ branch (when ‘sk >= 0’)...
bluez-5.81/tools/sco-tester.c:685:26: branch_false: ...to here
bluez-5.81/tools/sco-tester.c:686:12: branch_true: following ‘true’ branch...
bluez-5.81/tools/sco-tester.c:687:17: branch_true: ...to here
bluez-5.81/tools/sco-tester.c:682:24: danger: ‘sk’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-666): [#def257]
bluez-5.81/tools/sco-tester.c:722:15: warning[-Wanalyzer-fd-phase-mismatch]: ‘connect’ on file descriptor ‘sk’ in wrong phase
bluez-5.81/tools/sco-tester.c:847:13: enter_function: entry to ‘test_connect’
bluez-5.81/tools/sco-tester.c:853:14: call_function: calling ‘create_sco_sock’ from ‘test_connect’
bluez-5.81/tools/sco-tester.c:853:14: return_function: returning to ‘test_connect’ from ‘create_sco_sock’
bluez-5.81/tools/sco-tester.c:854:12: branch_false: following ‘false’ branch...
bluez-5.81/tools/sco-tester.c:859:13: branch_false: ...to here
bluez-5.81/tools/sco-tester.c:859:13: call_function: calling ‘connect_sco_sock’ from ‘test_connect’
Error: CPPCHECK_WARNING (CWE-457): [#def258]
bluez-5.81/tools/test-runner.c:954: warning[uninitvar]: Uninitialized variable: argv
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
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-17.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | bluez-5.81-2.fc43 |
store-results-to | /tmp/tmpeorz2epa/bluez-5.81-2.fc43.tar.xz |
time-created | 2025-04-25 12:09:47 |
time-finished | 2025-04-25 12:13:34 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpeorz2epa/bluez-5.81-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpeorz2epa/bluez-5.81-2.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |