Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] sscg-sscg-4.0.3/src/io_utils.c:176:9: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected sscg-sscg-4.0.3/src/io_utils.c:361:1: enter_function: entry to ‘sscg_io_utils_add_output_key’ sscg-sscg-4.0.3/src/io_utils.c:372:9: release_memory: ‘fp’ is NULL sscg-sscg-4.0.3/src/io_utils.c:375:6: branch_false: following ‘false’ branch... sscg-sscg-4.0.3/src/io_utils.c:384:6: branch_false: ...to here sscg-sscg-4.0.3/src/io_utils.c:384:6: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)... sscg-sscg-4.0.3/src/io_utils.c:408:13: branch_false: ...to here sscg-sscg-4.0.3/src/io_utils.c:409:3: branch_false: following ‘false’ branch... sscg-sscg-4.0.3/src/io_utils.c:411:3: branch_false: ...to here sscg-sscg-4.0.3/src/io_utils.c:419:9: call_function: calling ‘sscg_io_utils_open_file’ from ‘sscg_io_utils_add_output_key’ sscg-sscg-4.0.3/src/io_utils.c:419:9: return_function: returning to ‘sscg_io_utils_add_output_key’ from ‘sscg_io_utils_open_file’ sscg-sscg-4.0.3/src/io_utils.c:420:3: branch_false: following ‘false’ branch... sscg-sscg-4.0.3/src/io_utils.c:423:12: branch_false: ...to here sscg-sscg-4.0.3/src/io_utils.c:423:12: release_memory: ‘fp’ is NULL sscg-sscg-4.0.3/src/io_utils.c:423:12: call_function: calling ‘sscg_io_utils_get_stream_by_fp’ from ‘sscg_io_utils_add_output_key’ # 174| int ret = 0; # 175| # 176|-> ret = fstat (fileno (fp), &st); # 177| if (ret != 0) # 178| {
| 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-34.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 | sscg-4.0.3-2.fc44 |
| store-results-to | /tmp/tmpohg_pb37/sscg-4.0.3-2.fc44.tar.xz |
| time-created | 2026-01-08 21:46:16 |
| time-finished | 2026-01-08 21:47:34 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpohg_pb37/sscg-4.0.3-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpohg_pb37/sscg-4.0.3-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |