Task #811 - libnice-0.1.22-1.fc41/scan-results.err

back to task #811
download
Error: CPPCHECK_WARNING:
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):
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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):
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:
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:
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:
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:
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:
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:
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):
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):
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):
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:
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):
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:
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:
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):
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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):
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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.