Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
nbdkit-1.47.9/common/replacements/readpassphrase.c:207:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/tty", 2)'
nbdkit-1.47.9/common/replacements/readpassphrase.c:177:12: branch_false: following 'false' branch (when 'bufsiz != 0')...
nbdkit-1.47.9/common/replacements/readpassphrase.c:177:12: branch_false: ...to here
nbdkit-1.47.9/common/replacements/readpassphrase.c:183:21: branch_true: following 'true' branch (when 'i != 23')...
nbdkit-1.47.9/common/replacements/readpassphrase.c:184:17: branch_true: ...to here
nbdkit-1.47.9/common/replacements/readpassphrase.c:192:12: branch_false: following 'false' branch...
nbdkit-1.47.9/common/replacements/readpassphrase.c:193:31: branch_false: ...to here
nbdkit-1.47.9/common/replacements/readpassphrase.c:193:31: acquire_resource: opened here
nbdkit-1.47.9/common/replacements/readpassphrase.c:192:13: branch_false: following 'false' branch...
nbdkit-1.47.9/common/replacements/readpassphrase.c:207:12: branch_false: ...to here
nbdkit-1.47.9/common/replacements/readpassphrase.c:207:12: danger: 'open("/dev/tty", 2)' leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  205|   	 * generate SIGTTOU, so do it *before* installing the signal handlers.
#  206|   	 */
#  207|-> 	if (input != STDIN_FILENO && tcgetattr(input, &oterm) == 0) {
#  208|   		memcpy(&term, &oterm, sizeof(term));
#  209|   		if (!(flags & RPP_ECHO_ON))

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
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-93.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namenbdkit-1.47.5-1.fc44
diffbase-store-results-to/tmp/tmpz6bbmdfy/nbdkit-1.47.5-1.fc44.tar.xz
diffbase-time-created2026-06-01 15:09:08
diffbase-time-finished2026-06-01 15:17:01
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpz6bbmdfy/nbdkit-1.47.5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpz6bbmdfy/nbdkit-1.47.5-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-93.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namenbdkit-1.47.9-1.fc45
store-results-to/tmp/tmpjjc8y1x4/nbdkit-1.47.9-1.fc45.tar.xz
time-created2026-06-01 15:17:22
time-finished2026-06-01 15:24:33
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpjjc8y1x4/nbdkit-1.47.9-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjjc8y1x4/nbdkit-1.47.9-1.fc45.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9