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",
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| 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-184.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libcamera-0.7.2-3.fc45 |
| store-results-to | /tmp/tmpbpncbn3k/libcamera-0.7.2-3.fc45.tar.xz |
| time-created | 2026-08-03 17:11:34 |
| time-finished | 2026-08-03 17:15:58 |
| tool | csmock |
| 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-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |