wget2-2.1.0-11.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
wget2-2.1.0-build/wget2-2.1.0/examples/batch_loader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
wget2-2.1.0-build/wget2-2.1.0/examples/check_url_types.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
wget2-2.1.0-build/wget2-2.1.0/examples/getstream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def4]
wget2-2.1.0-build/wget2-2.1.0/examples/print_html_urls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
wget2-2.1.0-build/wget2-2.1.0/lib/c-strcasestr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
wget2-2.1.0-build/wget2-2.1.0/lib/canonicalize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def7]
wget2-2.1.0-build/wget2-2.1.0/lib/canonicalize.c:387:15: warning[deadcode.DeadStores]: Value stored to 'name' is never read
#  385|                 /* Careful here, end may be a pointer into extra_buf... */
#  386|                 memmove (&extra_buf[n], end, len + 1);
#  387|->               name = end = memcpy (extra_buf, buf, n);
#  388|                 end_in_extra_buffer = true;
#  389|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
wget2-2.1.0-build/wget2-2.1.0/lib/fatal-signal.c: scope_hint: In function 'at_fatal_signal'
wget2-2.1.0-build/wget2-2.1.0/lib/fatal-signal.c:275:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_actions'
#  273|     if (mt) gl_lock_unlock (at_fatal_signal_lock);
#  274|   
#  275|->   return ret;
#  276|   }
#  277|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
wget2-2.1.0-build/wget2-2.1.0/lib/file-set.c: scope_hint: In function 'record_file'
wget2-2.1.0-build/wget2-2.1.0/lib/file-set.c:43:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
#   41|     {
#   42|       struct F_triple *ent_from_table = hash_insert (ht, ent);
#   43|->     if (ent_from_table == NULL)
#   44|         {
#   45|           /* Insertion failed due to lack of memory.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
wget2-2.1.0-build/wget2-2.1.0/lib/file-set.c:49:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
#   47|         }
#   48|   
#   49|->     if (ent_from_table != ent)
#   50|         {
#   51|           /* There was already a matching entry in the table, so ENT was

Error: CPPCHECK_WARNING: [#def11]
wget2-2.1.0-build/wget2-2.1.0/lib/findprog-in.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
wget2-2.1.0-build/wget2-2.1.0/lib/hash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
wget2-2.1.0-build/wget2-2.1.0/lib/ialloc.h:57:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'ximalloc'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'ximalloc'
#   55|   imalloc (idx_t s)
#   56|   {
#   57|->   return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem ();
#   58|   }
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
wget2-2.1.0-build/wget2-2.1.0/lib/ialloc.h:57:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'ximalloc'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'ximalloc'
#   55|   imalloc (idx_t s)
#   56|   {
#   57|->   return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem ();
#   58|   }
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
wget2-2.1.0-build/wget2-2.1.0/lib/ialloc.h:93:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xicalloc'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xicalloc'
#   91|         s = 0;
#   92|       }
#   93|->   return calloc (n, s);
#   94|   }
#   95|   

Error: CPPCHECK_WARNING: [#def16]
wget2-2.1.0-build/wget2-2.1.0/lib/localename.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
wget2-2.1.0-build/wget2-2.1.0/lib/localename.c: scope_hint: In function 'struniq'
wget2-2.1.0-build/wget2-2.1.0/lib/localename.c:2716:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
# 2714|       if (mt) gl_lock_unlock (struniq_lock);
# 2715|     }
# 2716|->   return new_node->contents;
# 2717|   }
# 2718|   

Error: CPPCHECK_WARNING: [#def18]
wget2-2.1.0-build/wget2-2.1.0/lib/mbsrtoc32s.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
wget2-2.1.0-build/wget2-2.1.0/lib/mbsrtowcs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
wget2-2.1.0-build/wget2-2.1.0/lib/md2-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
wget2-2.1.0-build/wget2-2.1.0/lib/printf-parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def23]
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c: scope_hint: In function 'nonintr_close'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:97:14: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:38: included_from: Included from here.
wget2-2.1.0-build/wget2-2.1.0/lib/filename.h:93:23: note: in definition of macro 'ISSLASH'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:167:13: note: in expansion of macro 'IS_ABSOLUTE_FILE_NAME'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:578:5: note: in expansion of macro 'close'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:578:5: note: in expansion of macro 'close'
#   95|   
#   96|     do
#   97|->     retval = close (fd);
#   98|     while (retval < 0 && errno == EINTR);
#   99|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c: scope_hint: In function 'create_pipe'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:190:18: warning[-Wanalyzer-malloc-leak]: leak of 'canonicalize_filename_mode(find_in_given_path(prog_path,  getenv("PATH"), 0, 0), 6)'
wget2-2.1.0-build/wget2-2.1.0/lib/filename.h:93:23: note: in definition of macro 'ISSLASH'
wget2-2.1.0-build/wget2-2.1.0/lib/spawn-pipe.c:167:13: note: in expansion of macro 'IS_ABSOLUTE_FILE_NAME'
#  188|                 prog_path = absolute_prog;
#  189|   
#  190|->               if (! IS_ABSOLUTE_FILE_NAME (prog_path))
#  191|                   abort ();
#  192|               }

Error: CPPCHECK_WARNING: [#def25]
wget2-2.1.0-build/wget2-2.1.0/lib/tempname.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
wget2-2.1.0-build/wget2-2.1.0/lib/utimens.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
wget2-2.1.0-build/wget2-2.1.0/lib/vasnprintf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
wget2-2.1.0-build/wget2-2.1.0/lib/wait-process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
wget2-2.1.0-build/wget2-2.1.0/lib/wait-process.c: scope_hint: In function 'register_slave_subprocess'
wget2-2.1.0-build/wget2-2.1.0/lib/wait-process.c:179:15: warning[-Wanalyzer-malloc-leak]: leak of 'new_slaves'
#  177|     slaves[slaves_count].child = child;
#  178|     slaves[slaves_count].used = 1;
#  179|->   slaves_count++;
#  180|   }
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xmalloc'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:22: included_from: Included from here.
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xmalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xmalloc'
#   43|   xmalloc (size_t s)
#   44|   {
#   45|->   return nonnull (malloc (s));
#   46|   }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xcalloc'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xcalloc'
#  296|   xcalloc (size_t n, size_t s)
#  297|   {
#  298|->   return nonnull (calloc (n, s));
#  299|   }
#  300|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xmemdup'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string,  strlen(string) + 1)'
wget2-2.1.0-build/wget2-2.1.0/lib/xmalloc.c: scope_hint: In function 'xmemdup'
#  312|   xmemdup (void const *p, size_t s)
#  313|   {
#  314|->   return memcpy (xmalloc (s), p, s);
#  315|   }
#  316|   

Error: CPPCHECK_WARNING: [#def34]
wget2-2.1.0-build/wget2-2.1.0/libwget/atom_url.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
wget2-2.1.0-build/wget2-2.1.0/libwget/bar.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
wget2-2.1.0-build/wget2-2.1.0/libwget/buffer_printf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
wget2-2.1.0-build/wget2-2.1.0/libwget/cookie.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def38]
wget2-2.1.0-build/wget2-2.1.0/libwget/cookie.c:283: warning[uninitvar]: Uninitialized variable: buf.data
#  281|   	wget_thread_mutex_unlock(cookie_db->mutex);
#  282|   
#  283|-> 	return init ? buf.data : NULL;
#  284|   }
#  285|   

Error: CPPCHECK_WARNING: [#def39]
wget2-2.1.0-build/wget2-2.1.0/libwget/cookie_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
wget2-2.1.0-build/wget2-2.1.0/libwget/css_tokenizer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-704): [#def42]
wget2-2.1.0-build/wget2-2.1.0/libwget/css_tokenizer.c:296:7: warning[-Wlto-type-mismatch]: type of 'yyalloc' does not match original declaration
#  296 | void *yyalloc ( yy_size_t , yyscan_t yyscanner );
#      |       ^
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c:64:7: note: type mismatch in parameter 2
#   64 | void *yyalloc(size_t size) {
#      |       ^
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c:64:7: note: type 'void' should match type 'void *'
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c:64:7: note: 'yyalloc' was previously declared here
#  294|   YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
#  295|   
#  296|-> void *yyalloc ( yy_size_t , yyscan_t yyscanner );
#  297|   void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
#  298|   void yyfree ( void * , yyscan_t yyscanner );

Error: COMPILER_WARNING (CWE-704): [#def43]
wget2-2.1.0-build/wget2-2.1.0/libwget/css_tokenizer.c:297:7: warning[-Wlto-type-mismatch]: type of 'yyrealloc' does not match original declaration
#  297 | void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
#      |       ^
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c:67:7: note: type mismatch in parameter 3
#   67 | void *yyrealloc(void *p, size_t size) {
#      |       ^
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c:67:7: note: type 'void' should match type 'void *'
wget2-2.1.0-build/wget2-2.1.0/libwget/css.c:67:7: note: 'yyrealloc' was previously declared here
#  295|   
#  296|   void *yyalloc ( yy_size_t , yyscan_t yyscanner );
#  297|-> void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
#  298|   void yyfree ( void * , yyscan_t yyscanner );
#  299|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
wget2-2.1.0-build/wget2-2.1.0/libwget/css_tokenizer.c: scope_hint: In function 'yy_init_buffer'
wget2-2.1.0-build/wget2-2.1.0/libwget/css_tokenizer.c:3498:26: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
# 3496|   	yy_flush_buffer( b , yyscanner);
# 3497|   
# 3498|-> 	b->yy_input_file = file;
# 3499|   	b->yy_fill_buffer = 1;
# 3500|   

Error: CPPCHECK_WARNING: [#def45]
wget2-2.1.0-build/wget2-2.1.0/libwget/decompressor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
wget2-2.1.0-build/wget2-2.1.0/libwget/dns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
wget2-2.1.0-build/wget2-2.1.0/libwget/dns.c: scope_hint: In function 'wget_dns_resolve'
wget2-2.1.0-build/wget2-2.1.0/libwget/dns.c:383:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'addrinfo'
#  381|   
#  382|   	if (dns->stats_callback) {
#  383|-> 		if (getnameinfo(addrinfo->ai_addr, addrinfo->ai_addrlen, adr, sizeof(adr), sport, sizeof(sport), NI_NUMERICHOST | NI_NUMERICSERV) == 0)
#  384|   			stats.ip = adr;
#  385|   		else

Error: CPPCHECK_WARNING: [#def48]
wget2-2.1.0-build/wget2-2.1.0/libwget/encoding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
wget2-2.1.0-build/wget2-2.1.0/libwget/encoding.c: scope_hint: In function 'wget_memiconv'
wget2-2.1.0-build/wget2-2.1.0/libwget/encoding.c:80:20: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open(dst_encoding,  src_encoding)'
#   78|   		iconv_t cd = iconv_open(dst_encoding, src_encoding);
#   79|   
#   80|-> 		if (cd != (iconv_t)-1) {
#   81|   			char *tmp = (char *) src; // iconv won't change where src points to, but changes tmp itself
#   82|   			size_t tmp_len = srclen;

Error: CPPCHECK_WARNING: [#def50]
wget2-2.1.0-build/wget2-2.1.0/libwget/hash_printf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
wget2-2.1.0-build/wget2-2.1.0/libwget/hashfile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
wget2-2.1.0-build/wget2-2.1.0/libwget/hashmap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
wget2-2.1.0-build/wget2-2.1.0/libwget/hpkp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
wget2-2.1.0-build/wget2-2.1.0/libwget/hpkp_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
wget2-2.1.0-build/wget2-2.1.0/libwget/hsts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
wget2-2.1.0-build/wget2-2.1.0/libwget/html_url.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
wget2-2.1.0-build/wget2-2.1.0/libwget/http.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def58]
wget2-2.1.0-build/wget2-2.1.0/libwget/http_highlevel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
wget2-2.1.0-build/wget2-2.1.0/libwget/http_parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
wget2-2.1.0-build/wget2-2.1.0/libwget/io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
wget2-2.1.0-build/wget2-2.1.0/libwget/iri.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
wget2-2.1.0-build/wget2-2.1.0/libwget/metalink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
wget2-2.1.0-build/wget2-2.1.0/libwget/net.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
wget2-2.1.0-build/wget2-2.1.0/libwget/netrc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
wget2-2.1.0-build/wget2-2.1.0/libwget/ocsp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c: scope_hint: In function 'wget_fd_popen3'
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c:114:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(pipefd_in[0], 0)'
#  112|   
#  113|   			// redirect STDIN to reader
#  114|-> 			if (dup2(pipefd_in[0], STDIN_FILENO) == -1)
#  115|   				error_printf_exit(_("Failed to dup2(%d,%d) (%d)\n"), pipefd_in[0], STDIN_FILENO, errno);
#  116|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c:124:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(pipefd_out[1], 1)'
#  122|   
#  123|   			// redirect STDOUT to writer
#  124|-> 			if (dup2(pipefd_out[1], STDOUT_FILENO) == -1)
#  125|   				error_printf_exit(_("Failed to dup2(%d,%d) (%d)\n"), pipefd_out[1], STDOUT_FILENO, errno);
#  126|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c:135:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(pipefd_err[1], 2)'
#  133|   
#  134|   				// redirect STDERR to writer
#  135|-> 				if (dup2(pipefd_err[1], STDERR_FILENO) == -1)
#  136|   					error_printf_exit(_("Failed to dup2(%d,%d) (%d)\n"), pipefd_err[1], STDERR_FILENO, errno);
#  137|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c:141:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(1, 2)'
#  139|   			} else {
#  140|   				// redirect STDERR to STDOUT
#  141|-> 				if (dup2(STDOUT_FILENO, STDERR_FILENO) == -1)
#  142|   					exit(EXIT_FAILURE);
#  143|   			}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c: scope_hint: In function 'wget_popen3'
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c:207:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fdin'
#  205|   	}
#  206|   
#  207|-> 	return pid;
#  208|   }
#  209|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
wget2-2.1.0-build/wget2-2.1.0/libwget/pipe.c:207:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fdout'
#  205|   	}
#  206|   
#  207|-> 	return pid;
#  208|   }
#  209|   

Error: CPPCHECK_WARNING: [#def73]
wget2-2.1.0-build/wget2-2.1.0/libwget/robots.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
wget2-2.1.0-build/wget2-2.1.0/libwget/rss_url.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def75]
wget2-2.1.0-build/wget2-2.1.0/libwget/sitemap_url.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def76]
wget2-2.1.0-build/wget2-2.1.0/libwget/tls_session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def77]
wget2-2.1.0-build/wget2-2.1.0/libwget/vector.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def78]
wget2-2.1.0-build/wget2-2.1.0/libwget/xml.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
wget2-2.1.0-build/wget2-2.1.0/src/blacklist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def80]
wget2-2.1.0-build/wget2-2.1.0/src/gpgme.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
wget2-2.1.0-build/wget2-2.1.0/src/job.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
wget2-2.1.0-build/wget2-2.1.0/src/log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
wget2-2.1.0-build/wget2-2.1.0/src/options.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def84]
wget2-2.1.0-build/wget2-2.1.0/src/options.c: scope_hint: In function 'init'
wget2-2.1.0-build/wget2-2.1.0/src/options.c:3336:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
wget2-2.1.0-build/wget2-2.1.0/src/options.c:56: included_from: Included from here.
wget2-2.1.0-build/wget2-2.1.0/src/wget_main.h:61:27: note: in definition of macro 'xfree'
wget2-2.1.0-build/wget2-2.1.0/src/wget_main.h:61:27: note: in definition of macro 'xfree'
wget2-2.1.0-build/wget2-2.1.0/src/options.c:3122:34: note: argument 1 of 'get_config_files' must be non-null
# 3334|   	log_init();
# 3335|   
# 3336|-> 	get_config_files(xdg_config_home, home_dir);
# 3337|   
# 3338|   	// first processing, to respect options that might influence output

Error: CPPCHECK_WARNING: [#def85]
wget2-2.1.0-build/wget2-2.1.0/src/plugin.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def86]
wget2-2.1.0-build/wget2-2.1.0/src/stats_site.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def87]
wget2-2.1.0-build/wget2-2.1.0/src/utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def88]
wget2-2.1.0-build/wget2-2.1.0/src/wget.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def89]
wget2-2.1.0-build/wget2-2.1.0/tests/libtest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def90]
wget2-2.1.0-build/wget2-2.1.0/tests/libtest.c: scope_hint: In function 'wget_test'
wget2-2.1.0-build/wget2-2.1.0/tests/libtest.c:1682:58: warning[-Wanalyzer-null-argument]: use of NULL 'existing_content' where non-null expected
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
# 1680|   						existing_content = existing_files[it].content;
# 1681|   
# 1682|-> 					ssize_t nbytes = write(fd, existing_content, strlen(existing_content));
# 1683|   					close(fd);
# 1684|   

Error: CPPCHECK_WARNING (CWE-457): [#def91]
wget2-2.1.0-build/wget2-2.1.0/tests/libtest.c:1764: warning[uninitvar]: Uninitialized variable: rc
# 1762|   			rc = system(cmd->data);
# 1763|   		*/
# 1764|-> 		if (!WIFEXITED(rc)) {
# 1765|   			wget_error_printf_exit("Unexpected error code %d, expected %d [%s]\n", rc, expected_error_code, options);
# 1766|   		}

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-224.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namewget2-2.1.0-11.fc41
store-results-to/tmp/tmpcmu7b5rf/wget2-2.1.0-11.fc41.tar.xz
time-created2024-07-03 18:22:00
time-finished2024-07-03 18:24:43
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcmu7b5rf/wget2-2.1.0-11.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcmu7b5rf/wget2-2.1.0-11.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9