zix-0.8.0-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
zix-0.8.0/src/posix/filesystem_posix.c:295:48: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
zix-0.8.0/src/posix/filesystem_posix.c:292:14: acquire_memory: allocated here
zix-0.8.0/src/posix/filesystem_posix.c:293:6: branch_true: following ‘true’ branch...
zix-0.8.0/src/posix/filesystem_posix.c:293:6: branch_true: ...to here
zix-0.8.0/src/posix/filesystem_posix.c:295:48: throw: if ‘readdir’ throws an exception...
zix-0.8.0/src/posix/filesystem_posix.c:295:48: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
zix-0.8.0/test/test_filesystem.c:72:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "wb")’
zix-0.8.0/test/test_filesystem.c:69:21: acquire_resource: opened here
zix-0.8.0/test/test_filesystem.c:70:6: branch_true: following ‘true’ branch...
zix-0.8.0/test/test_filesystem.c:71:5: branch_true: ...to here
zix-0.8.0/test/test_filesystem.c:72:11: throw: if ‘fflush’ throws an exception...
zix-0.8.0/test/test_filesystem.c:72:11: danger: ‘fopen(path, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
zix-0.8.0/test/test_filesystem.c:312:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(zix_path_join(0, create_temp_dir("zixXXXXXX"), "zix_test_file"), "a+b")’
zix-0.8.0/test/test_filesystem.c:300:1: enter_function: entry to ‘test_flock’
zix-0.8.0/test/test_filesystem.c:302:27: call_function: calling ‘create_temp_dir’ from ‘test_flock’
zix-0.8.0/test/test_filesystem.c:302:27: return_function: returning to ‘test_flock’ from ‘create_temp_dir’
zix-0.8.0/test/test_filesystem.c:304:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:306:20: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:307:20: acquire_resource: opened here
zix-0.8.0/test/test_filesystem.c:309:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:310:3: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:310:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:312:18: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:312:18: throw: if ‘zix_file_lock’ throws an exception...
zix-0.8.0/test/test_filesystem.c:312:18: danger: ‘fopen(zix_path_join(0, create_temp_dir("zixXXXXXX"), "zix_test_file"), "a+b")’ leaks here; was opened at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
zix-0.8.0/test/test_filesystem.c:312:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(zix_path_join(0, create_temp_dir("zixXXXXXX"), "zix_test_file"), "wb")’
zix-0.8.0/test/test_filesystem.c:300:1: enter_function: entry to ‘test_flock’
zix-0.8.0/test/test_filesystem.c:302:27: call_function: calling ‘create_temp_dir’ from ‘test_flock’
zix-0.8.0/test/test_filesystem.c:302:27: return_function: returning to ‘test_flock’ from ‘create_temp_dir’
zix-0.8.0/test/test_filesystem.c:304:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:306:20: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:306:20: acquire_resource: opened here
zix-0.8.0/test/test_filesystem.c:309:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:310:3: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:310:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:312:18: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:312:18: throw: if ‘zix_file_lock’ throws an exception...
zix-0.8.0/test/test_filesystem.c:312:18: danger: ‘fopen(zix_path_join(0, create_temp_dir("zixXXXXXX"), "zix_test_file"), "wb")’ leaks here; was opened at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
zix-0.8.0/test/test_filesystem.c:313:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(zix_path_join(0, create_temp_dir("zixXXXXXX"), "zix_test_file"), "a+b")’
zix-0.8.0/test/test_filesystem.c:300:1: enter_function: entry to ‘test_flock’
zix-0.8.0/test/test_filesystem.c:302:27: call_function: calling ‘create_temp_dir’ from ‘test_flock’
zix-0.8.0/test/test_filesystem.c:302:27: return_function: returning to ‘test_flock’ from ‘create_temp_dir’
zix-0.8.0/test/test_filesystem.c:304:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:306:20: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:307:20: acquire_resource: opened here
zix-0.8.0/test/test_filesystem.c:309:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:310:3: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:310:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:312:18: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:313:3: branch_false: following ‘false’ branch...
zix-0.8.0/test/test_filesystem.c:315:6: branch_false: ...to here
zix-0.8.0/test/test_filesystem.c:315:6: branch_true: following ‘true’ branch...
zix-0.8.0/test/test_filesystem.c:316:5: branch_true: ...to here
zix-0.8.0/test/test_filesystem.c:316:5: throw: if ‘zix_file_lock’ throws an exception...
zix-0.8.0/test/test_filesystem.c:313:3: danger: ‘fopen(zix_path_join(0, create_temp_dir("zixXXXXXX"), "zix_test_file"), "a+b")’ leaks here; was opened at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
Scan Properties
| 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-213.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 | zix-0.8.0-1.fc44 |
| store-results-to | /tmp/tmp_7mk0ddk/zix-0.8.0-1.fc44.tar.xz |
| time-created | 2026-01-08 22:16:11 |
| time-finished | 2026-01-08 22:17:40 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp_7mk0ddk/zix-0.8.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_7mk0ddk/zix-0.8.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |