libnice-0.1.22-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libnice-0.1.22-build/libnice-0.1.22/agent/agent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def2]
libnice-0.1.22-build/libnice-0.1.22/agent/agent.c:4587: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 4585|     if (message->from == NULL) {
# 4586|       nice_address_init (&from);
# 4587|->     message->from = &from;
# 4588|     }
# 4589|   

Error: CPPCHECK_WARNING: [#def3]
libnice-0.1.22-build/libnice-0.1.22/agent/component.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
libnice-0.1.22-build/libnice-0.1.22/agent/conncheck.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libnice-0.1.22-build/libnice-0.1.22/agent/discovery.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libnice-0.1.22-build/libnice-0.1.22/agent/interfaces.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
libnice-0.1.22-build/libnice-0.1.22/agent/outputstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
libnice-0.1.22-build/libnice-0.1.22/agent/pseudotcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libnice-0.1.22-build/libnice-0.1.22/examples/sdp-example.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libnice-0.1.22-build/libnice-0.1.22/examples/simple-example.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libnice-0.1.22-build/libnice-0.1.22/examples/threaded-example.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libnice-0.1.22-build/libnice-0.1.22/gst/gstnicesink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libnice-0.1.22-build/libnice-0.1.22/redhat-linux-build/libnice-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def14]
libnice-0.1.22-build/libnice-0.1.22/redhat-linux-build/libnice-scan.c:214:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'

Error: CPPCHECK_WARNING: [#def15]
libnice-0.1.22-build/libnice-0.1.22/redhat-linux-build/tmp-introspectg8hc31iu/Nice-0.1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def16]
libnice-0.1.22-build/libnice-0.1.22/redhat-linux-build/tmp-introspectg8hc31iu/Nice-0.1.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def17]
libnice-0.1.22-build/libnice-0.1.22/socket/http.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libnice-0.1.22-build/libnice-0.1.22/socket/pseudossl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libnice-0.1.22-build/libnice-0.1.22/socket/socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libnice-0.1.22-build/libnice-0.1.22/socket/socks5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libnice-0.1.22-build/libnice-0.1.22/socket/tcp-active.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libnice-0.1.22-build/libnice-0.1.22/socket/tcp-bsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libnice-0.1.22-build/libnice-0.1.22/socket/tcp-passive.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libnice-0.1.22-build/libnice-0.1.22/socket/udp-bsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libnice-0.1.22-build/libnice-0.1.22/socket/udp-turn-over-tcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libnice-0.1.22-build/libnice-0.1.22/socket/udp-turn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libnice-0.1.22-build/libnice-0.1.22/stun/debug.c: scope_hint: In function ‘stun_debug_bytes’
libnice-0.1.22-build/libnice-0.1.22/stun/debug.c:100:12: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bytes’
#   98|   
#   99|     bytes = malloc (prefix_len + 2 + (len * 2) + 1);
#  100|->   bytes[0] = 0;
#  101|     strcpy (bytes, prefix);
#  102|     strcpy (bytes + prefix_len, "0x");

Error: CPPCHECK_WARNING: [#def28]
libnice-0.1.22-build/libnice-0.1.22/stun/stunagent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libnice-0.1.22-build/libnice-0.1.22/stun/stunmessage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def30]
libnice-0.1.22-build/libnice-0.1.22/stun/tests/test-bind.c:216:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  214|     assert (val == 0);
#  215|   
#  216|->   fd = socket (addr.ss_family, SOCK_DGRAM, 0);
#  217|     assert (fd != -1);
#  218|   

Error: CLANG_WARNING: [#def31]
libnice-0.1.22-build/libnice-0.1.22/stun/tests/test-bind.c:291:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  289|   
#  290|     /* Allocate a client socket and connect to server */
#  291|->   fd = socket (addr.ss_family, SOCK_DGRAM, 0);
#  292|     assert (fd != -1);
#  293|   

Error: CPPCHECK_WARNING: [#def32]
libnice-0.1.22-build/libnice-0.1.22/stun/tests/test-format.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
libnice-0.1.22-build/libnice-0.1.22/stun/tools/stunbdc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def34]
libnice-0.1.22-build/libnice-0.1.22/stun/tools/stund.c: scope_hint: In function ‘exit_handler’
libnice-0.1.22-build/libnice-0.1.22/stun/tools/stund.c:282:3: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
libnice-0.1.22-build/libnice-0.1.22/stun/tools/stund.c:282:3: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#  280|   {
#  281|     (void)signum;
#  282|->   exit (0);
#  283|   }
#  284|   

Error: CPPCHECK_WARNING (CWE-476): [#def35]
libnice-0.1.22-build/libnice-0.1.22/stun/usages/bind.c:236: warning[nullPointer]: Possible null pointer dereference: srv
#  234|   
#  235|     tr->dstlen = srvlen;
#  236|->   memcpy (&tr->dst, srv, srvlen);
#  237|   
#  238|     return STUN_USAGE_TRANS_RETURN_SUCCESS;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
libnice-0.1.22-build/libnice-0.1.22/stun/usages/bind.c: scope_hint: In function ‘stun_trans_init’
libnice-0.1.22-build/libnice-0.1.22/stun/usages/bind.c:236:3: warning[-Wanalyzer-null-argument]: use of NULL ‘srv’ where non-null expected
libnice-0.1.22-build/libnice-0.1.22/stun/usages/bind.c:69: included_from: Included from here.
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  234|   
#  235|     tr->dstlen = srvlen;
#  236|->   memcpy (&tr->dst, srv, srvlen);
#  237|   
#  238|     return STUN_USAGE_TRANS_RETURN_SUCCESS;

Error: CPPCHECK_WARNING: [#def37]
libnice-0.1.22-build/libnice-0.1.22/stun/usages/ice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
libnice-0.1.22-build/libnice-0.1.22/stun/usages/ice.c: scope_hint: In function ‘stun_usage_ice_conncheck_create’
libnice-0.1.22-build/libnice-0.1.22/stun/usages/ice.c:116:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
libnice-0.1.22-build/libnice-0.1.22/stun/usages/ice.c:44: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  114|       assert (attribute_len >= identifier_len);
#  115|       buf = malloc(attribute_len);
#  116|->     memset(buf, 0, attribute_len);
#  117|       memcpy(buf, candidate_identifier, identifier_len);
#  118|   

Error: CPPCHECK_WARNING: [#def39]
libnice-0.1.22-build/libnice-0.1.22/stun/usages/turn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
libnice-0.1.22-build/libnice-0.1.22/tests/test-bsd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def41]
libnice-0.1.22-build/libnice-0.1.22/tests/test-bsd.c:160: error[uninitvar]: Uninitialized variable: &local_out_message
#  158|   
#  159|     /* And again with messages. */
#  160|->   g_assert_cmpint (nice_socket_send_messages (sock, &tmp,
#  161|         &local_out_message, 0), ==, 0);
#  162|     g_assert_cmpint (nice_socket_send_messages (sock, &tmp, NULL, 0), ==, 0);

Error: CPPCHECK_WARNING: [#def42]
libnice-0.1.22-build/libnice-0.1.22/tests/test-build-io-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
libnice-0.1.22-build/libnice-0.1.22/tests/test-bytestream-tcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
libnice-0.1.22-build/libnice-0.1.22/tests/test-consent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def45]
libnice-0.1.22-build/libnice-0.1.22/tests/test-consent.c:493:58: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  491|     if (stun_server) {
#  492|       g_object_set (G_OBJECT (lagent), "stun-server", stun_server,  NULL);
#  493|->     g_object_set (G_OBJECT (lagent), "stun-server-port", atoi (stun_server_port),  NULL);
#  494|       g_object_set (G_OBJECT (ragent), "stun-server", stun_server,  NULL);
#  495|       g_object_set (G_OBJECT (ragent), "stun-server-port", atoi (stun_server_port),  NULL);

Error: CPPCHECK_WARNING: [#def46]
libnice-0.1.22-build/libnice-0.1.22/tests/test-different-number-streams.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
libnice-0.1.22-build/libnice-0.1.22/tests/test-drop-invalid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
libnice-0.1.22-build/libnice-0.1.22/tests/test-fallback.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def49]
libnice-0.1.22-build/libnice-0.1.22/tests/test-fallback.c:543:58: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  541|     if (stun_server) {
#  542|       g_object_set (G_OBJECT (lagent), "stun-server", stun_server,  NULL);
#  543|->     g_object_set (G_OBJECT (lagent), "stun-server-port", atoi (stun_server_port),  NULL);
#  544|       g_object_set (G_OBJECT (ragent), "stun-server", stun_server,  NULL);
#  545|       g_object_set (G_OBJECT (ragent), "stun-server-port", atoi (stun_server_port),  NULL);

Error: CPPCHECK_WARNING: [#def50]
libnice-0.1.22-build/libnice-0.1.22/tests/test-fullmode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def51]
libnice-0.1.22-build/libnice-0.1.22/tests/test-fullmode.c:943:58: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  941|     if (stun_server) {
#  942|       g_object_set (G_OBJECT (lagent), "stun-server", stun_server,  NULL);
#  943|->     g_object_set (G_OBJECT (lagent), "stun-server-port", atoi (stun_server_port),  NULL);
#  944|       g_object_set (G_OBJECT (ragent), "stun-server", stun_server,  NULL);
#  945|       g_object_set (G_OBJECT (ragent), "stun-server-port", atoi (stun_server_port),  NULL);

Error: CPPCHECK_WARNING: [#def52]
libnice-0.1.22-build/libnice-0.1.22/tests/test-icetcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
libnice-0.1.22-build/libnice-0.1.22/tests/test-interfaces.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
libnice-0.1.22-build/libnice-0.1.22/tests/test-io-stream-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
libnice-0.1.22-build/libnice-0.1.22/tests/test-io-stream-pollable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
libnice-0.1.22-build/libnice-0.1.22/tests/test-io-stream-thread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
libnice-0.1.22-build/libnice-0.1.22/tests/test-new-trickle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
libnice-0.1.22-build/libnice-0.1.22/tests/test-nomination.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
libnice-0.1.22-build/libnice-0.1.22/tests/test-pseudotcp-fin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def60]
libnice-0.1.22-build/libnice-0.1.22/tests/test-pseudotcp-fin.c:189: error[legacyUninitvar]: Uninitialized variable: queue
#  187|   
#  188|     segment = g_bytes_new (buffer, len);
#  189|->   g_queue_push_tail (queue, segment);
#  190|   
#  191|     return WR_SUCCESS;

Error: CPPCHECK_WARNING: [#def61]
libnice-0.1.22-build/libnice-0.1.22/tests/test-pseudotcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
libnice-0.1.22-build/libnice-0.1.22/tests/test-restart.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def63]
libnice-0.1.22-build/libnice-0.1.22/tests/test-restart.c:462:58: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  460|     if (stun_server) {
#  461|       g_object_set (G_OBJECT (lagent), "stun-server", stun_server,  NULL);
#  462|->     g_object_set (G_OBJECT (lagent), "stun-server-port", atoi (stun_server_port),  NULL);
#  463|       g_object_set (G_OBJECT (ragent), "stun-server", stun_server,  NULL);
#  464|       g_object_set (G_OBJECT (ragent), "stun-server-port", atoi (stun_server_port),  NULL);

Error: CPPCHECK_WARNING: [#def64]
libnice-0.1.22-build/libnice-0.1.22/tests/test-send-recv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
libnice-0.1.22-build/libnice-0.1.22/tests/test-tcp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
libnice-0.1.22-build/libnice-0.1.22/tests/test-thread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def67]
libnice-0.1.22-build/libnice-0.1.22/tests/test-thread.c:254:58: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  252|     if (stun_server) {
#  253|       g_object_set (G_OBJECT (lagent), "stun-server", stun_server,  NULL);
#  254|->     g_object_set (G_OBJECT (lagent), "stun-server-port", atoi (stun_server_port),  NULL);
#  255|       g_object_set (G_OBJECT (ragent), "stun-server", stun_server,  NULL);
#  256|       g_object_set (G_OBJECT (ragent), "stun-server-port", atoi (stun_server_port),  NULL);

Error: CPPCHECK_WARNING: [#def68]
libnice-0.1.22-build/libnice-0.1.22/tests/test-trickle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def69]
libnice-0.1.22-build/libnice-0.1.22/tests/test-turn.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def70]
libnice-0.1.22-build/libnice-0.1.22/tests/test-udp-turn-fragmentation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
libnice-0.1.22-build/libnice-0.1.22/tests/test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-232.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibnice-0.1.22-1.fc41
store-results-to/tmp/tmpmecjbkkl/libnice-0.1.22-1.fc41.tar.xz
time-created2024-07-03 15:53:05
time-finished2024-07-03 15:55:38
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmecjbkkl/libnice-0.1.22-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpmecjbkkl/libnice-0.1.22-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9