Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] luksmeta-10/luksmeta.c:246:9: warning[-Wanalyzer-malloc-leak]: leak of ‘in’ luksmeta-10/luksmeta.c:221:12: branch_true: following ‘true’ branch... luksmeta-10/luksmeta.c:224:15: branch_true: ...to here luksmeta-10/luksmeta.c:225:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)... luksmeta-10/luksmeta.c:232:13: branch_false: ...to here luksmeta-10/luksmeta.c:221:12: branch_false: following ‘false’ branch... luksmeta-10/luksmeta.c:241:8: branch_false: ...to here luksmeta-10/luksmeta.c:241:8: branch_false: following ‘false’ branch (when ‘in’ is non-NULL)... luksmeta-10/luksmeta.c:246:39: branch_false: ...to here luksmeta-10/luksmeta.c:246:9: throw: if ‘luksmeta_save’ throws an exception... luksmeta-10/luksmeta.c:246:9: danger: ‘in’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 244| } # 245| # 246|-> r = luksmeta_save(cd, opts->slot, opts->uuid, in, inl); # 247| memset(in, 0, inl); # 248| free(in); Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] luksmeta-10/luksmeta.c:317:13: warning[-Wanalyzer-malloc-leak]: leak of ‘out’ luksmeta-10/luksmeta.c:292:8: branch_false: following ‘false’ branch... luksmeta-10/luksmeta.c:297:9: branch_false: ...to here luksmeta-10/luksmeta.c:298:8: branch_true: following ‘true’ branch... luksmeta-10/luksmeta.c:301:13: branch_true: ...to here luksmeta-10/luksmeta.c:311:15: acquire_memory: allocated here luksmeta-10/luksmeta.c:312:12: branch_false: following ‘false’ branch (when ‘out’ is non-NULL)... luksmeta-10/luksmeta.c:317:31: branch_false: ...to here luksmeta-10/luksmeta.c:317:13: throw: if ‘luksmeta_load’ throws an exception... luksmeta-10/luksmeta.c:317:13: danger: ‘out’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4) # 315| } # 316| # 317|-> r = luksmeta_load(cd, opts->slot, uuid, out, r); # 318| if (r >= 0) { # 319| fwrite(out, 1, r, stdout);
| 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 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-81.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 | luksmeta-10-1.fc44 |
| store-results-to | /tmp/tmpeys6w49p/luksmeta-10-1.fc44.tar.xz |
| time-created | 2026-01-08 19:26:35 |
| time-finished | 2026-01-08 19:28:01 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpeys6w49p/luksmeta-10-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpeys6w49p/luksmeta-10-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |