Newly introduced findings

List of Findings

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|       {

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-34.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namesscg-3.0.8-2.fc43
diffbase-store-results-to/tmp/tmpnp7rn2d4/sscg-3.0.8-2.fc43.tar.xz
diffbase-time-created2026-01-08 21:44:13
diffbase-time-finished2026-01-08 21:46:00
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpnp7rn2d4/sscg-3.0.8-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpnp7rn2d4/sscg-3.0.8-2.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-34.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesscg-4.0.3-2.fc44
store-results-to/tmp/tmpohg_pb37/sscg-4.0.3-2.fc44.tar.xz
time-created2026-01-08 21:46:16
time-finished2026-01-08 21:47:34
titleNewly introduced findings
toolcsmock
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-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9