libcamera-0.7.2-3.fc45

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
libcamera-v0.7.2/src/libcamera/pipeline/ipu3/ipu3.cpp:593: warning[nullPointer]: Possible null pointer dereference: mainCfg
#  591|   	 */
#  592|   	if (!vfCfg) {
#  593|-> 		ret = imgu->configureViewfinder(*mainCfg, &outputFormat);
#  594|   		if (ret)
#  595|   			return ret;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:43:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 0)’
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:31:12: branch_false: following ‘false’ branch (when ‘argc == 3’)...
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:36:17: branch_false: ...to here
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:36:17: acquire_resource: opened here
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:37:12: branch_false: following ‘false’ branch...
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:43:18: branch_false: ...to here
libcamera-v0.7.2/utils/ipu3/ipu3-unpack.c:43:18: danger: ‘open(argv[1], 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   41|   	}
#   42|   
#   43|-> 	out_fd = open(argv[2], O_WRONLY | O_TRUNC | O_CREAT, 0644);
#   44|   	if (out_fd == -1) {
#   45|   		fprintf(stderr, "Failed to open output file '%s': %s\n",

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-184.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-namelibcamera-0.7.2-3.fc45
store-results-to/tmp/tmpbpncbn3k/libcamera-0.7.2-3.fc45.tar.xz
time-created2026-08-03 17:11:34
time-finished2026-08-03 17:15:58
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpbpncbn3k/libcamera-0.7.2-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbpncbn3k/libcamera-0.7.2-3.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9