openjpeg-2.5.4-2.fc44
List of Findings
Error: COMPILER_WARNING: [#def1] [important]
openjpeg-2.5.4/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-cWUjAZ/CheckSymbolExists.c:8:19: error[error]: ‘_aligned_malloc’ undeclared (first use in this function)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
openjpeg-2.5.4/redhat-linux-build/CMakeFiles/TestLargeFiles.c:17:18: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(*argv, "r")’ where non-null expected
openjpeg-2.5.4/redhat-linux-build/CMakeFiles/TestLargeFiles.c:16:14: acquire_memory: this call could return NULL
openjpeg-2.5.4/redhat-linux-build/CMakeFiles/TestLargeFiles.c:17:18: danger: argument 1 (‘fopen(*argv, "r")’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
openjpeg-2.5.4/src/bin/common/opj_getopt.c:103:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oli’
openjpeg-2.5.4/src/bin/common/opj_getopt.c:91:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/common/opj_getopt.c:94:14: branch_false: ...to here
openjpeg-2.5.4/src/bin/common/opj_getopt.c:103:9: danger: dereference of NULL ‘oli’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
openjpeg-2.5.4/src/bin/jp2/convert.c:599:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:766:14: enter_function: entry to ‘tgatoimage’
openjpeg-2.5.4/src/bin/jp2/convert.c:781:9: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convert.c:782:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:787:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:787:10: call_function: calling ‘tga_readheader’ from ‘tgatoimage’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
openjpeg-2.5.4/src/bin/jp2/convert.c:599:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:766:14: enter_function: entry to ‘tgatoimage’
openjpeg-2.5.4/src/bin/jp2/convert.c:781:9: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convert.c:782:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:787:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:787:10: call_function: calling ‘tga_readheader’ from ‘tgatoimage’
Error: GCC_ANALYZER_WARNING (CWE-789): [#def6]
openjpeg-2.5.4/src/bin/jp2/convert.c:631:47: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value as allocation size without upper-bounds checking
openjpeg-2.5.4/src/bin/jp2/convert.c:599:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:603:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:608:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:630:8: branch_true: following ‘true’ branch (when ‘id_len != 0’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:631:47: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:631:47: danger: use of attacker-controlled value as allocation size without upper-bounds checking
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:1179:9: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convert.c:1180:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:1179:9: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convert.c:1180:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:1185:5: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-122): [#def9]
openjpeg-2.5.4/src/bin/jp2/convert.c:1383:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
openjpeg-2.5.4/src/bin/jp2/convert.c:1361:22: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:1362:35: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1371:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:1376:12: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1376:12: branch_true: following ‘true’ branch (when ‘total > 256’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:1377:27: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1378:16: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:1383:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1383:9: danger: write of ‘dotpos’ bytes at offset ‘0’ exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-122): [#def10]
openjpeg-2.5.4/src/bin/jp2/convert.c:1384:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
openjpeg-2.5.4/src/bin/jp2/convert.c:1361:22: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:1362:35: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1371:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:1376:12: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1376:12: branch_true: following ‘true’ branch (when ‘total > 256’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:1377:27: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1378:16: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:1383:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:1384:9: danger: out-of-bounds write
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(destname, "wb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:2029:8: branch_false: following ‘false’ branch (when ‘prec <= 16’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2029:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2216:8: branch_false: following ‘false’ branch (when ‘destname’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2216:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2220:22: branch_true: following ‘true’ branch (when ‘compno < ncomp’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2221:12: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2232:17: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convert.c:2233:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2243:9: throw: if ‘opj_version’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: danger: ‘fopen(destname, "wb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(destname, "wb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:2029:8: branch_false: following ‘false’ branch (when ‘prec <= 16’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2029:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2216:8: branch_false: following ‘false’ branch (when ‘destname’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2216:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2220:22: branch_true: following ‘true’ branch (when ‘compno < ncomp’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2221:12: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2232:17: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convert.c:2233:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2243:9: throw: if ‘opj_version’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: danger: ‘fopen(destname, "wb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
openjpeg-2.5.4/src/bin/jp2/convert.c:2243:9: warning[-Wanalyzer-malloc-leak]: leak of ‘destname’
openjpeg-2.5.4/src/bin/jp2/convert.c:2029:8: branch_false: following ‘false’ branch (when ‘prec <= 16’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2029:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2215:23: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convert.c:2216:8: branch_false: following ‘false’ branch (when ‘destname’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2216:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2220:22: branch_true: following ‘true’ branch (when ‘compno < ncomp’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2221:12: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2233:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2238:19: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2243:9: throw: if ‘opj_version’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:2243:9: danger: ‘destname’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
openjpeg-2.5.4/src/bin/jp2/convert.c:2353:47: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:2318:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2333:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2333:9: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convert.c:2334:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2339:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2355:8: branch_false: following ‘false’ branch (when ‘cmptparm’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2355:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2362:17: branch_false: following ‘false’ branch (when ‘i >= numcomps’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: throw: if ‘opj_image_create’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:2353:47: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
openjpeg-2.5.4/src/bin/jp2/convert.c:2353:47: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convert.c:2318:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2333:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2333:9: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convert.c:2334:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2339:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2355:8: branch_false: following ‘false’ branch (when ‘cmptparm’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2355:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2362:17: branch_false: following ‘false’ branch (when ‘i >= numcomps’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: throw: if ‘opj_image_create’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:2353:47: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cmptparm’
openjpeg-2.5.4/src/bin/jp2/convert.c:2318:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2333:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2334:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convert.c:2339:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2353:40: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convert.c:2355:8: branch_false: following ‘false’ branch (when ‘cmptparm’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2355:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2362:17: branch_false: following ‘false’ branch (when ‘i >= numcomps’)...
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: throw: if ‘opj_image_create’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convert.c:2371:13: danger: ‘cmptparm’ leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:322:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:702:14: enter_function: entry to ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:720:10: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:721:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: call_function: calling ‘bmp_read_info_header’ from ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: return_function: returning to ‘bmptoimage’ from ‘bmp_read_info_header’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:736:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:750:26: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: following ‘false’ branch (when ‘has_color == 0’)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:773:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:777:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:788:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:792:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:793:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:322:23: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:322:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:702:14: enter_function: entry to ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:720:10: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:721:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: call_function: calling ‘bmp_read_info_header’ from ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: return_function: returning to ‘bmptoimage’ from ‘bmp_read_info_header’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:736:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:750:26: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: following ‘false’ branch (when ‘has_color == 0’)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:773:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:777:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:788:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:792:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:793:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:322:23: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pData’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:702:14: enter_function: entry to ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:721:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: call_function: calling ‘bmp_read_info_header’ from ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: return_function: returning to ‘bmptoimage’ from ‘bmp_read_info_header’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:736:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:750:26: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: following ‘false’ branch (when ‘has_color == 0’)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:773:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:777:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:788:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:792:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:792:27: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:793:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: danger: ‘pData’ leaks here; was allocated at [(23)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:799:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pData’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:702:14: enter_function: entry to ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:721:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:726:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: call_function: calling ‘bmp_read_info_header’ from ‘bmptoimage’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:10: return_function: returning to ‘bmptoimage’ from ‘bmp_read_info_header’
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:730:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:736:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:750:26: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:757:16: branch_false: following ‘false’ branch (when ‘has_color == 0’)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:768:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:773:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:777:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:788:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:792:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:792:27: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:793:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:798:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:799:5: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convertbmp.c:799:5: danger: ‘pData’ leaks here; was allocated at [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:261:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(read_idf, "rb")’
openjpeg-2.5.4/src/bin/jp2/convertpng.c:255:19: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:255:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:260:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:260:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:261:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:260:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:266:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:266:16: throw: if ‘png_create_read_struct’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:261:16: danger: ‘fopen(read_idf, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:261:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(read_idf, "rb")’
openjpeg-2.5.4/src/bin/jp2/convertpng.c:255:19: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:255:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:260:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:260:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:261:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:260:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:266:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:266:16: throw: if ‘png_create_read_struct’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:261:16: danger: ‘fopen(read_idf, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:394:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(write_idf, "wb")’
openjpeg-2.5.4/src/bin/jp2/convertpng.c:325:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:331:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: following ‘false’ branch (when ‘nr_comp == i’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:394:14: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:394:5: danger: ‘fopen(write_idf, "wb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:394:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(write_idf, "wb")’
openjpeg-2.5.4/src/bin/jp2/convertpng.c:325:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:331:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: following ‘false’ branch (when ‘nr_comp == i’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:394:14: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:394:5: danger: ‘fopen(write_idf, "wb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(png_get_rowbytes(png, info))’
openjpeg-2.5.4/src/bin/jp2/convertpng.c:325:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:331:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: following ‘false’ branch (when ‘nr_comp == i’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:396:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:406:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:410:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:416:12: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:418:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:9: setjmp: ‘setjmp’ called here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:431:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:452:8: branch_false: following ‘false’ branch (when ‘nr_comp <= 2’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:457:24: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:459:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:464:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:480:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:30: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:30: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:9: danger: ‘malloc(png_get_rowbytes(png, info))’ leaks here; was allocated at [(20)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:489:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)*image_173(D)->comps.w * (long unsigned int)nr_comp * 4)’
openjpeg-2.5.4/src/bin/jp2/convertpng.c:325:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:331:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: following ‘false’ branch (when ‘nr_comp == i’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:396:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:406:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:410:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:416:12: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:418:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:9: setjmp: ‘setjmp’ called here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:431:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:452:8: branch_false: following ‘false’ branch (when ‘nr_comp <= 2’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:457:24: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:459:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:464:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:480:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:30: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:30: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:485:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:489:40: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:489:33: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:489:9: danger: ‘malloc((long unsigned int)*image_173(D)->comps.w * (long unsigned int)nr_comp * 4)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
openjpeg-2.5.4/src/bin/jp2/convertpng.c:524:13: warning[-Wanalyzer-jump-through-null]: jump through null pointer
openjpeg-2.5.4/src/bin/jp2/convertpng.c:325:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:331:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: following ‘false’ branch (when ‘nr_comp == i’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:357:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:396:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:406:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:410:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:416:12: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:418:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:9: setjmp: ‘setjmp’ called here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:425:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:431:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:452:8: branch_false: following ‘false’ branch (when ‘nr_comp <= 2’)...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:457:24: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:459:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:464:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:480:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:484:30: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:485:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:489:40: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:491:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:501:26: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:522:21: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/bin/jp2/convertpng.c:523:13: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/convertpng.c:524:13: danger: jump through null pointer here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
openjpeg-2.5.4/src/bin/jp2/converttif.c:736:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_true: following ‘true’ branch (when ‘buffer32s’ is NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:736:9: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:736:9: throw: if ‘_TIFFfree’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:736:9: danger: ‘buf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer32s’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:30: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: following ‘false’ branch (when ‘buffer32s’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:741:17: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: throw: if the called function throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: danger: ‘buffer32s’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: following ‘false’ branch (when ‘buffer32s’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:741:17: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: throw: if the called function throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: danger: ‘buf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
openjpeg-2.5.4/src/bin/jp2/converttif.c:743:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: following ‘false’ branch (when ‘buffer32s’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:741:17: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:742:9: branch_true: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:743:9: throw: if the called function throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:743:9: danger: ‘buf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer32s’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:30: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: following ‘false’ branch (when ‘buffer32s’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:741:17: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: throw: if ‘_TIFFfree’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: danger: ‘buffer32s’ leaks here; was allocated at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: following ‘false’ branch (when ‘buffer32s’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:741:17: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: throw: if ‘_TIFFfree’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: danger: ‘buf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
openjpeg-2.5.4/src/bin/jp2/converttif.c:751:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer32s’
openjpeg-2.5.4/src/bin/jp2/converttif.c:626:8: branch_false: following ‘false’ branch (when ‘i == numcomps’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:633:8: branch_false: following ‘false’ branch (when ‘bps <= 16’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:636:8: branch_false: following ‘false’ branch (when ‘bps != 0’)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:641:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:642:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:716:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:715:9: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:723:28: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:724:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:729:11: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:730:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:37: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:734:30: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: following ‘false’ branch (when ‘buffer32s’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/converttif.c:735:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:741:17: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/converttif.c:750:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/converttif.c:751:5: throw: if ‘TIFFClose’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/converttif.c:751:5: danger: ‘buffer32s’ leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-190): [#def35]
openjpeg-2.5.4/src/bin/jp2/converttif.c:957: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def36]
openjpeg-2.5.4/src/bin/jp2/converttif.c:957: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def37]
openjpeg-2.5.4/src/bin/jp2/converttif.c:959: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def38]
openjpeg-2.5.4/src/bin/jp2/converttif.c:959: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def39]
openjpeg-2.5.4/src/bin/jp2/converttif.c:961: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def40]
openjpeg-2.5.4/src/bin/jp2/converttif.c:961: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def41]
openjpeg-2.5.4/src/bin/jp2/converttif.c:963: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def42]
openjpeg-2.5.4/src/bin/jp2/converttif.c:963: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def43]
openjpeg-2.5.4/src/bin/jp2/converttif.c:965: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def44]
openjpeg-2.5.4/src/bin/jp2/converttif.c:965: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def45]
openjpeg-2.5.4/src/bin/jp2/converttif.c:967: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def46]
openjpeg-2.5.4/src/bin/jp2/converttif.c:967: error[shiftTooManyBits]: Shifting 32-bit value by 4294967295 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def47]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1045: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def48]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1045: error[shiftTooManyBits]: Shifting 32-bit value by 4294967293 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def49]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1047: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def50]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1047: error[shiftTooManyBits]: Shifting 32-bit value by 4294967293 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def51]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1049: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def52]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1049: error[shiftTooManyBits]: Shifting 32-bit value by 4294967293 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def53]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1051: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def54]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1051: error[shiftTooManyBits]: Shifting 32-bit value by 4294967293 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def55]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1053: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def56]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1053: error[shiftTooManyBits]: Shifting 32-bit value by 4294967293 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def57]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1055: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def58]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1055: error[shiftTooManyBits]: Shifting 32-bit value by 4294967293 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def59]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1120: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def60]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1120: error[shiftTooManyBits]: Shifting 32-bit value by 4294967291 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def61]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1122: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def62]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1122: error[shiftTooManyBits]: Shifting 32-bit value by 4294967291 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def63]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1124: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def64]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1124: error[shiftTooManyBits]: Shifting 32-bit value by 4294967291 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def65]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1126: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def66]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1126: error[shiftTooManyBits]: Shifting 32-bit value by 4294967291 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def67]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1128: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def68]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1128: error[shiftTooManyBits]: Shifting 32-bit value by 4294967291 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def69]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1130: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def70]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1130: error[shiftTooManyBits]: Shifting 32-bit value by 4294967291 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def71]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1216: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def72]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1216: error[shiftTooManyBits]: Shifting 32-bit value by 4294967289 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def73]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1218: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def74]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1218: error[shiftTooManyBits]: Shifting 32-bit value by 4294967289 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def75]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1220: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def76]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1220: error[shiftTooManyBits]: Shifting 32-bit value by 4294967289 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def77]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1222: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def78]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1222: error[shiftTooManyBits]: Shifting 32-bit value by 4294967289 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def79]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1224: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def80]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1224: error[shiftTooManyBits]: Shifting 32-bit value by 4294967289 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-190): [#def81]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1226: error[integerOverflow]: Signed integer overflow for expression 'available-needed'.
Error: CPPCHECK_WARNING (CWE-758): [#def82]
openjpeg-2.5.4/src/bin/jp2/converttif.c:1226: error[shiftTooManyBits]: Shifting 32-bit value by 4294967289 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:488:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(imgdirpath)’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:481:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:482:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:482:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:488:23: throw: if ‘readdir’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:488:23: danger: ‘opendir(imgdirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:516:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(imgdirpath)’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:511:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:512:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:516:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:519:23: throw: if ‘readdir’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:516:9: danger: ‘opendir(imgdirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def85]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:524: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dirptr
Error: GCC_ANALYZER_WARNING (CWE-688): [#def86]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:586:5: warning[-Wanalyzer-null-argument]: use of NULL ‘fname’ where non-null expected
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:559:13: enter_function: entry to ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:569:32: call_function: calling ‘get_file_format’ from ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:569:32: return_function: returning to ‘get_next_file’ from ‘get_file_format’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:570:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:573:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:573:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:577:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:580:9: call_function: calling ‘opj_strcpy_s’ from ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:580:9: return_function: returning to ‘get_next_file’ from ‘opj_strcpy_s’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:580:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:586:25: call_function: inlined call to ‘get_file_name’ from ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:586:5: danger: argument 2 (‘fname’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(lFilename, "r")’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1325:28: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: danger: ‘fopen(lFilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(lFilename, "r")’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1325:28: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: danger: ‘fopen(lFilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1332:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(lFilename, "r")’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1325:28: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1332:31: throw: if ‘ftell’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1332:31: danger: ‘fopen(lFilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1332:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(lFilename, "r")’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1325:28: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1332:31: throw: if ‘ftell’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1332:31: danger: ‘fopen(lFilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1333:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(lFilename, "r")’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1325:28: acquire_resource: opened here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1333:13: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1333:13: danger: ‘fopen(lFilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1333:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(lFilename, "r")’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1325:28: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1333:13: throw: if ‘fseek’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1333:13: danger: ‘fopen(lFilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING: [#def93]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1363:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1335:16: branch_false: following ‘false’ branch (when ‘lMatrix’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1339:25: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1341:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1346:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1363:32: danger: at least one operand of the size argument is of a floating-point type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lCurrentDoublePtr’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1335:16: branch_false: following ‘false’ branch (when ‘lMatrix’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1339:25: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1341:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1346:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1363:32: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1364:16: branch_false: following ‘false’ branch (when ‘lSpace’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1364:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1369:26: branch_false: following ‘false’ branch (when ‘i2 >= lMctComp’)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1369:26: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1376:26: branch_false: following ‘false’ branch (when ‘i2 >= lNbComp’)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: throw: if ‘opj_set_MCT’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: danger: ‘lCurrentDoublePtr’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lCurrentPtr’
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:657:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:660:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1326:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1331:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1334:32: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1335:16: branch_false: following ‘false’ branch (when ‘lMatrix’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1339:25: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1341:16: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1346:20: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1364:16: branch_false: following ‘false’ branch (when ‘lSpace’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1364:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1369:26: branch_false: following ‘false’ branch (when ‘i2 >= lMctComp’)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1369:26: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1376:26: branch_false: following ‘false’ branch (when ‘i2 >= lNbComp’)...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: throw: if ‘opj_set_MCT’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_compress.c:1383:13: danger: ‘lCurrentPtr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:392:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(imgdirpath)’
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:386:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:387:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:387:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:392:23: throw: if ‘readdir’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:392:23: danger: ‘opendir(imgdirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:422:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(imgdirpath)’
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:417:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:418:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:422:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:425:23: throw: if ‘readdir’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:422:9: danger: ‘opendir(imgdirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def98]
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:508:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:482:6: enter_function: entry to ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:491:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:495:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:499:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:502:22: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:502:9: call_function: calling ‘opj_strcpy_s’ from ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:502:9: return_function: returning to ‘get_next_file’ from ‘opj_strcpy_s’
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:502:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:508:25: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:508:5: danger: argument 2 (‘strtok(&image_filename, ".")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:1130:19: warning[-Wanalyzer-malloc-leak]: leak of ‘l_new_components’
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:1093:47: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:1095:8: branch_false: following ‘false’ branch (when ‘l_new_components’ is non-NULL)...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:1103:36: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:1130:19: throw: if ‘opj_image_create’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_decompress.c:1130:19: danger: ‘l_new_components’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:100:5: warning[-Wanalyzer-malloc-leak]: leak of ‘img_fol.imgdirpath’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:486:5: enter_function: entry to ‘main’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:509:9: call_function: calling ‘parse_cmdline_decoder’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:141:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(imgdirpath)’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:135:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:136:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:136:8: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:141:23: throw: if ‘readdir’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:141:23: danger: ‘opendir(imgdirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(imgdirpath)’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:165:11: acquire_memory: allocated here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:166:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:170:9: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:173:23: throw: if ‘readdir’ throws an exception...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:170:9: danger: ‘opendir(imgdirpath)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:251:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:224:13: enter_function: entry to ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:234:32: call_function: calling ‘get_file_format’ from ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:234:32: return_function: returning to ‘get_next_file’ from ‘get_file_format’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:235:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:238:16: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:238:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:242:5: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:245:9: call_function: calling ‘opj_strcpy_s’ from ‘get_next_file’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:245:9: return_function: returning to ‘get_next_file’ from ‘opj_strcpy_s’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:245:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:251:25: branch_false: ...to here
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:251:5: danger: argument 2 (‘strtok(&image_filename, ".")’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:402:13: warning[-Wanalyzer-malloc-leak]: leak of ‘img_fol.imgdirpath’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:486:5: enter_function: entry to ‘main’
openjpeg-2.5.4/src/bin/jp2/opj_dump.c:509:9: call_function: calling ‘parse_cmdline_decoder’ from ‘main’
Error: COMPILER_WARNING: [#def105]
openjpeg-2.5.4/src/lib/openjp2/ht_dec.c: scope_hint: In function ‘opj_t1_ht_decode_cblk’
openjpeg-2.5.4/src/lib/openjp2/ht_dec.c:2222:41: warning[-Wunused-but-set-variable=]: variable ‘dp’ set but not used
Error: COMPILER_WARNING: [#def106]
openjpeg-2.5.4/src/lib/openjp2/ht_dec.c:2534:37: warning[-Wunused-but-set-variable=]: variable ‘dp’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4776:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘marker_info’
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4835:17: enter_function: entry to ‘opj_j2k_write_sod’
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4912:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4923:13: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4922:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4929:5: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4931:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4942:5: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4944:8: branch_true: following ‘true’ branch...
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4945:20: branch_true: ...to here
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4948:12: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4953:14: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/j2k.c:4953:14: call_function: calling ‘opj_j2k_write_plt_in_memory’ from ‘opj_j2k_write_sod’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, mode)’
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1098:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1102:8: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1108:14: acquire_resource: opened here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1110:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: throw: if ‘opj_stream_create’ throws an exception...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: danger: ‘fopen(fname, mode)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, mode)’
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1098:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1102:8: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1108:14: acquire_memory: allocated here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1110:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: throw: if ‘opj_stream_create’ throws an exception...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: danger: ‘fopen(fname, mode)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, mode)’
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1098:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1102:8: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1108:14: acquire_resource: opened here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1110:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1115:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: throw: if ‘opj_stream_set_user_data’ throws an exception...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: danger: ‘fopen(fname, mode)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, mode)’
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1098:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1102:8: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1108:14: acquire_memory: allocated here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1110:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1114:16: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1115:8: branch_false: following ‘false’ branch...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: branch_false: ...to here
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: throw: if ‘opj_stream_set_user_data’ throws an exception...
openjpeg-2.5.4/src/lib/openjp2/openjpeg.c:1120:5: danger: ‘fopen(fname, mode)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def112]
openjpeg-2.5.4/src/lib/openjp2/pi.c: scope_hint: In function ‘opj_pi_create_decode’
openjpeg-2.5.4/src/lib/openjp2/pi.c:1415:23: warning[-Wunused-but-set-variable=]: variable ‘l_tccp’ set but not used
Error: COMPILER_WARNING: [#def113]
openjpeg-2.5.4/src/lib/openjp2/pi.c: scope_hint: In function ‘opj_pi_initialise_encode’
openjpeg-2.5.4/src/lib/openjp2/pi.c:1638:23: warning[-Wunused-but-set-variable=]: variable ‘l_tccp’ set but not used
Error: COMPILER_WARNING: [#def114]
openjpeg-2.5.4/src/lib/openjp2/tcd.c: scope_hint: In function ‘opj_tcd_dc_level_shift_encode’
openjpeg-2.5.4/src/lib/openjp2/tcd.c:2474:24: warning[-Wunused-but-set-variable=]: variable ‘l_img_comp’ set but not used
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| 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-237.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | openjpeg-2.5.4-2.fc44 |
| store-results-to | /tmp/tmpzatzumo5/openjpeg-2.5.4-2.fc44.tar.xz |
| time-created | 2026-01-08 19:58:41 |
| time-finished | 2026-01-08 20:01:19 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpzatzumo5/openjpeg-2.5.4-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpzatzumo5/openjpeg-2.5.4-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |