Task #1312 - wget2-2.1.0-11.fc41/scan-results.err
back to task #1312download
Error: CPPCHECK_WARNING: 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: 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: 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: 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: 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: 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: 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): 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): 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): 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: 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: 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): 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): 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): 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: 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): 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: 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: 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: 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: 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: 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): 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): 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: 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: 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: 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: 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): 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): 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): 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): 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): 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: 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: 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: 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: 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): 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: 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: 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: 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): 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): 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): 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: 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: 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): 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: 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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): 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): 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): 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): 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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: 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: 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: 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: 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: 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): 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): 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| }