Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] makedumpfile-1.7.8/makedumpfile.c:1101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mfns’ makedumpfile-1.7.8/makedumpfile.c:10848:1: enter_function: entry to ‘create_dumpfile’ makedumpfile-1.7.8/makedumpfile.c:10863:14: call_function: calling ‘initial’ from ‘create_dumpfile’ # 1099| if (NUMBER(sme_mask) != NOT_FOUND_NUMBER) # 1100| pgaddr = pgaddr & ~(NUMBER(sme_mask)); # 1101|-> pgbuf = cache_search(pgaddr, read_size); # 1102| if (!pgbuf) { # 1103| ++cache_miss; Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] makedumpfile-1.7.8/makedumpfile.c:1104:26: warning[-Wanalyzer-malloc-leak]: leak of ‘mfns’ makedumpfile-1.7.8/makedumpfile.c:10848:1: enter_function: entry to ‘create_dumpfile’ makedumpfile-1.7.8/makedumpfile.c:10863:14: call_function: calling ‘initial’ from ‘create_dumpfile’ # 1102| if (!pgbuf) { # 1103| ++cache_miss; # 1104|-> cached = cache_alloc(pgaddr); # 1105| if (!cached) # 1106| goto error; Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] makedumpfile-1.7.8/makedumpfile.c:2234:16: warning[-Wanalyzer-malloc-leak]: leak of ‘bmp’ makedumpfile-1.7.8/makedumpfile.c:10848:1: enter_function: entry to ‘create_dumpfile’ makedumpfile-1.7.8/makedumpfile.c:10863:14: call_function: calling ‘initial’ from ‘create_dumpfile’ # 2232| PAGE_FLAGS_SIZE_v2_6_27_to_latest_version; # 2233| } # 2234|-> return TRUE; # 2235| } # 2236| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] makedumpfile-1.7.8/makedumpfile.c:3047:19: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’ makedumpfile-1.7.8/makedumpfile.c:10848:1: enter_function: entry to ‘create_dumpfile’ makedumpfile-1.7.8/makedumpfile.c:10863:14: call_function: calling ‘initial’ from ‘create_dumpfile’ # 3045| } # 3046| # 3047|-> if ((fd = mkstemp(info->name_vmcoreinfo)) < 0) { # 3048| ERRMSG("Can't open the vmcoreinfo file(%s). %s\n", # 3049| info->name_vmcoreinfo, strerror(errno)); Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] makedumpfile-1.7.8/makedumpfile.c:3062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’ makedumpfile-1.7.8/makedumpfile.c:10848:1: enter_function: entry to ‘create_dumpfile’ makedumpfile-1.7.8/makedumpfile.c:10863:14: call_function: calling ‘initial’ from ‘create_dumpfile’ # 3060| goto out; # 3061| } # 3062|-> if (write(fd, buf, size) != size) { # 3063| ERRMSG("Can't write the vmcoreinfo file(%s). %s\n", # 3064| info->name_vmcoreinfo, strerror(errno)); Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] makedumpfile-1.7.8/makedumpfile.c:3067:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’ makedumpfile-1.7.8/makedumpfile.c:10848:1: enter_function: entry to ‘create_dumpfile’ makedumpfile-1.7.8/makedumpfile.c:10863:14: call_function: calling ‘initial’ from ‘create_dumpfile’ # 3065| goto out; # 3066| } # 3067|-> if (close(fd) < 0) { # 3068| ERRMSG("Can't close the vmcoreinfo file(%s). %s\n", # 3069| info->name_vmcoreinfo, strerror(errno));
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-102.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | makedumpfile-1.7.7-4.fc43 |
| diffbase-store-results-to | /tmp/tmpv5jxe3yt/makedumpfile-1.7.7-4.fc43.tar.xz |
| diffbase-time-created | 2026-01-08 19:30:10 |
| diffbase-time-finished | 2026-01-08 19:32:30 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpv5jxe3yt/makedumpfile-1.7.7-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpv5jxe3yt/makedumpfile-1.7.7-4.fc43.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-102.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | makedumpfile-1.7.8-1.fc44 |
| store-results-to | /tmp/tmpojpchzmy/makedumpfile-1.7.8-1.fc44.tar.xz |
| time-created | 2026-01-08 19:32:54 |
| time-finished | 2026-01-08 19:34:43 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpojpchzmy/makedumpfile-1.7.8-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpojpchzmy/makedumpfile-1.7.8-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |