Error: GCC_ANALYZER_WARNING (CWE-835): [#def1] make-4.4.1-build/make-4.4.1/src/function.c:17: included_from: Included from here. make-4.4.1-build/make-4.4.1/src/function.c: scope_hint: In function ‘abspath’ make-4.4.1-build/make-4.4.1/src/function.c:2240:42: warning[-Wanalyzer-infinite-loop]: infinite loop make-4.4.1-build/make-4.4.1/src/makeint.h:405:28: note: in definition of macro ‘ANY_SET’ make-4.4.1-build/make-4.4.1/src/makeint.h:476:25: note: in expansion of macro ‘STOP_SET’ make-4.4.1-build/make-4.4.1/src/function.c:2240:28: note: in expansion of macro ‘ISDIRSEP’ make-4.4.1-build/make-4.4.1/src/makeint.h:405:28: note: in definition of macro ‘ANY_SET’ make-4.4.1-build/make-4.4.1/src/makeint.h:476:25: note: in expansion of macro ‘STOP_SET’ make-4.4.1-build/make-4.4.1/src/function.c:2240:28: note: in expansion of macro ‘ISDIRSEP’ make-4.4.1-build/make-4.4.1/src/makeint.h:405:28: note: in definition of macro ‘ANY_SET’ make-4.4.1-build/make-4.4.1/src/makeint.h:476:25: note: in expansion of macro ‘STOP_SET’ make-4.4.1-build/make-4.4.1/src/function.c:2240:28: note: in expansion of macro ‘ISDIRSEP’ # 2238| /* Back up to previous component, ignore if at root already. */ # 2239| if (dest > apath + root_len) # 2240|-> for (--dest; ! ISDIRSEP (dest[-1]); --dest) # 2241| ; # 2242| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def2] make-4.4.1-build/make-4.4.1/src/function.c: scope_hint: In function ‘func_file’ make-4.4.1-build/make-4.4.1/src/function.c:2370:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘<unknown>’ make-4.4.1-build/make-4.4.1/src/makeint.h:883:51: note: in definition of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ # 2368| int nl = l == 0 || argv[1][l-1] != '\n'; # 2369| # 2370|-> if (fputs (argv[1], fp) == EOF || (nl && fputc ('\n', fp) == EOF)) # 2371| OSS (fatal, reading_file, _("write: %s: %s"), nm, strerror (errno)); # 2372| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] make-4.4.1-build/make-4.4.1/src/function.c:2370:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ make-4.4.1-build/make-4.4.1/src/makeint.h:883:51: note: in definition of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ # 2368| int nl = l == 0 || argv[1][l-1] != '\n'; # 2369| # 2370|-> if (fputs (argv[1], fp) == EOF || (nl && fputc ('\n', fp) == EOF)) # 2371| OSS (fatal, reading_file, _("write: %s: %s"), nm, strerror (errno)); # 2372| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def4] make-4.4.1-build/make-4.4.1/src/function.c:2370:49: warning[-Wanalyzer-file-leak]: leak of FILE ‘<unknown>’ make-4.4.1-build/make-4.4.1/src/makeint.h:883:51: note: in definition of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ # 2368| int nl = l == 0 || argv[1][l-1] != '\n'; # 2369| # 2370|-> if (fputs (argv[1], fp) == EOF || (nl && fputc ('\n', fp) == EOF)) # 2371| OSS (fatal, reading_file, _("write: %s: %s"), nm, strerror (errno)); # 2372| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] make-4.4.1-build/make-4.4.1/src/function.c:2370:49: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ make-4.4.1-build/make-4.4.1/src/makeint.h:883:51: note: in definition of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2356:7: note: in expansion of macro ‘ENULLLOOP’ # 2368| int nl = l == 0 || argv[1][l-1] != '\n'; # 2369| # 2370|-> if (fputs (argv[1], fp) == EOF || (nl && fputc ('\n', fp) == EOF)) # 2371| OSS (fatal, reading_file, _("write: %s: %s"), nm, strerror (errno)); # 2372| } Error: GCC_ANALYZER_WARNING (CWE-775): [#def6] make-4.4.1-build/make-4.4.1/src/function.c:2421:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘<unknown>’ make-4.4.1-build/make-4.4.1/src/makeint.h:883:51: note: in definition of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2399:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2399:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/makeint.h:79: included_from: Included from here. # 2419| } # 2420| if (ferror (fp)) # 2421|-> if (errno != EINTR) # 2422| OSS (fatal, reading_file, _("read: %s: %s"), nm, strerror (errno)); # 2423| if (feof (fp)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] make-4.4.1-build/make-4.4.1/src/function.c:2421:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ make-4.4.1-build/make-4.4.1/src/makeint.h:883:51: note: in definition of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2399:7: note: in expansion of macro ‘ENULLLOOP’ make-4.4.1-build/make-4.4.1/src/function.c:2399:7: note: in expansion of macro ‘ENULLLOOP’ # 2419| } # 2420| if (ferror (fp)) # 2421|-> if (errno != EINTR) # 2422| OSS (fatal, reading_file, _("read: %s: %s"), nm, strerror (errno)); # 2423| if (feof (fp)) Error: GCC_ANALYZER_WARNING (CWE-688): [#def8] make-4.4.1-build/make-4.4.1/src/implicit.c: scope_hint: In function ‘pattern_search’ make-4.4.1-build/make-4.4.1/src/implicit.c:218:20: warning[-Wanalyzer-null-argument]: use of NULL ‘filename’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 216| # 217| /* Length of FILENAME. */ # 218|-> size_t namelen = strlen (filename); # 219| # 220| /* The last slash in FILENAME (or nil if there is none). */ Error: GCC_ANALYZER_WARNING (CWE-835): [#def9] make-4.4.1-build/make-4.4.1/src/misc.c:391:26: warning[-Wanalyzer-infinite-loop]: infinite loop make-4.4.1-build/make-4.4.1/src/makeint.h:405:28: note: in definition of macro ‘ANY_SET’ make-4.4.1-build/make-4.4.1/src/makeint.h:471:25: note: in expansion of macro ‘STOP_SET’ make-4.4.1-build/make-4.4.1/src/misc.c:391:12: note: in expansion of macro ‘END_OF_TOKEN’ make-4.4.1-build/make-4.4.1/src/misc.c: scope_hint: In function ‘find_next_token’ make-4.4.1-build/make-4.4.1/src/makeint.h:405:28: note: in definition of macro ‘ANY_SET’ make-4.4.1-build/make-4.4.1/src/makeint.h:471:25: note: in expansion of macro ‘STOP_SET’ make-4.4.1-build/make-4.4.1/src/misc.c:391:12: note: in expansion of macro ‘END_OF_TOKEN’ make-4.4.1-build/make-4.4.1/src/makeint.h:405:28: note: in definition of macro ‘ANY_SET’ make-4.4.1-build/make-4.4.1/src/makeint.h:471:25: note: in expansion of macro ‘STOP_SET’ make-4.4.1-build/make-4.4.1/src/misc.c:391:12: note: in expansion of macro ‘END_OF_TOKEN’ # 389| end_of_token (const char *s) # 390| { # 391|-> while (! END_OF_TOKEN (*s)) # 392| ++s; # 393| return (char *)s; Error: GCC_ANALYZER_WARNING (CWE-688): [#def10] make-4.4.1-build/make-4.4.1/src/read.c: scope_hint: In function ‘eval’ make-4.4.1-build/make-4.4.1/src/read.c:716:7: warning[-Wanalyzer-null-argument]: use of NULL ‘collapsed’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null # 714| collapsed = xmalloc (collapsed_length); # 715| } # 716|-> strcpy (collapsed, line); # 717| /* Collapse continuation lines. */ # 718| collapse_continuations (collapsed); Error: CPPCHECK_WARNING (CWE-758): [#def11] make-4.4.1-build/make-4.4.1/src/read.c:3505: warning[objectIndex]: The address of variable 'name' might be accessed at non-zero index. # 3503| { # 3504| /* Try to glob on MEMNAME within the archive. */ # 3505|-> struct nameseq *found = ar_glob (nlist[i], memname, size); # 3506| if (! found) # 3507| /* No matches. Use MEMNAME as-is. */ Error: CPPCHECK_WARNING (CWE-758): [#def12] make-4.4.1-build/make-4.4.1/src/read.c:3508: warning[objectIndex]: The address of variable 'name' might be accessed at non-zero index. # 3506| if (! found) # 3507| /* No matches. Use MEMNAME as-is. */ # 3508|-> NEWELT (concat (5, prefix, nlist[i], "(", memname, ")")); # 3509| else # 3510| { Error: CPPCHECK_WARNING (CWE-758): [#def13] make-4.4.1-build/make-4.4.1/src/read.c:3535: warning[objectIndex]: The address of variable 'name' might be accessed at non-zero index. # 3533| else # 3534| #endif /* !NO_ARCHIVES */ # 3535|-> NEWELT (concat (2, prefix, nlist[i])); # 3536| # 3537| if (globme) Error: GCC_ANALYZER_WARNING (CWE-476): [#def14] make-4.4.1-build/make-4.4.1/src/variable.c: scope_hint: In function ‘do_variable_definition’ make-4.4.1-build/make-4.4.1/src/variable.c:1582:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘current_variable_set_list’ # 1580| make sure we define this variable in the global set. */ # 1581| # 1582|-> v = define_variable_in_set (varname, strlen (varname), newval, origin, # 1583| flavor == f_recursive || flavor == f_expand, # 1584| (target_var
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-213.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | make-4.4.1-9.fc42 |
store-results-to | /tmp/tmpuq38s4d7/make-4.4.1-9.fc42.tar.xz |
time-created | 2024-11-13 01:57:32 |
time-finished | 2024-11-13 01:59:07 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpuq38s4d7/make-4.4.1-9.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpuq38s4d7/make-4.4.1-9.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |