Task #131527 - libcamera-0.7.2-3.fc45/scan-results.err

back to task #131527
download
Error: CPPCHECK_WARNING (CWE-476):
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):
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",