leptonica-1.87.0-1.fc44
List of Findings
Error: COMPILER_WARNING (CWE-563): [#def1]
leptonica-1.87.0/prog/autogen.137.h:54:20: warning[-Wunused-variable]: ‘l_strdata_0’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def2]
leptonica-1.87.0/prog/autogentest2.c:42: included_from: Included from here.
leptonica-1.87.0/prog/autogen.137.h:155:20: warning[-Wunused-variable]: ‘l_strdata_1’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def3]
leptonica-1.87.0/prog/cleanpdf.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/cleanpdf.c:139:45: warning[-Wunused-variable]: unused variable ‘render_res’
Error: COMPILER_WARNING (CWE-563): [#def4]
leptonica-1.87.0/prog/compresspdf.c:137:12: warning[-Wunused-variable]: unused variable ‘buf’
Error: COMPILER_WARNING (CWE-563): [#def5]
leptonica-1.87.0/prog/compresspdf.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/compresspdf.c:139:19: warning[-Wunused-variable]: unused variable ‘render_res’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def6]
leptonica-1.87.0/prog/convertsegfilestopdf.c:147:8: warning[-Wanalyzer-deref-before-check]: check of ‘maskdir’ for NULL after already dereferencing it
leptonica-1.87.0/prog/convertsegfilestopdf.c:88:8: branch_false: following ‘false’ branch (when ‘argc == 12’)...
leptonica-1.87.0/prog/convertsegfilestopdf.c:117:5: branch_false: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:129:8: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/prog/convertsegfilestopdf.c:129:8: branch_true: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:131:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
leptonica-1.87.0/prog/convertsegfilestopdf.c:133:10: branch_false: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:133:8: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/prog/convertsegfilestopdf.c:133:8: branch_true: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:135:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/prog/convertsegfilestopdf.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/prog/convertsegfilestopdf.c:141:8: branch_false: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/prog/convertsegfilestopdf.c:143:10: branch_false: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:143:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
leptonica-1.87.0/prog/convertsegfilestopdf.c:146:5: branch_false: ...to here
leptonica-1.87.0/prog/convertsegfilestopdf.c:147:8: danger: pointer ‘maskdir’ is checked for NULL here but it was already dereferenced at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-563): [#def7]
leptonica-1.87.0/prog/croppdf.c:111:12: warning[-Wunused-variable]: unused variable ‘buf’
Error: COMPILER_WARNING (CWE-563): [#def8]
leptonica-1.87.0/prog/croppdf.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/croppdf.c:114:24: warning[-Wunused-variable]: unused variable ‘render_res’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
leptonica-1.87.0/prog/findbinding.c:135:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ymax’
leptonica-1.87.0/prog/findbinding.c:60:8: branch_false: following ‘false’ branch (when ‘argc == 1’)...
leptonica-1.87.0/prog/findbinding.c:63:5: branch_false: ...to here
leptonica-1.87.0/prog/findbinding.c:116:22: branch_false: following ‘false’ branch (when ‘y > yend’)...
leptonica-1.87.0/prog/findbinding.c:135:5: branch_false: ...to here
leptonica-1.87.0/prog/findbinding.c:135:5: danger: use of uninitialized value ‘ymax’ here
Error: COMPILER_WARNING (CWE-457): [#def10]
leptonica-1.87.0/prog/findbinding.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/findbinding.c:135:5: warning[-Wmaybe-uninitialized]: ‘ymax’ may be used uninitialized
leptonica-1.87.0/prog/findbinding.c:53:35: note: ‘ymax’ was declared here
Error: COMPILER_WARNING (CWE-563): [#def11]
leptonica-1.87.0/prog/hashtest.c: scope_hint: In function ‘BuildShortStrings’
leptonica-1.87.0/prog/hashtest.c:261:11: warning[-Wunused-variable]: unused variable ‘hash’
Error: COMPILER_WARNING: [#def12]
leptonica-1.87.0/prog/messagetest.c: scope_hint: In function ‘TestMessageControl’
leptonica-1.87.0/prog/messagetest.c:138:10: warning[-Wunused-but-set-variable=]: variable ‘orig_severity’ set but not used
Error: COMPILER_WARNING: [#def13]
leptonica-1.87.0/prog/messagetest.c: scope_hint: In function ‘TestStderrRedirect’
leptonica-1.87.0/prog/messagetest.c:160:7: warning[-Wunused-but-set-variable=]: variable ‘pix1’ set but not used
Error: COMPILER_WARNING: [#def14]
leptonica-1.87.0/prog/overlap_reg.c: scope_hint: In function ‘boxaCombineOverlapsAlt’
leptonica-1.87.0/prog/overlap_reg.c:206:43: warning[-Wunused-but-set-variable=]: variable ‘niters’ set but not used
Error: COMPILER_WARNING: [#def15]
leptonica-1.87.0/prog/printimage.c:87:21: warning[-Wunused-but-set-variable=]: variable ‘ret’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def16]
leptonica-1.87.0/prog/printimage.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/printimage.c:89:12: warning[-Wunused-variable]: unused variable ‘fp’
Error: COMPILER_WARNING (CWE-563): [#def17]
leptonica-1.87.0/prog/printsplitimage.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/printsplitimage.c:78:14: warning[-Wunused-variable]: unused variable ‘fp’
Error: COMPILER_WARNING: [#def18]
leptonica-1.87.0/prog/rasteroptest.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/rasteroptest.c:59:22: warning[-Wunused-but-set-variable=]: variable ‘selectop’ set but not used
Error: COMPILER_WARNING (CWE-1164): [#def19]
leptonica-1.87.0/prog/recog_bootnum1.c:281:7: warning[-Wunused-function]: ‘MakeBootnum2’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def20]
leptonica-1.87.0/prog/rotateorthtest1.c:49:26: warning[-Wunused-variable]: unused variable ‘pixt’
Error: COMPILER_WARNING (CWE-563): [#def21]
leptonica-1.87.0/prog/rotateorthtest1.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/rotateorthtest1.c:50:12: warning[-Wunused-variable]: unused variable ‘pops’
Error: COMPILER_WARNING: [#def22]
leptonica-1.87.0/prog/rotatetest1.c:43:12: warning[-Wunused-but-set-variable=]: variable ‘angle’ set but not used
Error: COMPILER_WARNING: [#def23]
leptonica-1.87.0/prog/rotatetest1.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/rotatetest1.c:44:21: warning[-Wunused-but-set-variable=]: variable ‘fileout’ set but not used
Error: COMPILER_WARNING: [#def24]
leptonica-1.87.0/prog/seedfilltest.c:48:21: warning[-Wunused-but-set-variable=]: variable ‘fileout’ set but not used
Error: COMPILER_WARNING: [#def25]
leptonica-1.87.0/prog/seedfilltest.c:51:12: warning[-Wunused-but-set-variable=]: variable ‘size’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def26]
leptonica-1.87.0/prog/seedfilltest.c:52:41: warning[-Wunused-variable]: unused variable ‘pixt1’
Error: COMPILER_WARNING (CWE-563): [#def27]
leptonica-1.87.0/prog/seedfilltest.c:52:49: warning[-Wunused-variable]: unused variable ‘pixt2’
Error: COMPILER_WARNING (CWE-563): [#def28]
leptonica-1.87.0/prog/seedfilltest.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/seedfilltest.c:52:57: warning[-Wunused-variable]: unused variable ‘pixt3’
Error: COMPILER_WARNING: [#def29]
leptonica-1.87.0/prog/sheartest.c:46:21: warning[-Wunused-but-set-variable=]: variable ‘fileout’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def30]
leptonica-1.87.0/prog/sheartest.c:47:12: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def31]
leptonica-1.87.0/prog/sheartest.c:47:21: warning[-Wunused-variable]: unused variable ‘liney’
Error: COMPILER_WARNING (CWE-563): [#def32]
leptonica-1.87.0/prog/sheartest.c:47:28: warning[-Wunused-variable]: unused variable ‘linex’
Error: COMPILER_WARNING: [#def33]
leptonica-1.87.0/prog/sheartest.c:48:12: warning[-Wunused-but-set-variable=]: variable ‘angle’ set but not used
Error: COMPILER_WARNING: [#def34]
leptonica-1.87.0/prog/sheartest.c:48:19: warning[-Wunused-but-set-variable=]: variable ‘deg2rad’ set but not used
Error: COMPILER_WARNING (CWE-563): [#def35]
leptonica-1.87.0/prog/sheartest.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/sheartest.c:49:35: warning[-Wunused-variable]: unused variable ‘pixd’
Error: COMPILER_WARNING (CWE-563): [#def36]
leptonica-1.87.0/prog/sorttest.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/sorttest.c:45:10: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING: [#def37]
leptonica-1.87.0/prog/warpertest.c: scope_hint: In function ‘main’
leptonica-1.87.0/prog/warpertest.c:56:27: warning[-Wunused-but-set-variable=]: variable ‘index’ set but not used
Error: COMPILER_WARNING (CWE-686): [#def38]
leptonica-1.87.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-dErlau/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘sin’; expected ‘double(double)’
Error: CPPCHECK_WARNING (CWE-476): [#def39]
leptonica-1.87.0/src/adaptmap.c:2111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
leptonica-1.87.0/src/adaptmap.c:2111:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lut’
leptonica-1.87.0/src/adaptmap.c:2088:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/adaptmap.c:2090:8: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2090:8: branch_false: following ‘false’ branch (when ‘pixg’ is non-NULL)...
leptonica-1.87.0/src/adaptmap.c:2092:10: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2092:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2094:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2095:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2106:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2106:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/adaptmap.c:2107:26: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2107:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/adaptmap.c:2108:21: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/adaptmap.c:2108:21: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2109:25: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/adaptmap.c:2110:35: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2111:17: danger: ‘lut + (sizetype)((i << 8) + j)’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
leptonica-1.87.0/src/adaptmap.c:2850:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:17: throw: if ‘pixCopy’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2850:17: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
leptonica-1.87.0/src/adaptmap.c:2854:5: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2854:5: throw: if ‘pixGetDimensions’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2854:5: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
leptonica-1.87.0/src/adaptmap.c:2856:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2856:12: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2856:12: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
leptonica-1.87.0/src/adaptmap.c:2857:11: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2857:11: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2857:11: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
leptonica-1.87.0/src/adaptmap.c:2858:15: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2858:15: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2858:15: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
leptonica-1.87.0/src/adaptmap.c:2859:15: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2859:15: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2859:15: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
leptonica-1.87.0/src/adaptmap.c:2860:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2860:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2860:12: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
leptonica-1.87.0/src/adaptmap.c:2861:5: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2861:5: throw: if ‘pixGetDimensions’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2861:5: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
leptonica-1.87.0/src/adaptmap.c:2872:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2862:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/adaptmap.c:2863:23: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2867:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/adaptmap.c:2868:13: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2871:16: branch_true: following ‘true’ branch (when ‘minval == maxval’)...
leptonica-1.87.0/src/adaptmap.c:2872:17: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2872:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/adaptmap.c:2872:17: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2872:17: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2872:17: danger: ‘iaa’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
leptonica-1.87.0/src/adaptmap.c:2877:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2825:1: enter_function: entry to ‘pixLinearTRCTiled’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: allocated here
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2862:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/adaptmap.c:2863:23: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2871:16: branch_true: following ‘true’ branch (when ‘minval == maxval’)...
leptonica-1.87.0/src/adaptmap.c:2872:17: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2876:23: call_function: calling ‘iaaGetLinearTRC’ from ‘pixLinearTRCTiled’
leptonica-1.87.0/src/adaptmap.c:2876:23: return_function: returning to ‘pixLinearTRCTiled’ from ‘iaaGetLinearTRC’
leptonica-1.87.0/src/adaptmap.c:2877:17: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/adaptmap.c:2877:17: danger: ‘iaa’ leaks here; was allocated at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
leptonica-1.87.0/src/adaptmap.c:2893:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iaa’
leptonica-1.87.0/src/adaptmap.c:2838:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2840:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2842:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2842:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2844:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2844:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2846:9: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2849:23: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2849:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/adaptmap.c:2850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2854:5: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2892:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/adaptmap.c:2893:9: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2893:9: danger: ‘iaa + (long unsigned int)i * 8’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def52]
leptonica-1.87.0/src/adaptmap.c:2926: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ia
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
leptonica-1.87.0/src/adaptmap.c:2926:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ia’
leptonica-1.87.0/src/adaptmap.c:2916:8: branch_false: following ‘false’ branch (when ‘iaa’ is non-NULL)...
leptonica-1.87.0/src/adaptmap.c:2919:12: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2919:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2922:21: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2922:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/adaptmap.c:2924:8: branch_true: following ‘true’ branch (when ‘diff == 0’)...
leptonica-1.87.0/src/adaptmap.c:2924:8: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2925:21: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/adaptmap.c:2926:15: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2926:13: danger: ‘ia + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def54]
leptonica-1.87.0/src/adaptmap.c:2931: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ia
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
leptonica-1.87.0/src/adaptmap.c:2931:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ia’
leptonica-1.87.0/src/adaptmap.c:2916:8: branch_false: following ‘false’ branch (when ‘iaa’ is non-NULL)...
leptonica-1.87.0/src/adaptmap.c:2919:12: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2919:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/adaptmap.c:2922:21: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2922:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/adaptmap.c:2924:8: branch_false: following ‘false’ branch (when ‘diff != 0’)...
leptonica-1.87.0/src/adaptmap.c:2929:25: branch_false: ...to here
leptonica-1.87.0/src/adaptmap.c:2930:21: branch_true: following ‘true’ branch (when ‘i <= diff’)...
leptonica-1.87.0/src/adaptmap.c:2931:31: branch_true: ...to here
leptonica-1.87.0/src/adaptmap.c:2931:13: danger: ‘ia + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def56]
leptonica-1.87.0/src/adaptmap.c:2933: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ia
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
leptonica-1.87.0/src/affine.c:934:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/affine.c:642:1: enter_function: entry to ‘pixAffinePtaGray’
leptonica-1.87.0/src/affine.c:650:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/affine.c:652:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:652:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:654:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:654:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:656:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:656:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:658:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:658:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:660:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:660:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:664:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:664:5: call_function: calling ‘getAffineXformCoeffs’ from ‘pixAffinePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
leptonica-1.87.0/src/affine.c:935:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/affine.c:642:1: enter_function: entry to ‘pixAffinePtaGray’
leptonica-1.87.0/src/affine.c:650:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/affine.c:652:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:652:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:654:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:654:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:656:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:656:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:658:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:658:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:660:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:660:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:664:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:664:5: call_function: calling ‘getAffineXformCoeffs’ from ‘pixAffinePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
leptonica-1.87.0/src/affine.c:936:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/affine.c:642:1: enter_function: entry to ‘pixAffinePtaGray’
leptonica-1.87.0/src/affine.c:650:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/affine.c:652:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:652:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:654:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:654:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:656:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:656:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:658:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:658:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:660:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:660:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:664:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:664:5: call_function: calling ‘getAffineXformCoeffs’ from ‘pixAffinePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
leptonica-1.87.0/src/affine.c:937:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/affine.c:642:1: enter_function: entry to ‘pixAffinePtaGray’
leptonica-1.87.0/src/affine.c:650:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/affine.c:652:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:652:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:654:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:654:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:656:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:656:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:658:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:658:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:660:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:660:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:664:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:664:5: call_function: calling ‘getAffineXformCoeffs’ from ‘pixAffinePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
leptonica-1.87.0/src/affine.c:943:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[0]’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:943:5: danger: ‘a[0]’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
leptonica-1.87.0/src/affine.c:946:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[1]’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:946:5: danger: ‘a[1]’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
leptonica-1.87.0/src/affine.c:949:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[2]’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:949:5: danger: ‘a[2]’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
leptonica-1.87.0/src/affine.c:952:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[3]’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:952:5: danger: ‘a[3]’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
leptonica-1.87.0/src/affine.c:955:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[4]’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:955:5: danger: ‘a[4]’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
leptonica-1.87.0/src/affine.c:958:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[5]’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:958:5: danger: ‘a[5]’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
leptonica-1.87.0/src/affine.c:1020:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[0]’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1020:5: danger: ‘a[0]’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
leptonica-1.87.0/src/affine.c:1023:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[1]’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1023:5: danger: ‘a[1]’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
leptonica-1.87.0/src/affine.c:1026:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a[2]’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1026:5: danger: ‘a[2]’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def70]
leptonica-1.87.0/src/affine.c:1030: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vci
Error: CPPCHECK_WARNING (CWE-476): [#def71]
leptonica-1.87.0/src/affine.c:1031: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vci
Error: CPPCHECK_WARNING (CWE-476): [#def72]
leptonica-1.87.0/src/affine.c:1032: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vci
Error: CPPCHECK_WARNING (CWE-476): [#def73]
leptonica-1.87.0/src/affine.c:1033: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vci
Error: CPPCHECK_WARNING (CWE-476): [#def74]
leptonica-1.87.0/src/affine.c:1034: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vci
Error: CPPCHECK_WARNING (CWE-476): [#def75]
leptonica-1.87.0/src/affine.c:1035: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vci
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
leptonica-1.87.0/src/affine.c:1325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘a[0]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
leptonica-1.87.0/src/affine.c:1325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘a[1]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
leptonica-1.87.0/src/affine.c:1325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘a[2]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
leptonica-1.87.0/src/affine.c:1325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘a[3]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
leptonica-1.87.0/src/affine.c:1325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘a[4]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
leptonica-1.87.0/src/affine.c:1325:16: warning[-Wanalyzer-malloc-leak]: leak of ‘a[5]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a[0]’
leptonica-1.87.0/src/affine.c:1003:1: enter_function: entry to ‘affineInvertXform’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1027:5: call_function: calling ‘gaussjordan’ from ‘affineInvertXform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a[1]’
leptonica-1.87.0/src/affine.c:1003:1: enter_function: entry to ‘affineInvertXform’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1027:5: call_function: calling ‘gaussjordan’ from ‘affineInvertXform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a[2]’
leptonica-1.87.0/src/affine.c:1003:1: enter_function: entry to ‘affineInvertXform’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1027:5: call_function: calling ‘gaussjordan’ from ‘affineInvertXform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a[3]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a[4]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a[5]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘indexc’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1328:25: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1332:9: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1332:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1332:9: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1332:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1332:9: danger: ‘indexc’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘indexr’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1329:25: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1332:9: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1332:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1332:9: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1332:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1332:9: danger: ‘indexr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
leptonica-1.87.0/src/affine.c:1332:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ipiv’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1330:23: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1332:9: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1332:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1332:9: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1332:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1332:9: danger: ‘ipiv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘a[0]’
leptonica-1.87.0/src/affine.c:1003:1: enter_function: entry to ‘affineInvertXform’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1027:5: call_function: calling ‘gaussjordan’ from ‘affineInvertXform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘a[1]’
leptonica-1.87.0/src/affine.c:1003:1: enter_function: entry to ‘affineInvertXform’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1027:5: call_function: calling ‘gaussjordan’ from ‘affineInvertXform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘a[2]’
leptonica-1.87.0/src/affine.c:1003:1: enter_function: entry to ‘affineInvertXform’
leptonica-1.87.0/src/affine.c:1011:8: branch_false: following ‘false’ branch (when ‘pvci’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1013:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1014:8: branch_false: following ‘false’ branch (when ‘vc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1014:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1018:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
leptonica-1.87.0/src/affine.c:1019:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1019:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1018:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
leptonica-1.87.0/src/affine.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1027:5: call_function: calling ‘gaussjordan’ from ‘affineInvertXform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘a[3]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘a[4]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘a[5]’
leptonica-1.87.0/src/affine.c:915:1: enter_function: entry to ‘getAffineXformCoeffs’
leptonica-1.87.0/src/affine.c:924:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/affine.c:926:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:926:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/affine.c:928:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:928:8: branch_false: following ‘false’ branch (when ‘pvc’ is non-NULL)...
leptonica-1.87.0/src/affine.c:931:22: branch_false: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:941:17: branch_true: following ‘true’ branch (when ‘i != 6’)...
leptonica-1.87.0/src/affine.c:942:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:942:29: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:941:17: branch_false: following ‘false’ branch (when ‘i == 6’)...
leptonica-1.87.0/src/affine.c:943:5: branch_false: ...to here
leptonica-1.87.0/src/affine.c:962:5: call_function: calling ‘gaussjordan’ from ‘getAffineXformCoeffs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘indexc’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1328:25: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: following ‘true’ branch (when ‘i < n’)...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1340:21: branch_true: following ‘true’ branch (when ‘j < n’)...
leptonica-1.87.0/src/affine.c:1341:21: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1342:29: branch_true: following ‘true’ branch (when ‘k < n’)...
leptonica-1.87.0/src/affine.c:1343:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1350:25: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1350:25: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1350:25: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1350:25: danger: ‘indexc’ leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘indexr’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1329:25: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: following ‘true’ branch (when ‘i < n’)...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1340:21: branch_true: following ‘true’ branch (when ‘j < n’)...
leptonica-1.87.0/src/affine.c:1341:21: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1342:29: branch_true: following ‘true’ branch (when ‘k < n’)...
leptonica-1.87.0/src/affine.c:1343:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1350:25: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1350:25: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1350:25: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1350:25: danger: ‘indexr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
leptonica-1.87.0/src/affine.c:1350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ipiv’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1330:23: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:1331:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1331:9: branch_false: following ‘false’ branch (when ‘ipiv’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1331:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1338:17: branch_true: following ‘true’ branch (when ‘i < n’)...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1340:21: branch_true: following ‘true’ branch (when ‘j < n’)...
leptonica-1.87.0/src/affine.c:1341:21: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1342:29: branch_true: following ‘true’ branch (when ‘k < n’)...
leptonica-1.87.0/src/affine.c:1343:29: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1350:25: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1350:25: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1350:25: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1350:25: danger: ‘ipiv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
leptonica-1.87.0/src/affine.c:1368:13: warning[-Wanalyzer-malloc-leak]: leak of ‘indexc’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1328:25: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: following ‘true’ branch (when ‘i < n’)...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1340:21: branch_true: following ‘true’ branch (when ‘j < n’)...
leptonica-1.87.0/src/affine.c:1341:21: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1359:12: branch_false: following ‘false’ branch (when ‘icol == irow’)...
leptonica-1.87.0/src/affine.c:1365:15: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1367:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1368:13: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1368:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1368:13: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1368:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1368:13: danger: ‘indexc’ leaks here; was allocated at [(5)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
leptonica-1.87.0/src/affine.c:1368:13: warning[-Wanalyzer-malloc-leak]: leak of ‘indexr’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1329:25: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: following ‘true’ branch (when ‘i < n’)...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1340:21: branch_true: following ‘true’ branch (when ‘j < n’)...
leptonica-1.87.0/src/affine.c:1341:21: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1359:12: branch_false: following ‘false’ branch (when ‘icol == irow’)...
leptonica-1.87.0/src/affine.c:1365:15: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1367:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1368:13: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1368:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1368:13: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1368:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1368:13: danger: ‘indexr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
leptonica-1.87.0/src/affine.c:1368:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ipiv’
leptonica-1.87.0/src/affine.c:1322:8: branch_false: following ‘false’ branch (when ‘a’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1324:8: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1324:8: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1328:25: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1330:23: acquire_memory: allocated here
leptonica-1.87.0/src/affine.c:1331:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/affine.c:1331:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1331:9: branch_false: following ‘false’ branch (when ‘ipiv’ is non-NULL)...
leptonica-1.87.0/src/affine.c:1331:9: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1338:17: branch_true: following ‘true’ branch (when ‘i < n’)...
leptonica-1.87.0/src/affine.c:1338:17: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1340:21: branch_true: following ‘true’ branch (when ‘j < n’)...
leptonica-1.87.0/src/affine.c:1341:21: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1359:12: branch_false: following ‘false’ branch (when ‘icol == irow’)...
leptonica-1.87.0/src/affine.c:1365:15: branch_false: ...to here
leptonica-1.87.0/src/affine.c:1367:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1368:13: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1368:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/affine.c:1368:13: branch_true: ...to here
leptonica-1.87.0/src/affine.c:1368:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/affine.c:1368:13: danger: ‘ipiv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def103]
leptonica-1.87.0/src/affinecompose.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def104]
leptonica-1.87.0/src/affinecompose.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def105]
leptonica-1.87.0/src/affinecompose.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def106]
leptonica-1.87.0/src/affinecompose.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def107]
leptonica-1.87.0/src/affinecompose.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def108]
leptonica-1.87.0/src/affinecompose.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def109]
leptonica-1.87.0/src/affinecompose.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
leptonica-1.87.0/src/affinecompose.c:189:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mat’
leptonica-1.87.0/src/affinecompose.c:186:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/affinecompose.c:189:14: danger: ‘mat’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def111]
leptonica-1.87.0/src/affinecompose.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def112]
leptonica-1.87.0/src/affinecompose.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def113]
leptonica-1.87.0/src/affinecompose.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def114]
leptonica-1.87.0/src/affinecompose.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: CPPCHECK_WARNING (CWE-476): [#def115]
leptonica-1.87.0/src/affinecompose.c:194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mat
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
leptonica-1.87.0/src/affinecompose.c:550:16: warning[-Wanalyzer-malloc-leak]: leak of ‘matt’
leptonica-1.87.0/src/affinecompose.c:616:1: enter_function: entry to ‘l_productMat4’
leptonica-1.87.0/src/affinecompose.c:625:8: branch_false: following ‘false’ branch (when ‘mat1’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:627:8: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:627:8: branch_false: following ‘false’ branch (when ‘mat2’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:629:8: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:629:8: branch_false: following ‘false’ branch (when ‘mat3’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:631:8: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:631:8: branch_false: following ‘false’ branch (when ‘matd’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:634:30: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:634:30: acquire_memory: allocated here
leptonica-1.87.0/src/affinecompose.c:634:8: branch_false: following ‘false’ branch (when ‘matt’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:637:5: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:637:5: call_function: calling ‘l_productMat3’ from ‘l_productMat4’
leptonica-1.87.0/src/affinecompose.c:637:5: return_function: returning to ‘l_productMat4’ from ‘l_productMat3’
leptonica-1.87.0/src/affinecompose.c:638:5: call_function: calling ‘l_productMat2’ from ‘l_productMat4’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
leptonica-1.87.0/src/affinecompose.c:596:16: warning[-Wanalyzer-malloc-leak]: leak of ‘matt’
leptonica-1.87.0/src/affinecompose.c:616:1: enter_function: entry to ‘l_productMat4’
leptonica-1.87.0/src/affinecompose.c:625:8: branch_false: following ‘false’ branch (when ‘mat1’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:627:8: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:627:8: branch_false: following ‘false’ branch (when ‘mat2’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:629:8: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:629:8: branch_false: following ‘false’ branch (when ‘mat3’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:631:8: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:631:8: branch_false: following ‘false’ branch (when ‘matd’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:634:30: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:634:30: acquire_memory: allocated here
leptonica-1.87.0/src/affinecompose.c:634:8: branch_false: following ‘false’ branch (when ‘matt’ is non-NULL)...
leptonica-1.87.0/src/affinecompose.c:637:5: branch_false: ...to here
leptonica-1.87.0/src/affinecompose.c:637:5: call_function: calling ‘l_productMat3’ from ‘l_productMat4’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
leptonica-1.87.0/src/bardecode.c:409:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:372:1: enter_function: entry to ‘barcodeDecode2of5’
leptonica-1.87.0/src/bardecode.c:379:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:383:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:383:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode2of5’
leptonica-1.87.0/src/bardecode.c:383:5: return_function: returning to ‘barcodeDecode2of5’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:384:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:386:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:393:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:400:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:401:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:403:17: branch_true: following ‘true’ branch (when ‘i < ndigits’)...
leptonica-1.87.0/src/bardecode.c:404:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:405:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/bardecode.c:406:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:405:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/bardecode.c:406:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:408:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:409:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:409:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:409:13: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
leptonica-1.87.0/src/bardecode.c:414:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/bardecode.c:372:1: enter_function: entry to ‘barcodeDecode2of5’
leptonica-1.87.0/src/bardecode.c:379:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:383:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:383:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode2of5’
leptonica-1.87.0/src/bardecode.c:383:5: return_function: returning to ‘barcodeDecode2of5’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:384:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:386:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:393:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:400:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:401:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bardecode.c:403:17: branch_true: following ‘true’ branch (when ‘i < ndigits’)...
leptonica-1.87.0/src/bardecode.c:404:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:405:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/bardecode.c:406:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:408:12: branch_false: following ‘false’ branch (when ‘debugflag == 0’)...
leptonica-1.87.0/src/bardecode.c:412:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:412:21: branch_true: following ‘true’ branch (when ‘j != 10’)...
leptonica-1.87.0/src/bardecode.c:413:18: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:413:16: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/bardecode.c:414:27: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:414:17: danger: ‘data + (sizetype)i’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
leptonica-1.87.0/src/bardecode.c:490:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:450:1: enter_function: entry to ‘barcodeDecodeI2of5’
leptonica-1.87.0/src/bardecode.c:457:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:461:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:461:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecodeI2of5’
leptonica-1.87.0/src/bardecode.c:461:5: return_function: returning to ‘barcodeDecodeI2of5’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:462:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:464:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:471:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:478:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:479:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:482:17: branch_true: following ‘true’ branch (when ‘i < npairs’)...
leptonica-1.87.0/src/bardecode.c:483:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:484:21: branch_true: following ‘true’ branch (when ‘j != 5’)...
leptonica-1.87.0/src/bardecode.c:485:40: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:484:21: branch_true: following ‘true’ branch (when ‘j != 5’)...
leptonica-1.87.0/src/bardecode.c:485:40: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:489:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:490:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:490:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:490:13: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
leptonica-1.87.0/src/bardecode.c:495:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/bardecode.c:450:1: enter_function: entry to ‘barcodeDecodeI2of5’
leptonica-1.87.0/src/bardecode.c:457:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:461:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:461:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecodeI2of5’
leptonica-1.87.0/src/bardecode.c:461:5: return_function: returning to ‘barcodeDecodeI2of5’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:462:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:464:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:471:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:478:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:479:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bardecode.c:482:17: branch_true: following ‘true’ branch (when ‘i < npairs’)...
leptonica-1.87.0/src/bardecode.c:483:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:484:21: branch_true: following ‘true’ branch (when ‘j != 5’)...
leptonica-1.87.0/src/bardecode.c:485:40: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:489:12: branch_false: following ‘false’ branch (when ‘debugflag == 0’)...
leptonica-1.87.0/src/bardecode.c:493:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:493:21: branch_true: following ‘true’ branch (when ‘j != 10’)...
leptonica-1.87.0/src/bardecode.c:494:18: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:494:16: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/bardecode.c:495:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:495:17: danger: ‘data + (sizetype)(i * 2)’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
leptonica-1.87.0/src/bardecode.c:586:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:576:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:580:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:581:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:582:21: branch_true: following ‘true’ branch (when ‘j != 6’)...
leptonica-1.87.0/src/bardecode.c:583:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:582:21: branch_true: following ‘true’ branch (when ‘j != 6’)...
leptonica-1.87.0/src/bardecode.c:583:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:585:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:586:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:586:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:586:13: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
leptonica-1.87.0/src/bardecode.c:586:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:577:24: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:580:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:581:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:582:21: branch_true: following ‘true’ branch (when ‘j != 6’)...
leptonica-1.87.0/src/bardecode.c:583:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:582:21: branch_true: following ‘true’ branch (when ‘j != 6’)...
leptonica-1.87.0/src/bardecode.c:583:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:585:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:586:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:586:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:586:13: danger: ‘index’ leaks here; was allocated at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
leptonica-1.87.0/src/bardecode.c:591:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:576:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bardecode.c:580:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:581:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:582:21: branch_true: following ‘true’ branch (when ‘j != 6’)...
leptonica-1.87.0/src/bardecode.c:583:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:585:12: branch_false: following ‘false’ branch (when ‘debugflag == 0’)...
leptonica-1.87.0/src/bardecode.c:589:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:589:21: branch_true: following ‘true’ branch (when ‘j != 47’)...
leptonica-1.87.0/src/bardecode.c:590:18: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:590:16: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/bardecode.c:591:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:591:17: danger: ‘data + (sizetype)i’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
leptonica-1.87.0/src/bardecode.c:592:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘index’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:577:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bardecode.c:580:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:581:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:582:21: branch_true: following ‘true’ branch (when ‘j != 6’)...
leptonica-1.87.0/src/bardecode.c:583:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:585:12: branch_false: following ‘false’ branch (when ‘debugflag == 0’)...
leptonica-1.87.0/src/bardecode.c:589:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:589:21: branch_true: following ‘true’ branch (when ‘j != 47’)...
leptonica-1.87.0/src/bardecode.c:590:18: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:590:16: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/bardecode.c:591:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:592:17: danger: ‘index + (sizetype)i * 4’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-122): [#def126]
leptonica-1.87.0/src/bardecode.c:613:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:613:9: danger: read of 1 byte at offset ‘(long unsigned int)nsymb + 18446744073709551614’ exceeds the buffer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
leptonica-1.87.0/src/bardecode.c:614:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:576:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:613:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:614:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:614:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:614:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:614:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:614:9: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
leptonica-1.87.0/src/bardecode.c:614:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:577:24: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:613:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:614:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:614:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:614:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:614:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:614:9: danger: ‘index’ leaks here; was allocated at [(19)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
leptonica-1.87.0/src/bardecode.c:618:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:576:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:616:8: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:617:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:618:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:618:9: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
leptonica-1.87.0/src/bardecode.c:618:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:577:24: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:616:8: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:617:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:618:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:618:9: danger: ‘index’ leaks here; was allocated at [(19)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
leptonica-1.87.0/src/bardecode.c:625:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:576:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:624:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:625:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:625:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:625:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:625:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:625:9: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
leptonica-1.87.0/src/bardecode.c:625:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:577:24: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:624:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:625:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:625:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bardecode.c:625:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:625:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:625:9: danger: ‘index’ leaks here; was allocated at [(19)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
leptonica-1.87.0/src/bardecode.c:629:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:576:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:627:8: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:628:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:629:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:629:9: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
leptonica-1.87.0/src/bardecode.c:629:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:577:24: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:627:8: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:628:9: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:629:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:629:9: danger: ‘index’ leaks here; was allocated at [(19)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-122): [#def135]
leptonica-1.87.0/src/bardecode.c:633:5: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
leptonica-1.87.0/src/bardecode.c:545:1: enter_function: entry to ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:554:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:558:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:558:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode93’
leptonica-1.87.0/src/bardecode.c:558:5: return_function: returning to ‘barcodeDecode93’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:559:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:561:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:568:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:575:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: following ‘false’ branch (when ‘error == 0’)...
leptonica-1.87.0/src/bardecode.c:601:8: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:633:5: danger: out-of-bounds write
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
leptonica-1.87.0/src/bardecode.c:698:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:660:1: enter_function: entry to ‘barcodeDecode39’
leptonica-1.87.0/src/bardecode.c:667:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:671:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:671:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode39’
leptonica-1.87.0/src/bardecode.c:671:5: return_function: returning to ‘barcodeDecode39’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:674:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:688:13: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:689:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:692:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:693:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:694:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/bardecode.c:695:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:694:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/bardecode.c:695:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:697:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:698:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:698:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:698:13: danger: ‘data’ leaks here; was allocated at [(19)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
leptonica-1.87.0/src/bardecode.c:703:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/bardecode.c:660:1: enter_function: entry to ‘barcodeDecode39’
leptonica-1.87.0/src/bardecode.c:667:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:671:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:671:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecode39’
leptonica-1.87.0/src/bardecode.c:671:5: return_function: returning to ‘barcodeDecode39’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:674:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:688:13: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:689:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bardecode.c:692:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:693:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:694:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/bardecode.c:695:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:697:12: branch_false: following ‘false’ branch (when ‘debugflag == 0’)...
leptonica-1.87.0/src/bardecode.c:701:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:701:21: branch_true: following ‘true’ branch (when ‘j != 43’)...
leptonica-1.87.0/src/bardecode.c:702:18: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:702:16: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/bardecode.c:703:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:703:17: danger: ‘data + (sizetype)i’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
leptonica-1.87.0/src/bardecode.c:780:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:741:1: enter_function: entry to ‘barcodeDecodeCodabar’
leptonica-1.87.0/src/bardecode.c:748:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:752:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:752:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecodeCodabar’
leptonica-1.87.0/src/bardecode.c:752:5: return_function: returning to ‘barcodeDecodeCodabar’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:753:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:756:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:763:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:770:13: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:771:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:774:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:775:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:776:21: branch_true: following ‘true’ branch (when ‘j != 7’)...
leptonica-1.87.0/src/bardecode.c:777:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:776:21: branch_true: following ‘true’ branch (when ‘j != 7’)...
leptonica-1.87.0/src/bardecode.c:777:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:779:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:780:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:780:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:780:13: danger: ‘data’ leaks here; was allocated at [(27)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
leptonica-1.87.0/src/bardecode.c:785:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/bardecode.c:741:1: enter_function: entry to ‘barcodeDecodeCodabar’
leptonica-1.87.0/src/bardecode.c:748:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:752:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:752:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecodeCodabar’
leptonica-1.87.0/src/bardecode.c:752:5: return_function: returning to ‘barcodeDecodeCodabar’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:753:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:756:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:763:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:770:13: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:771:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bardecode.c:774:17: branch_true: following ‘true’ branch (when ‘i < nsymb’)...
leptonica-1.87.0/src/bardecode.c:775:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:776:21: branch_true: following ‘true’ branch (when ‘j != 7’)...
leptonica-1.87.0/src/bardecode.c:777:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:779:12: branch_false: following ‘false’ branch (when ‘debugflag == 0’)...
leptonica-1.87.0/src/bardecode.c:783:9: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:783:21: branch_true: following ‘true’ branch (when ‘j != 16’)...
leptonica-1.87.0/src/bardecode.c:784:18: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:784:16: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/bardecode.c:785:21: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:785:17: danger: ‘data + (sizetype)i’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
leptonica-1.87.0/src/bardecode.c:877:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:827:1: enter_function: entry to ‘barcodeDecodeUpca’
leptonica-1.87.0/src/bardecode.c:834:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:838:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:838:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecodeUpca’
leptonica-1.87.0/src/bardecode.c:838:5: return_function: returning to ‘barcodeDecodeUpca’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:839:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:843:11: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:844:8: branch_false: following ‘false’ branch (when ‘len == 59’)...
leptonica-1.87.0/src/bardecode.c:849:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:850:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
leptonica-1.87.0/src/bardecode.c:850:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:853:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
leptonica-1.87.0/src/bardecode.c:854:14: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:865:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:868:17: branch_true: following ‘true’ branch (when ‘i != 12’)...
leptonica-1.87.0/src/bardecode.c:869:12: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:869:12: branch_true: following ‘true’ branch (when ‘i <= 5’)...
leptonica-1.87.0/src/bardecode.c:870:25: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:873:21: branch_true: following ‘true’ branch (when ‘j != 4’)...
leptonica-1.87.0/src/bardecode.c:874:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:876:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:877:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:877:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:877:13: danger: ‘data’ leaks here; was allocated at [(23)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
leptonica-1.87.0/src/bardecode.c:995:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/bardecode.c:942:1: enter_function: entry to ‘barcodeDecodeEan13’
leptonica-1.87.0/src/bardecode.c:950:8: branch_false: following ‘false’ branch (when ‘barstr’ is non-NULL)...
leptonica-1.87.0/src/bardecode.c:956:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:956:5: call_function: calling ‘barcodeVerifyFormat’ from ‘barcodeDecodeEan13’
leptonica-1.87.0/src/bardecode.c:956:5: return_function: returning to ‘barcodeDecodeEan13’ from ‘barcodeVerifyFormat’
leptonica-1.87.0/src/bardecode.c:957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bardecode.c:961:11: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:962:8: branch_false: following ‘false’ branch (when ‘len == 59’)...
leptonica-1.87.0/src/bardecode.c:967:5: branch_false: ...to here
leptonica-1.87.0/src/bardecode.c:968:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
leptonica-1.87.0/src/bardecode.c:968:17: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:971:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
leptonica-1.87.0/src/bardecode.c:972:14: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:983:20: acquire_memory: allocated here
leptonica-1.87.0/src/bardecode.c:986:17: branch_true: following ‘true’ branch (when ‘i != 12’)...
leptonica-1.87.0/src/bardecode.c:987:12: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:987:12: branch_true: following ‘true’ branch (when ‘i <= 5’)...
leptonica-1.87.0/src/bardecode.c:988:25: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:991:21: branch_true: following ‘true’ branch (when ‘j != 4’)...
leptonica-1.87.0/src/bardecode.c:992:31: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:994:12: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/bardecode.c:995:13: branch_true: ...to here
leptonica-1.87.0/src/bardecode.c:995:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/bardecode.c:995:13: danger: ‘data’ leaks here; was allocated at [(23)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-457): [#def142]
leptonica-1.87.0/src/baseline.c:510: warning[uninitvar]: Uninitialized variable: dely
Error: COMPILER_WARNING (CWE-457): [#def143]
leptonica-1.87.0/src/baseline.c: scope_hint: In function ‘pixGetLocalSkewTransform’
leptonica-1.87.0/src/baseline.c:510:5: warning[-Wmaybe-uninitialized]: ‘dely’ may be used uninitialized
leptonica-1.87.0/src/baseline.c:465:33: note: ‘dely’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def144]
leptonica-1.87.0/src/bbuffer.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bb
Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
leptonica-1.87.0/src/bbuffer.c:139:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bb’
leptonica-1.87.0/src/bbuffer.c:138:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bbuffer.c:139:9: danger: ‘bb’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def146]
leptonica-1.87.0/src/bbuffer.c:143: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bb
Error: CPPCHECK_WARNING (CWE-476): [#def147]
leptonica-1.87.0/src/bbuffer.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bb
Error: CPPCHECK_WARNING (CWE-476): [#def148]
leptonica-1.87.0/src/bilateral.c:330: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
leptonica-1.87.0/src/bilateral.c:330:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bil’
leptonica-1.87.0/src/bilateral.c:317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:320:30: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:326:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:329:26: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:329:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bilateral.c:330:5: danger: ‘bil’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def150]
leptonica-1.87.0/src/bilateral.c:331: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def151]
leptonica-1.87.0/src/bilateral.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def152]
leptonica-1.87.0/src/bilateral.c:333: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def153]
leptonica-1.87.0/src/bilateral.c:334: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def154]
leptonica-1.87.0/src/bilateral.c:335: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def155]
leptonica-1.87.0/src/bilateral.c:336: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def156]
leptonica-1.87.0/src/bilateral.c:337: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
leptonica-1.87.0/src/bilateral.c:337:17: warning[-Wanalyzer-malloc-leak]: leak of ‘bil’
leptonica-1.87.0/src/bilateral.c:317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:320:30: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:326:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:329:26: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:329:26: acquire_memory: allocated here
leptonica-1.87.0/src/bilateral.c:337:17: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/bilateral.c:337:17: danger: ‘bil’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def158]
leptonica-1.87.0/src/bilateral.c:348: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
leptonica-1.87.0/src/bilateral.c:348:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nc’
leptonica-1.87.0/src/bilateral.c:317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:320:30: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:326:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:329:26: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:346:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bilateral.c:347:17: branch_true: following ‘true’ branch (when ‘i < ncomps’)...
leptonica-1.87.0/src/bilateral.c:348:30: branch_true: ...to here
leptonica-1.87.0/src/bilateral.c:348:9: danger: ‘nc + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def160]
leptonica-1.87.0/src/bilateral.c:349: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def161]
leptonica-1.87.0/src/bilateral.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nc
Error: CPPCHECK_WARNING (CWE-476): [#def162]
leptonica-1.87.0/src/bilateral.c:356: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kindex
Error: CPPCHECK_WARNING (CWE-476): [#def163]
leptonica-1.87.0/src/bilateral.c:360: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kindex
Error: CPPCHECK_WARNING (CWE-476): [#def164]
leptonica-1.87.0/src/bilateral.c:361: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bil
Error: CPPCHECK_WARNING (CWE-476): [#def165]
leptonica-1.87.0/src/bilateral.c:366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nc
Error: CPPCHECK_WARNING (CWE-476): [#def166]
leptonica-1.87.0/src/bilateral.c:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nc
Error: CPPCHECK_WARNING (CWE-476): [#def167]
leptonica-1.87.0/src/bilateral.c:369: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kfract
Error: CPPCHECK_WARNING (CWE-476): [#def168]
leptonica-1.87.0/src/bilateral.c:373: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kfract
Error: GCC_ANALYZER_WARNING: [#def169]
leptonica-1.87.0/src/bilateral.c:388:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/bilateral.c:317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:320:30: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:326:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:329:26: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:347:17: branch_false: following ‘false’ branch (when ‘i >= ncomps’)...
leptonica-1.87.0/src/bilateral.c:349:5: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:388:28: danger: operand ‘spatial_stdev’ is of type ‘l_float32’ {{aka ‘float’}}
Error: CPPCHECK_WARNING (CWE-476): [#def170]
leptonica-1.87.0/src/bilateral.c:391: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: spatial
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
leptonica-1.87.0/src/bilateral.c:391:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘spatial’
leptonica-1.87.0/src/bilateral.c:317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:320:30: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:326:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:329:26: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:347:17: branch_false: following ‘false’ branch (when ‘i >= ncomps’)...
leptonica-1.87.0/src/bilateral.c:349:5: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:388:28: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bilateral.c:390:17: branch_true: following ‘true’ branch (when ‘i < border’)...
leptonica-1.87.0/src/bilateral.c:391:39: branch_true: ...to here
leptonica-1.87.0/src/bilateral.c:391:9: danger: ‘spatial + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def172]
leptonica-1.87.0/src/bilateral.c:397: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: range
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
leptonica-1.87.0/src/bilateral.c:397:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘range’
leptonica-1.87.0/src/bilateral.c:317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:320:30: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:326:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bilateral.c:329:26: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:347:17: branch_false: following ‘false’ branch (when ‘i >= ncomps’)...
leptonica-1.87.0/src/bilateral.c:349:5: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:390:17: branch_true: following ‘true’ branch (when ‘i < border’)...
leptonica-1.87.0/src/bilateral.c:391:39: branch_true: ...to here
leptonica-1.87.0/src/bilateral.c:390:17: branch_false: following ‘false’ branch (when ‘i >= border’)...
leptonica-1.87.0/src/bilateral.c:392:5: branch_false: ...to here
leptonica-1.87.0/src/bilateral.c:394:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bilateral.c:396:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/bilateral.c:397:37: branch_true: ...to here
leptonica-1.87.0/src/bilateral.c:397:9: danger: ‘range + (long unsigned int)i * 4’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-457): [#def174]
leptonica-1.87.0/src/binarize.c: scope_hint: In function ‘pixSauvolaBinarize’
leptonica-1.87.0/src/binarize.c:716:47: warning[-Wmaybe-uninitialized]: ‘wplsd’ may be used uninitialized
Error: CPPCHECK_WARNING (CWE-476): [#def175]
leptonica-1.87.0/src/binarize.c:743: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
leptonica-1.87.0/src/binarize.c:743:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/binarize.c:725:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/binarize.c:727:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/binarize.c:729:8: branch_false: ...to here
leptonica-1.87.0/src/binarize.c:729:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/binarize.c:732:8: branch_false: following ‘false’ branch (when ‘factor >= 0.0f’)...
leptonica-1.87.0/src/binarize.c:737:5: branch_false: ...to here
leptonica-1.87.0/src/binarize.c:739:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/binarize.c:741:28: branch_true: ...to here
leptonica-1.87.0/src/binarize.c:741:28: acquire_memory: this call could return NULL
leptonica-1.87.0/src/binarize.c:742:21: branch_true: following ‘true’ branch (when ‘i != 65536’)...
leptonica-1.87.0/src/binarize.c:743:22: branch_true: ...to here
leptonica-1.87.0/src/binarize.c:743:13: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def177]
leptonica-1.87.0/src/binreduce.c:392: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
leptonica-1.87.0/src/binreduce.c:392:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/binreduce.c:390:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/binreduce.c:391:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/binreduce.c:392:18: branch_true: ...to here
leptonica-1.87.0/src/binreduce.c:392:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
leptonica-1.87.0/src/blend.c:2227:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘xmin’
leptonica-1.87.0/src/blend.c:2176:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/blend.c:2178:9: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2178:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2180:5: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2181:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2183:9: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2183:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2186:9: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2186:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2188:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2188:8: branch_false: following ‘false’ branch (when ‘maxfade > 0.0’)...
leptonica-1.87.0/src/blend.c:2189:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2189:8: branch_false: following ‘false’ branch (when ‘maxfade <= 1.0e+0f’)...
leptonica-1.87.0/src/blend.c:2191:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2191:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2195:8: branch_false: following ‘false’ branch (when ‘distfract <= 1.0e+0f’)...
leptonica-1.87.0/src/blend.c:2199:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2199:8: branch_false: following ‘false’ branch (when ‘dir != 0’)...
leptonica-1.87.0/src/blend.c:2203:15: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2203:15: branch_false: following ‘false’ branch (when ‘dir != 1’)...
leptonica-1.87.0/src/blend.c:2207:15: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2220:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/blend.c:2220:8: branch_true: ...to here
leptonica-1.87.0/src/blend.c:2221:21: branch_true: following ‘true’ branch (when ‘j < range’)...
leptonica-1.87.0/src/blend.c:2222:19: branch_true: ...to here
leptonica-1.87.0/src/blend.c:2222:19: branch_false: following ‘false’ branch (when ‘dir != 0’)...
leptonica-1.87.0/src/blend.c:2223:60: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2226:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/blend.c:2227:27: branch_true: ...to here
leptonica-1.87.0/src/blend.c:2227:27: danger: use of uninitialized value ‘xmin’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def180]
leptonica-1.87.0/src/blend.c:2231:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘xmin’
leptonica-1.87.0/src/blend.c:2176:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/blend.c:2178:9: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2178:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2180:5: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2181:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2183:9: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2183:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2186:9: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2186:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2188:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2188:8: branch_false: following ‘false’ branch (when ‘maxfade > 0.0’)...
leptonica-1.87.0/src/blend.c:2189:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2189:8: branch_false: following ‘false’ branch (when ‘maxfade <= 1.0e+0f’)...
leptonica-1.87.0/src/blend.c:2191:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2191:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2195:8: branch_false: following ‘false’ branch (when ‘distfract <= 1.0e+0f’)...
leptonica-1.87.0/src/blend.c:2199:8: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2199:8: branch_false: following ‘false’ branch (when ‘dir != 0’)...
leptonica-1.87.0/src/blend.c:2203:15: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2203:15: branch_false: following ‘false’ branch (when ‘dir != 1’)...
leptonica-1.87.0/src/blend.c:2207:15: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2220:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/blend.c:2220:8: branch_true: ...to here
leptonica-1.87.0/src/blend.c:2221:21: branch_true: following ‘true’ branch (when ‘j < range’)...
leptonica-1.87.0/src/blend.c:2222:19: branch_true: ...to here
leptonica-1.87.0/src/blend.c:2222:19: branch_false: following ‘false’ branch (when ‘dir != 0’)...
leptonica-1.87.0/src/blend.c:2223:60: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2226:20: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/blend.c:2231:52: branch_false: ...to here
leptonica-1.87.0/src/blend.c:2231:52: danger: use of uninitialized value ‘xmin’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def181]
leptonica-1.87.0/src/bmf.c:153:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmf’
leptonica-1.87.0/src/bmf.c:118:1: enter_function: entry to ‘bmfCreate’
leptonica-1.87.0/src/bmf.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmf.c:128:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bmf.c:130:8: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
leptonica-1.87.0/src/bmf.c:134:16: branch_false: ...to here
leptonica-1.87.0/src/bmf.c:134:16: call_function: calling ‘pixaGetFont’ from ‘bmfCreate’
leptonica-1.87.0/src/bmf.c:134:16: return_function: returning to ‘bmfCreate’ from ‘pixaGetFont’
leptonica-1.87.0/src/bmf.c:136:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmf.c:153:8: branch_false: ...to here
leptonica-1.87.0/src/bmf.c:153:5: danger: ‘bmf’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
leptonica-1.87.0/src/bmf.c:181:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmf’
leptonica-1.87.0/src/bmf.c:118:1: enter_function: entry to ‘bmfCreate’
leptonica-1.87.0/src/bmf.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmf.c:128:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bmf.c:130:8: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
leptonica-1.87.0/src/bmf.c:134:16: branch_false: ...to here
leptonica-1.87.0/src/bmf.c:136:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bmf.c:137:13: branch_true: ...to here
leptonica-1.87.0/src/bmf.c:138:20: call_function: calling ‘pixaGenerateFontFromFile’ from ‘bmfCreate’
leptonica-1.87.0/src/bmf.c:138:20: return_function: returning to ‘bmfCreate’ from ‘pixaGenerateFontFromFile’
leptonica-1.87.0/src/bmf.c:140:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bmf.c:141:17: branch_true: ...to here
leptonica-1.87.0/src/bmf.c:142:24: call_function: calling ‘pixaGenerateFontFromString’ from ‘bmfCreate’
leptonica-1.87.0/src/bmf.c:142:24: return_function: returning to ‘bmfCreate’ from ‘pixaGenerateFontFromString’
leptonica-1.87.0/src/bmf.c:148:8: branch_true: following ‘true’ branch (when ‘pixa’ is NULL)...
leptonica-1.87.0/src/bmf.c:149:9: branch_true: ...to here
leptonica-1.87.0/src/bmf.c:149:9: call_function: calling ‘bmfDestroy’ from ‘bmfCreate’
Error: COMPILER_WARNING (CWE-457): [#def183]
leptonica-1.87.0/src/bmf.c: scope_hint: In function ‘pixaGenerateFont’
leptonica-1.87.0/src/bmf.c:610:21: warning[-Wmaybe-uninitialized]: ‘yval’ may be used uninitialized
leptonica-1.87.0/src/bmf.c:552:46: note: ‘yval’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def184]
leptonica-1.87.0/src/bmf.c:798: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fonttab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
leptonica-1.87.0/src/bmf.c:798:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fonttab’
leptonica-1.87.0/src/bmf.c:791:8: branch_false: following ‘false’ branch (when ‘bmf’ is non-NULL)...
leptonica-1.87.0/src/bmf.c:795:26: branch_false: ...to here
leptonica-1.87.0/src/bmf.c:795:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bmf.c:797:17: branch_true: following ‘true’ branch (when ‘i != 128’)...
leptonica-1.87.0/src/bmf.c:798:16: branch_true: ...to here
leptonica-1.87.0/src/bmf.c:798:9: danger: ‘fonttab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def186]
leptonica-1.87.0/src/bmf.c:800: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fonttab
Error: CPPCHECK_WARNING (CWE-476): [#def187]
leptonica-1.87.0/src/bmf.c:805: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baselinetab
Error: CPPCHECK_WARNING (CWE-476): [#def188]
leptonica-1.87.0/src/bmf.c:807: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baselinetab
Error: CPPCHECK_WARNING (CWE-476): [#def189]
leptonica-1.87.0/src/bmf.c:809: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baselinetab
Error: CPPCHECK_WARNING (CWE-476): [#def190]
leptonica-1.87.0/src/bmf.c:810: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baselinetab
Error: CPPCHECK_WARNING (CWE-476): [#def191]
leptonica-1.87.0/src/bmf.c:812: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baselinetab
Error: COMPILER_WARNING (CWE-563): [#def192]
leptonica-1.87.0/src/bmfdata.h:50:21: warning[-Wunused-variable]: ‘inputfonts’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def193]
leptonica-1.87.0/prog/recog_bootnum1.c:62: included_from: Included from here.
leptonica-1.87.0/src/bmfdata.h:55:21: warning[-Wunused-variable]: ‘outputfonts’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
leptonica-1.87.0/src/bmpio.c:554:46: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pquad’
leptonica-1.87.0/src/bmpio.c:476:8: branch_true: following ‘true’ branch (when ‘pfsize’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:476:17: branch_true: ...to here
leptonica-1.87.0/src/bmpio.c:477:8: branch_false: following ‘false’ branch (when ‘pfdata’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:479:8: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:479:8: branch_false: following ‘false’ branch (when ‘pfsize’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:481:8: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:481:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:485:17: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:526:8: branch_false: following ‘false’ branch (when ‘fimagebytes <= 1600000000’)...
leptonica-1.87.0/src/bmpio.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmpio.c:536:24: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:536:15: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmpio.c:541:13: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:541:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmpio.c:546:13: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:549:30: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bmpio.c:552:18: branch_true: following ‘true’ branch (when ‘i < ncolors’)...
leptonica-1.87.0/src/bmpio.c:554:46: branch_true: ...to here
leptonica-1.87.0/src/bmpio.c:554:46: danger: ‘pquad’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def195]
leptonica-1.87.0/src/bmpio.c:579: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def196]
leptonica-1.87.0/src/bmpio.c:580: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def197]
leptonica-1.87.0/src/bmpio.c:581: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def198]
leptonica-1.87.0/src/bmpio.c:582: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def199]
leptonica-1.87.0/src/bmpio.c:583: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def200]
leptonica-1.87.0/src/bmpio.c:584: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def201]
leptonica-1.87.0/src/bmpio.c:585: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def202]
leptonica-1.87.0/src/bmpio.c:586: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def203]
leptonica-1.87.0/src/bmpio.c:587: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-476): [#def204]
leptonica-1.87.0/src/bmpio.c:588: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmpfh
Error: CPPCHECK_WARNING (CWE-682): [#def205]
leptonica-1.87.0/src/bmpio.c:602: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def206]
leptonica-1.87.0/src/bmpio.c:620: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def207]
leptonica-1.87.0/src/bmpio.c:650:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&pel’
leptonica-1.87.0/src/bmpio.c:476:8: branch_true: following ‘true’ branch (when ‘pfsize’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:476:17: branch_true: ...to here
leptonica-1.87.0/src/bmpio.c:477:8: branch_false: following ‘false’ branch (when ‘pfdata’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:479:8: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:479:8: branch_false: following ‘false’ branch (when ‘pfsize’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:481:8: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:481:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:485:17: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:526:8: branch_false: following ‘false’ branch (when ‘fimagebytes <= 1600000000’)...
leptonica-1.87.0/src/bmpio.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:605:8: branch_false: following ‘false’ branch (when ‘ncolors <= 0’)...
leptonica-1.87.0/src/bmpio.c:612:9: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:621:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmpio.c:640:29: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:642:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bmpio.c:642:21: branch_true: ...to here
leptonica-1.87.0/src/bmpio.c:650:17: danger: use of uninitialized value ‘&pel’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def208]
leptonica-1.87.0/src/bmpio.c:655:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(unsigned char *)(&pel[0])’
leptonica-1.87.0/src/bmpio.c:476:8: branch_true: following ‘true’ branch (when ‘pfsize’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:476:17: branch_true: ...to here
leptonica-1.87.0/src/bmpio.c:477:8: branch_false: following ‘false’ branch (when ‘pfdata’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:479:8: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:479:8: branch_false: following ‘false’ branch (when ‘pfsize’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:481:8: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:481:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/bmpio.c:485:17: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:526:8: branch_false: following ‘false’ branch (when ‘fimagebytes <= 1600000000’)...
leptonica-1.87.0/src/bmpio.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:605:8: branch_false: following ‘false’ branch (when ‘ncolors <= 0’)...
leptonica-1.87.0/src/bmpio.c:612:9: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:621:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmpio.c:640:29: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:642:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bmpio.c:642:21: branch_true: ...to here
leptonica-1.87.0/src/bmpio.c:643:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/bmpio.c:653:16: branch_false: ...to here
leptonica-1.87.0/src/bmpio.c:655:21: danger: use of uninitialized value ‘*(unsigned char *)(&pel[0])’ here
Error: CPPCHECK_WARNING (CWE-476): [#def209]
leptonica-1.87.0/src/boxbasic.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: box
Error: CPPCHECK_WARNING (CWE-476): [#def210]
leptonica-1.87.0/src/boxbasic.c:450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boxa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
leptonica-1.87.0/src/boxbasic.c:450:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘boxa’
leptonica-1.87.0/src/boxbasic.c:2018:1: enter_function: entry to ‘boxaReadStream’
leptonica-1.87.0/src/boxbasic.c:2028:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:2030:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:2030:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:2032:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:2032:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:2034:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:2034:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:2036:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:2036:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:2038:8: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:2040:17: call_function: calling ‘boxaCreate’ from ‘boxaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def212]
leptonica-1.87.0/src/boxbasic.c:451: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boxa
Error: CPPCHECK_WARNING (CWE-476): [#def213]
leptonica-1.87.0/src/boxbasic.c:452: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boxa
Error: CPPCHECK_WARNING (CWE-476): [#def214]
leptonica-1.87.0/src/boxbasic.c:453: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boxa
Error: CPPCHECK_WARNING (CWE-476): [#def215]
leptonica-1.87.0/src/boxbasic.c:1153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
leptonica-1.87.0/src/boxbasic.c:1153:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘baa’
leptonica-1.87.0/src/boxbasic.c:1787:1: enter_function: entry to ‘boxaaReadStream’
leptonica-1.87.0/src/boxbasic.c:1797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:1799:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:1799:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:1801:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:1801:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:1803:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:1803:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:1805:9: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:1805:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxbasic.c:1807:8: branch_false: ...to here
leptonica-1.87.0/src/boxbasic.c:1809:16: call_function: calling ‘boxaaCreate’ from ‘boxaaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def217]
leptonica-1.87.0/src/boxbasic.c:1157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baa
Error: CPPCHECK_WARNING (CWE-476): [#def218]
leptonica-1.87.0/src/boxbasic.c:1158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: baa
Error: GCC_ANALYZER_WARNING (CWE-457): [#def219]
leptonica-1.87.0/src/boxfunc2.c:332:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cosa’
leptonica-1.87.0/src/boxfunc2.c:306:8: branch_false: following ‘false’ branch (when ‘boxs’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:308:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:308:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:312:5: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: following ‘false’ branch (when ‘angle == 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:327:12: branch_false: following ‘false’ branch (when ‘angle != 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:330:20: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:332:18: danger: use of uninitialized value ‘cosa’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def220]
leptonica-1.87.0/src/boxfunc2.c:351:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cosa’
leptonica-1.87.0/src/boxfunc2.c:306:8: branch_false: following ‘false’ branch (when ‘boxs’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:308:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:308:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:312:5: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: following ‘false’ branch (when ‘angle == 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:346:12: branch_false: following ‘false’ branch (when ‘angle != 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:349:20: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:351:18: danger: use of uninitialized value ‘cosa’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def221]
leptonica-1.87.0/src/boxfunc2.c:367:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cosa’
leptonica-1.87.0/src/boxfunc2.c:306:8: branch_false: following ‘false’ branch (when ‘boxs’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:308:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:308:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:312:5: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: following ‘false’ branch (when ‘angle == 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:359:12: branch_false: following ‘false’ branch (when ‘angle != 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:365:20: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:367:18: danger: use of uninitialized value ‘cosa’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def222]
leptonica-1.87.0/src/boxfunc2.c:386:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cosa’
leptonica-1.87.0/src/boxfunc2.c:306:8: branch_false: following ‘false’ branch (when ‘boxs’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:308:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:308:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:312:5: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: following ‘false’ branch (when ‘angle == 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:378:12: branch_false: following ‘false’ branch (when ‘angle != 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:384:20: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:386:18: danger: use of uninitialized value ‘cosa’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def223]
leptonica-1.87.0/src/boxfunc2.c:407:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cosa’
leptonica-1.87.0/src/boxfunc2.c:306:8: branch_false: following ‘false’ branch (when ‘boxs’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:308:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:308:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:312:5: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: following ‘false’ branch (when ‘angle == 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:399:12: branch_false: following ‘false’ branch (when ‘angle != 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:405:20: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:407:18: danger: use of uninitialized value ‘cosa’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def224]
leptonica-1.87.0/src/boxfunc2.c:432:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cosa’
leptonica-1.87.0/src/boxfunc2.c:306:8: branch_false: following ‘false’ branch (when ‘boxs’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:308:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:308:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:312:5: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: following ‘false’ branch (when ‘angle == 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:315:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:424:12: branch_false: following ‘false’ branch (when ‘angle != 0.0f’)...
leptonica-1.87.0/src/boxfunc2.c:430:20: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:432:18: danger: use of uninitialized value ‘cosa’ here
Error: CPPCHECK_WARNING (CWE-457): [#def225]
leptonica-1.87.0/src/boxfunc2.c:1807: warning[uninitvar]: Uninitialized variable: nbox
Error: GCC_ANALYZER_WARNING (CWE-457): [#def226]
leptonica-1.87.0/src/boxfunc2.c:1807:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nbox’
leptonica-1.87.0/src/boxfunc2.c:1788:8: branch_false: following ‘false’ branch (when ‘baas’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:1790:15: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:1790:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:1790:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:1794:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc2.c:1807:12: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:1807:12: danger: use of uninitialized value ‘nbox’ here
Error: COMPILER_WARNING (CWE-457): [#def227]
leptonica-1.87.0/src/boxfunc2.c: scope_hint: In function ‘boxaaTranspose’
leptonica-1.87.0/src/boxfunc2.c:1807:12: warning[-Wmaybe-uninitialized]: ‘nbox’ may be used uninitialized
leptonica-1.87.0/src/boxfunc2.c:1783:25: note: ‘nbox’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def228]
leptonica-1.87.0/src/boxfunc2.c:1882:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘maxindex’
leptonica-1.87.0/src/boxfunc2.c:1848:8: branch_false: following ‘false’ branch (when ‘baa’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:1850:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:1850:8: branch_false: following ‘false’ branch (when ‘box’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:1852:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:1852:8: branch_false: following ‘false’ branch (when ‘pindex’ is non-NULL)...
leptonica-1.87.0/src/boxfunc2.c:1855:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc2.c:1881:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/boxfunc2.c:1882:9: branch_true: ...to here
leptonica-1.87.0/src/boxfunc2.c:1882:9: danger: use of uninitialized value ‘maxindex’ here
Error: COMPILER_WARNING (CWE-457): [#def229]
leptonica-1.87.0/src/boxfunc2.c: scope_hint: In function ‘boxaaAlignBox’
leptonica-1.87.0/src/boxfunc2.c:1882:17: warning[-Wmaybe-uninitialized]: ‘maxindex’ may be used uninitialized
leptonica-1.87.0/src/boxfunc2.c:1843:48: note: ‘maxindex’ was declared here
Error: CPPCHECK_WARNING (CWE-457): [#def230]
leptonica-1.87.0/src/boxfunc5.c:649: warning[uninitvar]: Uninitialized variable: fvarm
Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
leptonica-1.87.0/src/boxfunc5.c:1525:15: warning[-Wanalyzer-malloc-leak]: leak of ‘indic’
leptonica-1.87.0/src/boxfunc5.c:1515:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1522:29: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1522:29: acquire_memory: allocated here
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: following ‘false’ branch (when ‘indic’ is non-NULL)...
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/boxfunc5.c:1525:15: branch_true: ...to here
leptonica-1.87.0/src/boxfunc5.c:1525:15: throw: if ‘boxaGetValidBox’ throws an exception...
leptonica-1.87.0/src/boxfunc5.c:1525:15: danger: ‘indic’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
leptonica-1.87.0/src/boxfunc5.c:1528:9: warning[-Wanalyzer-malloc-leak]: leak of ‘indic’
leptonica-1.87.0/src/boxfunc5.c:1515:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1522:29: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1522:29: acquire_memory: allocated here
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: following ‘false’ branch (when ‘indic’ is non-NULL)...
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/boxfunc5.c:1525:15: branch_true: ...to here
leptonica-1.87.0/src/boxfunc5.c:1526:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1528:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1528:9: throw: if ‘boxDestroy’ throws an exception...
leptonica-1.87.0/src/boxfunc5.c:1528:9: danger: ‘indic’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
leptonica-1.87.0/src/boxfunc5.c:1533:15: warning[-Wanalyzer-malloc-leak]: leak of ‘indic’
leptonica-1.87.0/src/boxfunc5.c:1515:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1522:29: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1522:29: acquire_memory: allocated here
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: following ‘false’ branch (when ‘indic’ is non-NULL)...
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1526:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1528:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1532:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/boxfunc5.c:1533:15: branch_true: ...to here
leptonica-1.87.0/src/boxfunc5.c:1533:15: throw: if ‘boxaGetValidBox’ throws an exception...
leptonica-1.87.0/src/boxfunc5.c:1533:15: danger: ‘indic’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
leptonica-1.87.0/src/boxfunc5.c:1551:24: warning[-Wanalyzer-malloc-leak]: leak of ‘indic’
leptonica-1.87.0/src/boxfunc5.c:1515:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1522:29: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1522:29: acquire_memory: allocated here
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: following ‘false’ branch (when ‘indic’ is non-NULL)...
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1526:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1528:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1532:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/boxfunc5.c:1533:15: branch_true: ...to here
leptonica-1.87.0/src/boxfunc5.c:1536:29: branch_false: following ‘false’ branch (when ‘j == -1’)...
leptonica-1.87.0/src/boxfunc5.c:1542:18: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1551:24: throw: if ‘boxaGetBox’ throws an exception...
leptonica-1.87.0/src/boxfunc5.c:1551:24: danger: ‘indic’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
leptonica-1.87.0/src/boxfunc5.c:1554:9: warning[-Wanalyzer-malloc-leak]: leak of ‘indic’
leptonica-1.87.0/src/boxfunc5.c:1515:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1516:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1522:29: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1522:29: acquire_memory: allocated here
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: following ‘false’ branch (when ‘indic’ is non-NULL)...
leptonica-1.87.0/src/boxfunc5.c:1522:8: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1526:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1528:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1524:17: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1532:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/boxfunc5.c:1533:15: branch_true: ...to here
leptonica-1.87.0/src/boxfunc5.c:1534:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/boxfunc5.c:1554:9: branch_false: ...to here
leptonica-1.87.0/src/boxfunc5.c:1554:9: throw: if ‘boxDestroy’ throws an exception...
leptonica-1.87.0/src/boxfunc5.c:1554:9: danger: ‘indic’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def236]
leptonica-1.87.0/src/bytearray.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ba
Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
leptonica-1.87.0/src/bytearray.c:105:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ba’
leptonica-1.87.0/src/bytearray.c:104:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/bytearray.c:105:5: danger: ‘calloc(1, 32)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def238]
leptonica-1.87.0/src/bytearray.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ba
Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
leptonica-1.87.0/src/bytearray.c:260:1: warning[-Wanalyzer-malloc-leak]: leak of ‘ba’
leptonica-1.87.0/src/bytearray.c:98:1: enter_function: entry to ‘l_byteaCreate’
leptonica-1.87.0/src/bytearray.c:104:21: acquire_memory: allocated here
leptonica-1.87.0/src/bytearray.c:106:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/bytearray.c:107:9: branch_true: ...to here
leptonica-1.87.0/src/bytearray.c:107:9: call_function: calling ‘l_byteaDestroy’ from ‘l_byteaCreate’
Error: CPPCHECK_WARNING (CWE-476): [#def240]
leptonica-1.87.0/src/ccbord.c:333: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccba
Error: GCC_ANALYZER_WARNING (CWE-476): [#def241]
leptonica-1.87.0/src/ccbord.c:333:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ccba’
leptonica-1.87.0/src/ccbord.c:2379:1: enter_function: entry to ‘ccbaReadStream’
leptonica-1.87.0/src/ccbord.c:2402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2404:15: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2406:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2410:5: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2412:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2416:5: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2418:17: call_function: calling ‘ccbaCreate’ from ‘ccbaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def242]
leptonica-1.87.0/src/ccbord.c:334: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccba
Error: CPPCHECK_WARNING (CWE-476): [#def243]
leptonica-1.87.0/src/ccbord.c:335: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccba
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
leptonica-1.87.0/src/ccbord.c:363:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ccba’
leptonica-1.87.0/src/ccbord.c:2379:1: enter_function: entry to ‘ccbaReadStream’
leptonica-1.87.0/src/ccbord.c:2402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2404:15: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2406:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2410:5: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2412:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2416:5: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2418:17: call_function: calling ‘ccbaCreate’ from ‘ccbaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def245]
leptonica-1.87.0/src/ccbord.c:390: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccb
Error: CPPCHECK_WARNING (CWE-476): [#def246]
leptonica-1.87.0/src/ccbord.c:392: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccb
Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
leptonica-1.87.0/src/ccbord.c:392:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ccb’
leptonica-1.87.0/src/ccbord.c:389:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/ccbord.c:391:8: branch_true: following ‘true’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:392:20: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:392:9: danger: ‘ccb’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
leptonica-1.87.0/src/ccbord.c:392:20: warning[-Wanalyzer-malloc-leak]: leak of ‘ccb’
leptonica-1.87.0/src/ccbord.c:389:21: acquire_memory: allocated here
leptonica-1.87.0/src/ccbord.c:391:8: branch_true: following ‘true’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:392:20: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:392:20: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/ccbord.c:392:20: danger: ‘ccb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
leptonica-1.87.0/src/ccbord.c:393:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ccb’
leptonica-1.87.0/src/ccbord.c:389:21: acquire_memory: allocated here
leptonica-1.87.0/src/ccbord.c:391:8: branch_false: following ‘false’ branch (when ‘pixs’ is NULL)...
leptonica-1.87.0/src/ccbord.c:393:12: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:393:12: throw: if ‘boxaCreate’ throws an exception...
leptonica-1.87.0/src/ccbord.c:393:12: danger: ‘ccb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def250]
leptonica-1.87.0/src/ccbord.c:394: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccb
Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
leptonica-1.87.0/src/ccbord.c:394:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ccb’
leptonica-1.87.0/src/ccbord.c:389:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/ccbord.c:391:8: branch_false: following ‘false’ branch (when ‘pixs’ is NULL)...
leptonica-1.87.0/src/ccbord.c:393:12: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:394:5: danger: ‘ccb’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
leptonica-1.87.0/src/ccbord.c:395:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ccb’
leptonica-1.87.0/src/ccbord.c:389:21: acquire_memory: allocated here
leptonica-1.87.0/src/ccbord.c:391:8: branch_false: following ‘false’ branch (when ‘pixs’ is NULL)...
leptonica-1.87.0/src/ccbord.c:393:12: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:395:13: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/ccbord.c:395:13: danger: ‘ccb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def253]
leptonica-1.87.0/src/ccbord.c:396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccb
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
leptonica-1.87.0/src/ccbord.c:397:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ccb’
leptonica-1.87.0/src/ccbord.c:389:21: acquire_memory: allocated here
leptonica-1.87.0/src/ccbord.c:391:8: branch_false: following ‘false’ branch (when ‘pixs’ is NULL)...
leptonica-1.87.0/src/ccbord.c:393:12: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:397:13: throw: if ‘ptaaCreate’ throws an exception...
leptonica-1.87.0/src/ccbord.c:397:13: danger: ‘ccb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def255]
leptonica-1.87.0/src/ccbord.c:398: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ccb
Error: COMPILER_WARNING (CWE-457): [#def256]
leptonica-1.87.0/src/ccbord.c:720:16: warning[-Wmaybe-uninitialized]: ‘xh’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘pixGetAllCCBorders’
leptonica-1.87.0/src/ccbord.c:647:26: note: ‘xh’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def257]
leptonica-1.87.0/src/ccbord.c:1007:9: warning[-Wmaybe-uninitialized]: ‘xs’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘pixGetAllCCBorders’
leptonica-1.87.0/src/ccbord.c:648:11: note: ‘xs’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def258]
leptonica-1.87.0/src/ccbord.c:1110:8: warning[-Wmaybe-uninitialized]: ‘fpx’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1962:10: note: ‘fpx’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def259]
leptonica-1.87.0/src/ccbord.c:1110:8: warning[-Wmaybe-uninitialized]: ‘spx’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1962:20: note: ‘spx’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def260]
leptonica-1.87.0/src/ccbord.c:1111:8: warning[-Wmaybe-uninitialized]: ‘fpy’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1962:15: note: ‘fpy’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def261]
leptonica-1.87.0/src/ccbord.c:1111:8: warning[-Wmaybe-uninitialized]: ‘spy’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1962:25: note: ‘spy’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
leptonica-1.87.0/src/ccbord.c:1543:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ccb’
leptonica-1.87.0/src/ccbord.c:1520:1: enter_function: entry to ‘ccbaGenerateSinglePath’
leptonica-1.87.0/src/ccbord.c:1536:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1539:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaGenerateSinglePath’
leptonica-1.87.0/src/ccbord.c:1541:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1542:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1542:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaGenerateSinglePath’
leptonica-1.87.0/src/ccbord.c:1542:15: return_function: returning to ‘ccbaGenerateSinglePath’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:1543:12: branch_true: following ‘true’ branch (when ‘ptaa’ is NULL)...
leptonica-1.87.0/src/ccbord.c:1544:13: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1541:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1542:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1542:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaGenerateSinglePath’
leptonica-1.87.0/src/ccbord.c:1542:15: return_function: returning to ‘ccbaGenerateSinglePath’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:1542:9: release_memory: ‘ccb’ is NULL
leptonica-1.87.0/src/ccbord.c:1543:13: danger: dereference of NULL ‘ccbaGetCcb(ccba, i)’
Error: COMPILER_WARNING (CWE-457): [#def263]
leptonica-1.87.0/src/ccbord.c: scope_hint: In function ‘ccbaGenerateSinglePath’
leptonica-1.87.0/src/ccbord.c:1575:16: warning[-Wmaybe-uninitialized]: ‘len’ may be used uninitialized
leptonica-1.87.0/src/ccbord.c:1522:45: note: ‘len’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def264]
leptonica-1.87.0/src/ccbord.c:2043:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fpx’
leptonica-1.87.0/src/ccbord.c:1959:1: enter_function: entry to ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1970:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1973:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1975:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1976:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1977:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1977:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1977:15: return_function: returning to ‘ccbaDisplayImage1’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:1978:12: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1985:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1985:12: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1991:14: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1998:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:1999:17: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2034:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:2035:29: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2035:20: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2054:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2043:17: danger: use of uninitialized value ‘fpx’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def265]
leptonica-1.87.0/src/ccbord.c:2043:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fpy’
leptonica-1.87.0/src/ccbord.c:1959:1: enter_function: entry to ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1970:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1973:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1975:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1976:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1977:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1977:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1977:15: return_function: returning to ‘ccbaDisplayImage1’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:1978:12: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1985:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1985:12: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1991:14: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1998:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:1999:17: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2034:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:2035:29: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2035:20: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2054:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2043:17: danger: use of uninitialized value ‘fpy’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def266]
leptonica-1.87.0/src/ccbord.c:2043:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘spx’
leptonica-1.87.0/src/ccbord.c:1959:1: enter_function: entry to ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1970:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1973:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1975:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1976:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1977:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1977:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1977:15: return_function: returning to ‘ccbaDisplayImage1’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:1978:12: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1985:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1985:12: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1991:14: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1998:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:1999:17: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2034:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:2035:29: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2035:20: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2054:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2043:17: danger: use of uninitialized value ‘spx’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def267]
leptonica-1.87.0/src/ccbord.c:2043:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘spy’
leptonica-1.87.0/src/ccbord.c:1959:1: enter_function: entry to ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1970:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1973:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1975:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1976:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1977:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1977:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaDisplayImage1’
leptonica-1.87.0/src/ccbord.c:1977:15: return_function: returning to ‘ccbaDisplayImage1’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:1978:12: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1985:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1985:12: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:1991:14: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1998:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:1999:17: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2034:16: branch_true: following ‘true’ branch (when ‘j == 0’)...
leptonica-1.87.0/src/ccbord.c:2035:29: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2035:20: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2054:13: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:1992:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:1993:24: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:1993:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:1998:16: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2010:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2015:19: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2043:17: danger: use of uninitialized value ‘spy’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
leptonica-1.87.0/src/ccbord.c:2270:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ccb’
leptonica-1.87.0/src/ccbord.c:2233:1: enter_function: entry to ‘ccbaWriteStream’
leptonica-1.87.0/src/ccbord.c:2253:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:2255:8: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2255:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:2258:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2258:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2261:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaWriteStream’
leptonica-1.87.0/src/ccbord.c:2268:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:2269:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2269:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaWriteStream’
leptonica-1.87.0/src/ccbord.c:2269:15: return_function: returning to ‘ccbaWriteStream’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:2269:9: release_memory: ‘ccb’ is NULL
leptonica-1.87.0/src/ccbord.c:2270:32: danger: dereference of NULL ‘ccbaGetCcb(ccba, i)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def269]
leptonica-1.87.0/src/ccbord.c:2302:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bval’
leptonica-1.87.0/src/ccbord.c:2233:1: enter_function: entry to ‘ccbaWriteStream’
leptonica-1.87.0/src/ccbord.c:2253:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:2255:8: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2255:8: branch_false: following ‘false’ branch (when ‘ccba’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:2258:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2258:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2261:11: call_function: inlined call to ‘ccbaGetCount’ from ‘ccbaWriteStream’
leptonica-1.87.0/src/ccbord.c:2268:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:2269:15: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2269:15: call_function: calling ‘ccbaGetCcb’ from ‘ccbaWriteStream’
leptonica-1.87.0/src/ccbord.c:2269:15: return_function: returning to ‘ccbaWriteStream’ from ‘ccbaGetCcb’
leptonica-1.87.0/src/ccbord.c:2270:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2275:9: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2279:12: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/ccbord.c:2283:14: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2286:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:2287:13: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2292:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ccbord.c:2301:17: branch_false: ...to here
leptonica-1.87.0/src/ccbord.c:2301:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ccbord.c:2302:17: branch_true: ...to here
leptonica-1.87.0/src/ccbord.c:2302:17: danger: use of uninitialized value ‘bval’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
leptonica-1.87.0/src/classapp.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:798:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:798:15: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
leptonica-1.87.0/src/classapp.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:798:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:798:15: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
leptonica-1.87.0/src/classapp.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:798:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:798:15: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
leptonica-1.87.0/src/classapp.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:798:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:798:15: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
leptonica-1.87.0/src/classapp.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:798:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:798:15: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
leptonica-1.87.0/src/classapp.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:798:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:798:15: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
leptonica-1.87.0/src/classapp.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:799:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:799:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
leptonica-1.87.0/src/classapp.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:799:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:799:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
leptonica-1.87.0/src/classapp.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:799:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:799:9: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
leptonica-1.87.0/src/classapp.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:799:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:799:9: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
leptonica-1.87.0/src/classapp.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:799:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:799:9: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
leptonica-1.87.0/src/classapp.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:799:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:799:9: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
leptonica-1.87.0/src/classapp.c:800:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:800:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:800:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
leptonica-1.87.0/src/classapp.c:800:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:800:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:800:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
leptonica-1.87.0/src/classapp.c:800:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:800:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:800:9: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
leptonica-1.87.0/src/classapp.c:800:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:800:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:800:9: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
leptonica-1.87.0/src/classapp.c:800:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:800:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:800:9: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
leptonica-1.87.0/src/classapp.c:801:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:801:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:801:17: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
leptonica-1.87.0/src/classapp.c:801:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:801:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:801:17: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
leptonica-1.87.0/src/classapp.c:801:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:801:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:801:17: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
leptonica-1.87.0/src/classapp.c:801:17: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:801:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:801:17: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
leptonica-1.87.0/src/classapp.c:804:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:804:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:804:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
leptonica-1.87.0/src/classapp.c:804:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:804:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:804:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
leptonica-1.87.0/src/classapp.c:804:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:804:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:804:9: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
leptonica-1.87.0/src/classapp.c:804:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:804:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:804:9: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
leptonica-1.87.0/src/classapp.c:807:15: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:807:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:807:15: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
leptonica-1.87.0/src/classapp.c:807:15: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:807:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:807:15: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
leptonica-1.87.0/src/classapp.c:807:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:807:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:807:15: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
leptonica-1.87.0/src/classapp.c:807:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:807:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:807:15: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
leptonica-1.87.0/src/classapp.c:807:15: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:807:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:807:15: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
leptonica-1.87.0/src/classapp.c:807:15: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:807:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:807:15: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
leptonica-1.87.0/src/classapp.c:808:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:808:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:808:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
leptonica-1.87.0/src/classapp.c:808:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:808:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:808:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
leptonica-1.87.0/src/classapp.c:808:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:808:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:808:9: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
leptonica-1.87.0/src/classapp.c:808:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:808:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:808:9: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
leptonica-1.87.0/src/classapp.c:808:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:808:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:808:9: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
leptonica-1.87.0/src/classapp.c:808:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:785:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:808:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:808:9: danger: ‘yloc2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
leptonica-1.87.0/src/classapp.c:809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:809:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:809:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
leptonica-1.87.0/src/classapp.c:809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:809:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:809:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
leptonica-1.87.0/src/classapp.c:809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:809:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:809:9: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
leptonica-1.87.0/src/classapp.c:809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:787:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:809:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:809:9: danger: ‘xleft2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
leptonica-1.87.0/src/classapp.c:809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:809:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/classapp.c:809:9: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
leptonica-1.87.0/src/classapp.c:810:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:810:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:810:17: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
leptonica-1.87.0/src/classapp.c:810:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:810:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:810:17: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
leptonica-1.87.0/src/classapp.c:810:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:810:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:810:17: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
leptonica-1.87.0/src/classapp.c:810:17: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:810:17: throw: if ‘numaGetCount’ throws an exception...
leptonica-1.87.0/src/classapp.c:810:17: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
leptonica-1.87.0/src/classapp.c:813:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:813:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:813:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
leptonica-1.87.0/src/classapp.c:813:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:813:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:813:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
leptonica-1.87.0/src/classapp.c:813:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:813:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:813:9: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
leptonica-1.87.0/src/classapp.c:813:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:813:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:813:9: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
leptonica-1.87.0/src/classapp.c:823:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:823:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:823:12: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
leptonica-1.87.0/src/classapp.c:823:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:823:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:823:12: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
leptonica-1.87.0/src/classapp.c:823:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:823:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:823:12: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
leptonica-1.87.0/src/classapp.c:823:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:823:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:823:12: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
leptonica-1.87.0/src/classapp.c:824:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:824:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:824:12: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
leptonica-1.87.0/src/classapp.c:824:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:824:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:824:12: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
leptonica-1.87.0/src/classapp.c:824:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:824:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:824:12: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
leptonica-1.87.0/src/classapp.c:824:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:824:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:824:12: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
leptonica-1.87.0/src/classapp.c:825:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:825:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:825:12: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
leptonica-1.87.0/src/classapp.c:825:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:825:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:825:12: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
leptonica-1.87.0/src/classapp.c:825:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:825:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:825:12: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
leptonica-1.87.0/src/classapp.c:825:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:825:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:825:12: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
leptonica-1.87.0/src/classapp.c:826:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:826:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:826:12: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
leptonica-1.87.0/src/classapp.c:826:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:826:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:826:12: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
leptonica-1.87.0/src/classapp.c:826:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xleft1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:786:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:826:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:826:12: danger: ‘xleft1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
leptonica-1.87.0/src/classapp.c:826:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yloc1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:784:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:788:29: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:826:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/classapp.c:826:12: danger: ‘yloc1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
leptonica-1.87.0/src/classapp.c:831:15: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:828:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:829:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:831:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:831:15: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
leptonica-1.87.0/src/classapp.c:831:15: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:828:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:829:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:831:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:831:15: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
leptonica-1.87.0/src/classapp.c:835:16: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
leptonica-1.87.0/src/classapp.c:835:16: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
leptonica-1.87.0/src/classapp.c:840:19: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:840:19: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:840:19: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
leptonica-1.87.0/src/classapp.c:840:19: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:840:19: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/classapp.c:840:19: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
leptonica-1.87.0/src/classapp.c:852:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:852:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:852:9: danger: ‘line1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
leptonica-1.87.0/src/classapp.c:852:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:802:12: branch_false: following ‘false’ branch (when ‘nperline > nbox’)...
leptonica-1.87.0/src/classapp.c:804:9: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:797:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:823:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:852:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/classapp.c:852:9: danger: ‘line2’ leaks here; was allocated at [(13)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
leptonica-1.87.0/src/classapp.c:886:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
leptonica-1.87.0/src/classapp.c:886:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
leptonica-1.87.0/src/classapp.c:888:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
leptonica-1.87.0/src/classapp.c:888:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
leptonica-1.87.0/src/classapp.c:891:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
leptonica-1.87.0/src/classapp.c:891:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
leptonica-1.87.0/src/classapp.c:892:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
leptonica-1.87.0/src/classapp.c:892:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
leptonica-1.87.0/src/classapp.c:893:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
leptonica-1.87.0/src/classapp.c:893:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
leptonica-1.87.0/src/classapp.c:894:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
leptonica-1.87.0/src/classapp.c:894:9: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:835:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:836:25: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:837:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:840:19: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:843:21: call_function: calling ‘testLineAlignmentX’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
leptonica-1.87.0/src/classapp.c:958:11: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
leptonica-1.87.0/src/classapp.c:958:11: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
leptonica-1.87.0/src/classapp.c:959:11: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
leptonica-1.87.0/src/classapp.c:959:11: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
leptonica-1.87.0/src/classapp.c:960:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
leptonica-1.87.0/src/classapp.c:960:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
leptonica-1.87.0/src/classapp.c:961:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
leptonica-1.87.0/src/classapp.c:961:12: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
leptonica-1.87.0/src/classapp.c:965:16: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:965:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:965:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:965:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:965:16: throw: if ‘returnErrorInt’ throws an exception...
leptonica-1.87.0/src/classapp.c:965:16: danger: ‘index1’ leaks here; was allocated at [(7)](sarif:/runs/0/results/94/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
leptonica-1.87.0/src/classapp.c:965:16: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:965:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:965:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:965:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:965:16: throw: if ‘returnErrorInt’ throws an exception...
leptonica-1.87.0/src/classapp.c:965:16: danger: ‘index2’ leaks here; was allocated at [(7)](sarif:/runs/0/results/95/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
leptonica-1.87.0/src/classapp.c:965:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line1’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:782:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
leptonica-1.87.0/src/classapp.c:965:16: warning[-Wanalyzer-malloc-leak]: leak of ‘line2’
leptonica-1.87.0/src/classapp.c:744:1: enter_function: entry to ‘numaaCompareImagesByBoxes’
leptonica-1.87.0/src/classapp.c:762:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:764:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:765:8: branch_false: following ‘false’ branch (when ‘naa1’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:767:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:767:8: branch_false: following ‘false’ branch (when ‘naa2’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:769:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:769:8: branch_false: following ‘false’ branch (when ‘nperline > 0’)...
leptonica-1.87.0/src/classapp.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:771:8: branch_false: following ‘false’ branch (when ‘nreq > 0’)...
leptonica-1.87.0/src/classapp.c:774:10: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:776:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:782:24: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:783:24: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:788:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:797:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:798:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:806:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:807:15: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:811:12: branch_true: following ‘true’ branch (when ‘nperline <= nbox’)...
leptonica-1.87.0/src/classapp.c:812:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:827:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:828:18: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:832:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:833:22: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:833:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:834:23: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:859:5: call_function: calling ‘countAlignedMatches’ from ‘numaaCompareImagesByBoxes’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
leptonica-1.87.0/src/classapp.c:1010:1: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:965:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:1010:1: danger: ‘index1’ leaks here; was allocated at [(7)](sarif:/runs/0/results/100/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
leptonica-1.87.0/src/classapp.c:1010:1: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:965:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:1010:1: danger: ‘index2’ leaks here; was allocated at [(7)](sarif:/runs/0/results/101/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
leptonica-1.87.0/src/classapp.c:1021:5: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
leptonica-1.87.0/src/classapp.c:1021:5: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
leptonica-1.87.0/src/classapp.c:1024:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
leptonica-1.87.0/src/classapp.c:1024:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
leptonica-1.87.0/src/classapp.c:1025:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
leptonica-1.87.0/src/classapp.c:1025:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
leptonica-1.87.0/src/classapp.c:1027:5: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
leptonica-1.87.0/src/classapp.c:1027:5: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
leptonica-1.87.0/src/classapp.c:1029:5: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
leptonica-1.87.0/src/classapp.c:1029:5: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
leptonica-1.87.0/src/classapp.c:1032:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
leptonica-1.87.0/src/classapp.c:1032:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
leptonica-1.87.0/src/classapp.c:1033:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index1’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:962:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
leptonica-1.87.0/src/classapp.c:1033:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index2’
leptonica-1.87.0/src/classapp.c:927:1: enter_function: entry to ‘countAlignedMatches’
leptonica-1.87.0/src/classapp.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:944:8: branch_false: following ‘false’ branch (when ‘psame’ is non-NULL)...
leptonica-1.87.0/src/classapp.c:946:5: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:955:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:963:25: acquire_memory: allocated here
leptonica-1.87.0/src/classapp.c:964:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:964:8: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:966:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:967:13: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:967:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:971:27: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:978:12: branch_false: following ‘false’ branch (when ‘nreq != 1’)...
leptonica-1.87.0/src/classapp.c:978:12: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:983:16: branch_true: following ‘true’ branch (when ‘i == j’)...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:982:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/classapp.c:983:16: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:985:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:989:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/classapp.c:991:13: branch_false: ...to here
leptonica-1.87.0/src/classapp.c:994:16: branch_true: following ‘true’ branch (when ‘nreq <= nmatch’)...
leptonica-1.87.0/src/classapp.c:995:17: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:996:20: branch_true: following ‘true’ branch (when ‘debugflag != 0’)...
leptonica-1.87.0/src/classapp.c:997:21: branch_true: ...to here
leptonica-1.87.0/src/classapp.c:997:21: call_function: calling ‘printRowIndices’ from ‘countAlignedMatches’
Error: COMPILER_WARNING (CWE-457): [#def384]
leptonica-1.87.0/src/colorcontent.c: scope_hint: In function ‘pixColorContent’
leptonica-1.87.0/src/colorcontent.c:211:30: warning[-Wmaybe-uninitialized]: ‘wplr’ may be used uninitialized
Error: COMPILER_WARNING (CWE-457): [#def385]
leptonica-1.87.0/src/colorcontent.c:211:36: warning[-Wmaybe-uninitialized]: ‘wplg’ may be used uninitialized
Error: COMPILER_WARNING (CWE-457): [#def386]
leptonica-1.87.0/src/colorcontent.c:211:42: warning[-Wmaybe-uninitialized]: ‘wplb’ may be used uninitialized
Error: CPPCHECK_WARNING (CWE-476): [#def387]
leptonica-1.87.0/src/colorcontent.c:1447: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: inta
Error: GCC_ANALYZER_WARNING (CWE-476): [#def388]
leptonica-1.87.0/src/colorcontent.c:1451:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘inta’
leptonica-1.87.0/src/colorcontent.c:1423:8: branch_false: following ‘false’ branch (when ‘pncolors’ is non-NULL)...
leptonica-1.87.0/src/colorcontent.c:1425:5: branch_false: ...to here
leptonica-1.87.0/src/colorcontent.c:1426:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorcontent.c:1428:5: branch_false: ...to here
leptonica-1.87.0/src/colorcontent.c:1436:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorcontent.c:1437:27: branch_true: ...to here
leptonica-1.87.0/src/colorcontent.c:1437:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colorcontent.c:1450:21: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/colorcontent.c:1451:21: branch_true: ...to here
leptonica-1.87.0/src/colorcontent.c:1451:17: danger: ‘inta + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
leptonica-1.87.0/src/colorcontent.c:1473:13: warning[-Wanalyzer-malloc-leak]: leak of ‘inta’
leptonica-1.87.0/src/colorcontent.c:1423:8: branch_false: following ‘false’ branch (when ‘pncolors’ is non-NULL)...
leptonica-1.87.0/src/colorcontent.c:1425:5: branch_false: ...to here
leptonica-1.87.0/src/colorcontent.c:1426:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorcontent.c:1428:5: branch_false: ...to here
leptonica-1.87.0/src/colorcontent.c:1436:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorcontent.c:1467:23: branch_false: ...to here
leptonica-1.87.0/src/colorcontent.c:1467:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorcontent.c:1469:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorcontent.c:1471:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorcontent.c:1472:25: branch_true: ...to here
leptonica-1.87.0/src/colorcontent.c:1473:13: throw: if ‘extractRGBValues’ throws an exception...
leptonica-1.87.0/src/colorcontent.c:1473:13: danger: ‘inta’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def390]
leptonica-1.87.0/src/colorcontent.c:1475: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: inta
Error: CPPCHECK_WARNING (CWE-476): [#def391]
leptonica-1.87.0/src/colorcontent.c:1565: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hasha1
Error: CPPCHECK_WARNING (CWE-476): [#def392]
leptonica-1.87.0/src/colorcontent.c:1571: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hasha2
Error: CPPCHECK_WARNING (CWE-476): [#def393]
leptonica-1.87.0/src/colorfill.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def394]
leptonica-1.87.0/src/colorfill.c:136:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cf’
leptonica-1.87.0/src/colorfill.c:116:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorfill.c:118:9: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:118:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:121:5: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:126:13: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:135:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colorfill.c:136:5: danger: ‘cf’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
leptonica-1.87.0/src/colorfill.c:136:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cf’
leptonica-1.87.0/src/colorfill.c:116:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorfill.c:118:9: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:118:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:121:5: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:126:13: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:135:25: acquire_memory: allocated here
leptonica-1.87.0/src/colorfill.c:136:16: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/colorfill.c:136:16: danger: ‘cf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def396]
leptonica-1.87.0/src/colorfill.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: CPPCHECK_WARNING (CWE-476): [#def397]
leptonica-1.87.0/src/colorfill.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: CPPCHECK_WARNING (CWE-476): [#def398]
leptonica-1.87.0/src/colorfill.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: CPPCHECK_WARNING (CWE-476): [#def399]
leptonica-1.87.0/src/colorfill.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: CPPCHECK_WARNING (CWE-476): [#def400]
leptonica-1.87.0/src/colorfill.c:141: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: CPPCHECK_WARNING (CWE-476): [#def401]
leptonica-1.87.0/src/colorfill.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
leptonica-1.87.0/src/colorfill.c:142:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cf’
leptonica-1.87.0/src/colorfill.c:116:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorfill.c:118:9: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:118:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:121:5: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:126:13: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:135:25: acquire_memory: allocated here
leptonica-1.87.0/src/colorfill.c:142:15: throw: if ‘numaaCreate’ throws an exception...
leptonica-1.87.0/src/colorfill.c:142:15: danger: ‘cf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def403]
leptonica-1.87.0/src/colorfill.c:143: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
leptonica-1.87.0/src/colorfill.c:143:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cf’
leptonica-1.87.0/src/colorfill.c:116:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorfill.c:118:9: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:118:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:121:5: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:126:13: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:135:25: acquire_memory: allocated here
leptonica-1.87.0/src/colorfill.c:143:16: throw: if ‘l_dnaaCreate’ throws an exception...
leptonica-1.87.0/src/colorfill.c:143:16: danger: ‘cf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def405]
leptonica-1.87.0/src/colorfill.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
leptonica-1.87.0/src/colorfill.c:144:18: warning[-Wanalyzer-malloc-leak]: leak of ‘cf’
leptonica-1.87.0/src/colorfill.c:116:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorfill.c:118:9: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:118:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:121:5: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorfill.c:126:13: branch_false: ...to here
leptonica-1.87.0/src/colorfill.c:135:25: acquire_memory: allocated here
leptonica-1.87.0/src/colorfill.c:144:18: throw: if ‘pixaCreate’ throws an exception...
leptonica-1.87.0/src/colorfill.c:144:18: danger: ‘cf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def407]
leptonica-1.87.0/src/colorfill.c:498: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: el
Error: GCC_ANALYZER_WARNING (CWE-476): [#def408]
leptonica-1.87.0/src/colorfill.c:498:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘el’
leptonica-1.87.0/src/colorfill.c:529:1: enter_function: entry to ‘pixColorFillFromSeed’
leptonica-1.87.0/src/colorfill.c:547:10: call_function: inlined call to ‘colorelCreate’ from ‘pixColorFillFromSeed’
Error: CPPCHECK_WARNING (CWE-476): [#def409]
leptonica-1.87.0/src/colorfill.c:499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: el
Error: CPPCHECK_WARNING (CWE-476): [#def410]
leptonica-1.87.0/src/colorfill.c:500: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: el
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
leptonica-1.87.0/src/colorfill.c:548:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/colorfill.c:529:1: enter_function: entry to ‘pixColorFillFromSeed’
leptonica-1.87.0/src/colorfill.c:547:10: call_function: inlined call to ‘colorelCreate’ from ‘pixColorFillFromSeed’
leptonica-1.87.0/src/colorfill.c:548:5: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/colorfill.c:548:5: danger: ‘el’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
leptonica-1.87.0/src/coloring.c:621:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
leptonica-1.87.0/src/coloring.c:576:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:578:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:578:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:581:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:619:22: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:620:17: branch_true: following ‘true’ branch (when ‘i < ncolors’)...
leptonica-1.87.0/src/coloring.c:621:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:621:9: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/coloring.c:621:9: danger: ‘tab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def413]
leptonica-1.87.0/src/coloring.c:625:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/coloring.c:576:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:578:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:578:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:581:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:619:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/coloring.c:620:17: branch_true: following ‘true’ branch (when ‘i < ncolors’)...
leptonica-1.87.0/src/coloring.c:621:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:622:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:623:14: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:622:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:624:14: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:622:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:625:16: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:625:13: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
leptonica-1.87.0/src/coloring.c:627:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
leptonica-1.87.0/src/coloring.c:576:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:578:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:578:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:581:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:619:22: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:627:12: throw: if ‘pixMakeMaskFromLUT’ throws an exception...
leptonica-1.87.0/src/coloring.c:627:12: danger: ‘tab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
leptonica-1.87.0/src/coloring.c:706:16: warning[-Wanalyzer-malloc-leak]: leak of ‘btab’
leptonica-1.87.0/src/coloring.c:690:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:694:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:704:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:705:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:16: danger: ‘btab’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
leptonica-1.87.0/src/coloring.c:706:16: warning[-Wanalyzer-malloc-leak]: leak of ‘gtab’
leptonica-1.87.0/src/coloring.c:690:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:694:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:703:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:705:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:16: danger: ‘gtab’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
leptonica-1.87.0/src/coloring.c:706:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rtab’
leptonica-1.87.0/src/coloring.c:690:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:694:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:702:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:705:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:16: danger: ‘rtab’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
leptonica-1.87.0/src/coloring.c:706:23: warning[-Wanalyzer-malloc-leak]: leak of ‘btab’
leptonica-1.87.0/src/coloring.c:690:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:694:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:704:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:705:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:23: throw: if ‘returnErrorPtr’ throws an exception...
leptonica-1.87.0/src/coloring.c:706:23: danger: ‘btab’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
leptonica-1.87.0/src/coloring.c:706:23: warning[-Wanalyzer-malloc-leak]: leak of ‘gtab’
leptonica-1.87.0/src/coloring.c:690:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:694:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:703:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:705:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:23: throw: if ‘returnErrorPtr’ throws an exception...
leptonica-1.87.0/src/coloring.c:706:23: danger: ‘gtab’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
leptonica-1.87.0/src/coloring.c:706:23: warning[-Wanalyzer-malloc-leak]: leak of ‘rtab’
leptonica-1.87.0/src/coloring.c:690:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:694:8: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:702:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:705:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:706:23: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:706:23: throw: if ‘returnErrorPtr’ throws an exception...
leptonica-1.87.0/src/coloring.c:706:23: danger: ‘rtab’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
leptonica-1.87.0/src/coloring.c:888:9: warning[-Wanalyzer-malloc-leak]: leak of ‘btab’
leptonica-1.87.0/src/coloring.c:865:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/coloring.c:867:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:867:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:869:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:877:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:882:5: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:886:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:887:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:888:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:888:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:888:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:888:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/coloring.c:888:9: danger: ‘btab’ leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
leptonica-1.87.0/src/coloring.c:888:9: warning[-Wanalyzer-malloc-leak]: leak of ‘gtab’
leptonica-1.87.0/src/coloring.c:865:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/coloring.c:867:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:867:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:869:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:877:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:882:5: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:885:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:887:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:888:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:888:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:888:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:888:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/coloring.c:888:9: danger: ‘gtab’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
leptonica-1.87.0/src/coloring.c:888:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rtab’
leptonica-1.87.0/src/coloring.c:865:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/coloring.c:867:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:867:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:869:9: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:877:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/coloring.c:882:5: branch_false: ...to here
leptonica-1.87.0/src/coloring.c:884:23: acquire_memory: allocated here
leptonica-1.87.0/src/coloring.c:887:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:888:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:888:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/coloring.c:888:9: branch_true: ...to here
leptonica-1.87.0/src/coloring.c:888:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/coloring.c:888:9: danger: ‘rtab’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
leptonica-1.87.0/src/colormap.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcmapCreate(4)’
leptonica-1.87.0/src/colormap.c:1697:1: enter_function: entry to ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1702:8: branch_false: following ‘false’ branch (when ‘cmaps’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1704:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1704:9: call_function: calling ‘pixcmapGetDepth’ from ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1704:9: return_function: returning to ‘pixcmapConvertTo4’ from ‘pixcmapGetDepth’
leptonica-1.87.0/src/colormap.c:1704:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1707:13: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1707:13: call_function: calling ‘pixcmapCreate’ from ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1707:13: return_function: returning to ‘pixcmapConvertTo4’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1708:9: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1708:9: return_function: returning to ‘pixcmapConvertTo4’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:1709:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1710:9: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1710:9: call_function: calling ‘pixcmapGetColor’ from ‘pixcmapConvertTo4’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
leptonica-1.87.0/src/colormap.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcmapCreate(8)’
leptonica-1.87.0/src/colormap.c:1730:1: enter_function: entry to ‘pixcmapConvertTo8’
leptonica-1.87.0/src/colormap.c:1735:8: branch_false: following ‘false’ branch (when ‘cmaps’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1737:13: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1737:13: call_function: calling ‘pixcmapGetDepth’ from ‘pixcmapConvertTo8’
leptonica-1.87.0/src/colormap.c:1737:13: return_function: returning to ‘pixcmapConvertTo8’ from ‘pixcmapGetDepth’
leptonica-1.87.0/src/colormap.c:1738:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1739:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1739:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1742:13: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1742:13: call_function: calling ‘pixcmapCreate’ from ‘pixcmapConvertTo8’
leptonica-1.87.0/src/colormap.c:1742:13: return_function: returning to ‘pixcmapConvertTo8’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1743:9: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapConvertTo8’
leptonica-1.87.0/src/colormap.c:1743:9: return_function: returning to ‘pixcmapConvertTo8’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:1744:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1745:9: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1745:9: call_function: calling ‘pixcmapGetColor’ from ‘pixcmapConvertTo8’
Error: CPPCHECK_WARNING (CWE-476): [#def426]
leptonica-1.87.0/src/colormap.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmap
Error: GCC_ANALYZER_WARNING (CWE-476): [#def427]
leptonica-1.87.0/src/colormap.c:135:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cmap’
leptonica-1.87.0/src/colormap.c:1610:1: enter_function: entry to ‘pixcmapGrayToColor’
leptonica-1.87.0/src/colormap.c:1616:12: call_function: calling ‘pixcmapCreate’ from ‘pixcmapGrayToColor’
Error: CPPCHECK_WARNING (CWE-476): [#def428]
leptonica-1.87.0/src/colormap.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmap
Error: CPPCHECK_WARNING (CWE-476): [#def429]
leptonica-1.87.0/src/colormap.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmap
Error: CPPCHECK_WARNING (CWE-476): [#def430]
leptonica-1.87.0/src/colormap.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmap
Error: CPPCHECK_WARNING (CWE-476): [#def431]
leptonica-1.87.0/src/colormap.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmap
Error: CPPCHECK_WARNING (CWE-476): [#def432]
leptonica-1.87.0/src/colormap.c:256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmapd
Error: CPPCHECK_WARNING (CWE-476): [#def433]
leptonica-1.87.0/src/colormap.c:257: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmapd
Error: CPPCHECK_WARNING (CWE-476): [#def434]
leptonica-1.87.0/src/colormap.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmapd
Error: CPPCHECK_WARNING (CWE-476): [#def435]
leptonica-1.87.0/src/colormap.c:259: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmapd
Error: CPPCHECK_WARNING (CWE-476): [#def436]
leptonica-1.87.0/src/colormap.c:260: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmapd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def437]
leptonica-1.87.0/src/colormap.c:417:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cta’
leptonica-1.87.0/src/colormap.c:1610:1: enter_function: entry to ‘pixcmapGrayToColor’
leptonica-1.87.0/src/colormap.c:1616:12: call_function: calling ‘pixcmapCreate’ from ‘pixcmapGrayToColor’
leptonica-1.87.0/src/colormap.c:1616:12: return_function: returning to ‘pixcmapGrayToColor’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1617:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/colormap.c:1620:37: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1618:9: call_function: calling ‘pixcmapAddColor’ from ‘pixcmapGrayToColor’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
leptonica-1.87.0/src/colormap.c:451:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/colormap.c:1789:1: enter_function: entry to ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1800:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1801:10: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1800:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1804:14: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1807:17: call_function: calling ‘pixcmapCreate’ from ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1807:17: return_function: returning to ‘pixcmapReadStream’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1807:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1807:8: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1809:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1810:13: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1810:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1815:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1815:9: call_function: calling ‘pixcmapAddRGBA’ from ‘pixcmapReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
leptonica-1.87.0/src/colormap.c:451:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cmap’
leptonica-1.87.0/src/colormap.c:1789:1: enter_function: entry to ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1800:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1801:10: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1800:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1804:14: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1807:17: call_function: calling ‘pixcmapCreate’ from ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1807:17: return_function: returning to ‘pixcmapReadStream’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1807:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1807:8: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1809:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1810:13: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1810:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1815:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1815:9: call_function: calling ‘pixcmapAddRGBA’ from ‘pixcmapReadStream’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def440]
leptonica-1.87.0/src/colormap.c:454:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cta’
leptonica-1.87.0/src/colormap.c:1789:1: enter_function: entry to ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1800:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1801:10: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1800:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1804:14: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1807:17: call_function: calling ‘pixcmapCreate’ from ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1807:17: return_function: returning to ‘pixcmapReadStream’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1807:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1807:8: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1809:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1810:13: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1810:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1815:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1815:9: call_function: calling ‘pixcmapAddRGBA’ from ‘pixcmapReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
leptonica-1.87.0/src/colormap.c:804:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/colormap.c:1697:1: enter_function: entry to ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1702:8: branch_false: following ‘false’ branch (when ‘cmaps’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1704:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1704:9: call_function: calling ‘pixcmapGetDepth’ from ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1704:9: return_function: returning to ‘pixcmapConvertTo4’ from ‘pixcmapGetDepth’
leptonica-1.87.0/src/colormap.c:1704:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:1707:13: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1707:13: call_function: calling ‘pixcmapCreate’ from ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1707:13: return_function: returning to ‘pixcmapConvertTo4’ from ‘pixcmapCreate’
leptonica-1.87.0/src/colormap.c:1708:9: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapConvertTo4’
leptonica-1.87.0/src/colormap.c:1708:9: return_function: returning to ‘pixcmapConvertTo4’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:1709:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1710:9: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1710:9: call_function: calling ‘pixcmapGetColor’ from ‘pixcmapConvertTo4’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
leptonica-1.87.0/src/colormap.c:804:16: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/colormap.c:1205:1: enter_function: entry to ‘pixcmapCountGrayColors’
leptonica-1.87.0/src/colormap.c:1211:8: branch_false: following ‘false’ branch (when ‘pngray’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1213:5: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1214:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1217:24: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1217:24: acquire_memory: allocated here
leptonica-1.87.0/src/colormap.c:1218:9: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapCountGrayColors’
leptonica-1.87.0/src/colormap.c:1218:9: return_function: returning to ‘pixcmapCountGrayColors’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:1220:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:1221:9: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1221:9: call_function: calling ‘pixcmapGetColor’ from ‘pixcmapCountGrayColors’
Error: CPPCHECK_WARNING (CWE-476): [#def443]
leptonica-1.87.0/src/colormap.c:1222: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: array
Error: CPPCHECK_WARNING (CWE-476): [#def444]
leptonica-1.87.0/src/colormap.c:1560: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: curve
Error: GCC_ANALYZER_WARNING (CWE-476): [#def445]
leptonica-1.87.0/src/colormap.c:1560:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curve’
leptonica-1.87.0/src/colormap.c:1556:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colormap.c:1558:17: branch_true: following ‘true’ branch (when ‘i != 64’)...
leptonica-1.87.0/src/colormap.c:1559:13: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:1560:9: danger: ‘curve + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING: [#def446]
leptonica-1.87.0/src/colormap.c: scope_hint: In function ‘pixcmapReadStream’
leptonica-1.87.0/src/colormap.c:1791:35: warning[-Wunused-but-set-variable=]: variable ‘ignore’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def447]
leptonica-1.87.0/src/colormap.c:2015: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rmap
Error: GCC_ANALYZER_WARNING (CWE-476): [#def448]
leptonica-1.87.0/src/colormap.c:2015:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rmap’
leptonica-1.87.0/src/colormap.c:1027:1: enter_function: entry to ‘pixcmapHasColor’
leptonica-1.87.0/src/colormap.c:1033:8: branch_false: following ‘false’ branch (when ‘pcolor’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1035:5: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1036:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1039:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1039:9: call_function: calling ‘pixcmapToArrays’ from ‘pixcmapHasColor’
Error: CPPCHECK_WARNING (CWE-476): [#def449]
leptonica-1.87.0/src/colormap.c:2016: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gmap
Error: GCC_ANALYZER_WARNING (CWE-476): [#def450]
leptonica-1.87.0/src/colormap.c:2016:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gmap’
leptonica-1.87.0/src/colormap.c:1027:1: enter_function: entry to ‘pixcmapHasColor’
leptonica-1.87.0/src/colormap.c:1033:8: branch_false: following ‘false’ branch (when ‘pcolor’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1035:5: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1036:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:1039:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:1039:9: call_function: calling ‘pixcmapToArrays’ from ‘pixcmapHasColor’
Error: CPPCHECK_WARNING (CWE-476): [#def451]
leptonica-1.87.0/src/colormap.c:2017: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmap
Error: GCC_ANALYZER_WARNING (CWE-476): [#def452]
leptonica-1.87.0/src/colormap.c:2017:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmap’
leptonica-1.87.0/src/colormap.c:1984:1: enter_function: entry to ‘pixcmapToArrays’
leptonica-1.87.0/src/colormap.c:1998:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2001:15: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2001:15: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapToArrays’
leptonica-1.87.0/src/colormap.c:2001:15: return_function: returning to ‘pixcmapToArrays’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:2004:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colormap.c:2008:8: branch_false: following ‘false’ branch (when ‘pamap’ is NULL)...
leptonica-1.87.0/src/colormap.c:2013:5: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2014:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:2015:22: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:2017:9: danger: ‘bmap + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def453]
leptonica-1.87.0/src/colormap.c:2019:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘amap’
leptonica-1.87.0/src/colormap.c:1984:1: enter_function: entry to ‘pixcmapToArrays’
leptonica-1.87.0/src/colormap.c:1998:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2001:15: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2001:15: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapToArrays’
leptonica-1.87.0/src/colormap.c:2001:15: return_function: returning to ‘pixcmapToArrays’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:2008:8: branch_true: following ‘true’ branch (when ‘pamap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2009:27: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:2009:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colormap.c:2014:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:2015:22: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:2018:12: branch_true: following ‘true’ branch (when ‘pamap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2019:23: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:2019:13: danger: ‘amap + (long unsigned int)i * 4’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
leptonica-1.87.0/src/colormap.c:2102:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/colormap.c:2076:1: enter_function: entry to ‘pixcmapSerializeToMemory’
leptonica-1.87.0/src/colormap.c:2084:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2086:5: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2087:8: branch_false: following ‘false’ branch (when ‘pncolors’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2089:5: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2090:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2092:9: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2092:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colormap.c:2095:15: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2095:15: call_function: calling ‘pixcmapGetCount’ from ‘pixcmapSerializeToMemory’
leptonica-1.87.0/src/colormap.c:2095:15: return_function: returning to ‘pixcmapSerializeToMemory’ from ‘pixcmapGetCount’
leptonica-1.87.0/src/colormap.c:2097:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colormap.c:2100:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colormap.c:2101:9: branch_true: ...to here
leptonica-1.87.0/src/colormap.c:2101:9: call_function: calling ‘pixcmapGetRGBA’ from ‘pixcmapSerializeToMemory’
leptonica-1.87.0/src/colormap.c:2101:9: return_function: returning to ‘pixcmapSerializeToMemory’ from ‘pixcmapGetRGBA’
leptonica-1.87.0/src/colormap.c:2102:9: danger: ‘data + (sizetype)(i * cpc)’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def455]
leptonica-1.87.0/src/colormap.c:2194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: GCC_ANALYZER_WARNING (CWE-476): [#def456]
leptonica-1.87.0/src/colormap.c:2194:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hexdata’
leptonica-1.87.0/src/colormap.c:2187:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/colormap.c:2189:8: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2189:8: branch_false: following ‘false’ branch (when ‘ncolors > 0’)...
leptonica-1.87.0/src/colormap.c:2192:20: branch_false: ...to here
leptonica-1.87.0/src/colormap.c:2193:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colormap.c:2194:5: danger: ‘hexdata’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def457]
leptonica-1.87.0/src/colormap.c:2195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def458]
leptonica-1.87.0/src/colormap.c:2200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def459]
leptonica-1.87.0/src/colormap.c:2201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def460]
leptonica-1.87.0/src/colormap.c:2203: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def461]
leptonica-1.87.0/src/colormap.c:2204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def462]
leptonica-1.87.0/src/colormap.c:2206: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def463]
leptonica-1.87.0/src/colormap.c:2207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def464]
leptonica-1.87.0/src/colormap.c:2208: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def465]
leptonica-1.87.0/src/colormap.c:2210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: CPPCHECK_WARNING (CWE-476): [#def466]
leptonica-1.87.0/src/colormap.c:2211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexdata
Error: COMPILER_WARNING (CWE-457): [#def467]
leptonica-1.87.0/src/colorquant1.c:688:5: warning[-Wmaybe-uninitialized]: ‘cmap’ may be used uninitialized
leptonica-1.87.0/src/colorquant1.c: scope_hint: In function ‘pixOctreeColorQuantGeneral’
leptonica-1.87.0/src/colorquant1.c:612:12: note: ‘cmap’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def468]
leptonica-1.87.0/src/colorquant1.c:1264: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cqcaa
Error: CPPCHECK_WARNING (CWE-476): [#def469]
leptonica-1.87.0/src/colorquant1.c:1266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cqca
Error: CPPCHECK_WARNING (CWE-476): [#def470]
leptonica-1.87.0/src/colorquant1.c:1804: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: opop
Error: CPPCHECK_WARNING (CWE-476): [#def471]
leptonica-1.87.0/src/colorquant1.c:1805: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: opop
Error: CPPCHECK_WARNING (CWE-476): [#def472]
leptonica-1.87.0/src/colorquant1.c:1806: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: opop
Error: CPPCHECK_WARNING (CWE-476): [#def473]
leptonica-1.87.0/src/colorquant1.c:1807: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: opop
Error: CPPCHECK_WARNING (CWE-476): [#def474]
leptonica-1.87.0/src/colorquant1.c:1808: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: opop
Error: CPPCHECK_WARNING (CWE-476): [#def475]
leptonica-1.87.0/src/colorquant1.c:2376: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def476]
leptonica-1.87.0/src/colorquant1.c:2377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def477]
leptonica-1.87.0/src/colorquant1.c:2393: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def478]
leptonica-1.87.0/src/colorquant1.c:2394: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def479]
leptonica-1.87.0/src/colorquant1.c:2395: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def480]
leptonica-1.87.0/src/colorquant1.c:2396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def481]
leptonica-1.87.0/src/colorquant1.c:2397: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def482]
leptonica-1.87.0/src/colorquant1.c:2404: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def483]
leptonica-1.87.0/src/colorquant1.c:2410: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def484]
leptonica-1.87.0/src/colorquant1.c:2411: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def485]
leptonica-1.87.0/src/colorquant1.c:2421: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def486]
leptonica-1.87.0/src/colorquant1.c:2431: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut1
Error: CPPCHECK_WARNING (CWE-476): [#def487]
leptonica-1.87.0/src/colorquant1.c:2431: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: oqca
Error: CPPCHECK_WARNING (CWE-476): [#def488]
leptonica-1.87.0/src/colorquant1.c:2433: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut1
Error: CPPCHECK_WARNING (CWE-476): [#def489]
leptonica-1.87.0/src/colorquant1.c:2479: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut2
Error: CPPCHECK_WARNING (CWE-476): [#def490]
leptonica-1.87.0/src/colorquant1.c:3305: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut
Error: COMPILER_WARNING (CWE-457): [#def491]
leptonica-1.87.0/src/colorquant1.c:3715:15: warning[-Wmaybe-uninitialized]: ‘size’ may be used uninitialized
leptonica-1.87.0/src/colorquant1.c: scope_hint: In function ‘pixOctcubeHistogram’
leptonica-1.87.0/src/colorquant1.c:3692:13: note: ‘size’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def492]
leptonica-1.87.0/src/colorquant1.c:3971: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: map1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
leptonica-1.87.0/src/colorquant2.c:384:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/colorquant2.c:260:1: enter_function: entry to ‘pixMedianCutQuant’
leptonica-1.87.0/src/colorquant2.c:263:12: call_function: calling ‘pixMedianCutQuantGeneral’ from ‘pixMedianCutQuant’
Error: CPPCHECK_WARNING (CWE-476): [#def494]
leptonica-1.87.0/src/colorquant2.c:651: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def495]
leptonica-1.87.0/src/colorquant2.c:651:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lut’
leptonica-1.87.0/src/colorquant2.c:612:8: branch_false: following ‘false’ branch (when ‘ngray > 1’)...
leptonica-1.87.0/src/colorquant2.c:614:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:614:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:616:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:629:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:643:12: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:649:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colorquant2.c:650:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/colorquant2.c:651:18: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:651:9: danger: ‘lut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
leptonica-1.87.0/src/colorquant2.c:861:5: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/colorquant2.c:848:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:850:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:852:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:852:8: branch_false: following ‘false’ branch (when ‘subsample > 0’)...
leptonica-1.87.0/src/colorquant2.c:855:22: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:856:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:856:8: branch_false: following ‘false’ branch (when ‘histo’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:859:5: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:861:5: throw: if ‘pixGetDimensions’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:861:5: danger: ‘histo’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
leptonica-1.87.0/src/colorquant2.c:862:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/colorquant2.c:848:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:850:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:852:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:852:8: branch_false: following ‘false’ branch (when ‘subsample > 0’)...
leptonica-1.87.0/src/colorquant2.c:855:22: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:856:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:856:8: branch_false: following ‘false’ branch (when ‘histo’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:859:5: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:862:12: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:862:12: danger: ‘histo’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
leptonica-1.87.0/src/colorquant2.c:863:11: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/colorquant2.c:848:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:850:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:850:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:852:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:852:8: branch_false: following ‘false’ branch (when ‘subsample > 0’)...
leptonica-1.87.0/src/colorquant2.c:855:22: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:856:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:856:8: branch_false: following ‘false’ branch (when ‘histo’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:859:5: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:863:11: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:863:11: danger: ‘histo’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1038:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘buf1b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1037:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘buf1g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1036:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘buf1r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1041:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘buf2b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1040:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘buf2g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1039:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘buf2r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufu8b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1035:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘bufu8b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufu8g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1034:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘bufu8g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
leptonica-1.87.0/src/colorquant2.c:1044:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufu8r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1033:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1044:13: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1044:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1044:13: danger: ‘bufu8r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1038:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1043:23: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘buf1b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1037:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1043:23: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘buf1g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1036:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:35: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘buf1r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1041:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch (when ‘buf2b’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:1050:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘buf2b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1040:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘buf2g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1039:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘buf2r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufu8b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1035:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:35: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘bufu8b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufu8g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1034:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘bufu8g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
leptonica-1.87.0/src/colorquant2.c:1050:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufu8r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1033:29: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1050:9: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1050:9: danger: ‘bufu8r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
leptonica-1.87.0/src/colorquant2.c:1062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1038:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1043:23: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1062:13: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1062:13: danger: ‘buf1b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
leptonica-1.87.0/src/colorquant2.c:1062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1037:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1043:23: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1062:13: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1062:13: danger: ‘buf1g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
leptonica-1.87.0/src/colorquant2.c:1062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1036:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:35: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1062:13: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1062:13: danger: ‘buf1r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
leptonica-1.87.0/src/colorquant2.c:1062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1041:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch (when ‘buf2b’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:1050:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1062:13: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1062:13: danger: ‘buf2b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
leptonica-1.87.0/src/colorquant2.c:1062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1040:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1062:13: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1062:13: danger: ‘buf2g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
leptonica-1.87.0/src/colorquant2.c:1062:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1039:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1051:21: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1062:13: throw: if ‘pixGetRGBLine’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1062:13: danger: ‘buf2r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
leptonica-1.87.0/src/colorquant2.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1038:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1043:23: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1079:17: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1079:17: danger: ‘buf1b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
leptonica-1.87.0/src/colorquant2.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1037:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1043:23: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1079:17: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1079:17: danger: ‘buf1g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
leptonica-1.87.0/src/colorquant2.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf1r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1036:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:35: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1079:17: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1079:17: danger: ‘buf1r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
leptonica-1.87.0/src/colorquant2.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2b’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1041:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch (when ‘buf2b’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:1050:9: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1079:17: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1079:17: danger: ‘buf2b’ leaks here; was allocated at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
leptonica-1.87.0/src/colorquant2.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2g’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1040:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1079:17: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1079:17: danger: ‘buf2g’ leaks here; was allocated at [(7)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
leptonica-1.87.0/src/colorquant2.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2r’
leptonica-1.87.0/src/colorquant2.c:975:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:977:8: branch_false: following ‘false’ branch (when ‘indexmap’ is non-NULL)...
leptonica-1.87.0/src/colorquant2.c:979:8: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:994:8: branch_false: following ‘false’ branch (when ‘ditherflag != 0’)...
leptonica-1.87.0/src/colorquant2.c:1033:29: branch_false: ...to here
leptonica-1.87.0/src/colorquant2.c:1039:28: acquire_memory: allocated here
leptonica-1.87.0/src/colorquant2.c:1042:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1042:13: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorquant2.c:1057:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorquant2.c:1059:34: branch_true: ...to here
leptonica-1.87.0/src/colorquant2.c:1079:17: throw: if ‘pixcmapGetColor’ throws an exception...
leptonica-1.87.0/src/colorquant2.c:1079:17: danger: ‘buf2r’ leaks here; was allocated at [(7)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def529]
leptonica-1.87.0/src/colorquant2.c:1632: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vbox
Error: GCC_ANALYZER_WARNING (CWE-476): [#def530]
leptonica-1.87.0/src/colorquant2.c:1632:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘vbox’
leptonica-1.87.0/src/colorquant2.c:1654:1: enter_function: entry to ‘box3dCopy’
leptonica-1.87.0/src/colorquant2.c:1661:13: call_function: inlined call to ‘box3dCreate’ from ‘box3dCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def531]
leptonica-1.87.0/src/colorquant2.c:1633: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vbox
Error: CPPCHECK_WARNING (CWE-476): [#def532]
leptonica-1.87.0/src/colorquant2.c:1634: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vbox
Error: CPPCHECK_WARNING (CWE-476): [#def533]
leptonica-1.87.0/src/colorquant2.c:1635: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vbox
Error: CPPCHECK_WARNING (CWE-476): [#def534]
leptonica-1.87.0/src/colorquant2.c:1636: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vbox
Error: CPPCHECK_WARNING (CWE-476): [#def535]
leptonica-1.87.0/src/colorquant2.c:1637: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vbox
Error: GCC_ANALYZER_WARNING (CWE-457): [#def536]
leptonica-1.87.0/src/colorseg.c:320:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘countarray[k]’
leptonica-1.87.0/src/colorseg.c:283:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorseg.c:285:8: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:285:8: branch_false: following ‘false’ branch (when ‘pixd’ is non-NULL)...
leptonica-1.87.0/src/colorseg.c:288:9: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:293:17: branch_true: following ‘true’ branch (when ‘k != 256’)...
leptonica-1.87.0/src/colorseg.c:294:29: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:303:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorseg.c:304:25: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:306:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorseg.c:307:28: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:313:25: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorseg.c:314:33: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:317:20: branch_true: following ‘true’ branch (when ‘maxdist2 >= dist2’)...
leptonica-1.87.0/src/colorseg.c:319:21: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:320:21: danger: use of uninitialized value ‘countarray[k]’ here
Error: COMPILER_WARNING (CWE-457): [#def537]
leptonica-1.87.0/src/colorseg.c: scope_hint: In function ‘pixAssignToNearestColor’
leptonica-1.87.0/src/colorseg.c:413:30: warning[-Wmaybe-uninitialized]: ‘wplm’ may be used uninitialized
Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
leptonica-1.87.0/src/colorseg.c:613:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
leptonica-1.87.0/src/colorseg.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:590:17: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:590:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:592:8: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:592:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorseg.c:594:15: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:595:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:604:10: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:605:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:609:25: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:611:22: acquire_memory: allocated here
leptonica-1.87.0/src/colorseg.c:612:27: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorseg.c:613:9: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:613:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/colorseg.c:613:9: danger: ‘tab’ leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def539]
leptonica-1.87.0/src/colorseg.c:614: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
leptonica-1.87.0/src/colorseg.c:617:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
leptonica-1.87.0/src/colorseg.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:590:17: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:590:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:592:8: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:592:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/colorseg.c:594:15: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:595:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:604:10: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:605:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorseg.c:609:25: branch_false: ...to here
leptonica-1.87.0/src/colorseg.c:611:22: acquire_memory: allocated here
leptonica-1.87.0/src/colorseg.c:612:27: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/colorseg.c:613:9: branch_true: ...to here
leptonica-1.87.0/src/colorseg.c:617:12: throw: if ‘pixMakeMaskFromLUT’ throws an exception...
leptonica-1.87.0/src/colorseg.c:617:12: danger: ‘tab’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
leptonica-1.87.0/src/colorspace.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
leptonica-1.87.0/src/colorspace.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
leptonica-1.87.0/src/colorspace.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
leptonica-1.87.0/src/colorspace.c:155:12: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
leptonica-1.87.0/src/colorspace.c:155:12: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
leptonica-1.87.0/src/colorspace.c:155:12: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
leptonica-1.87.0/src/colorspace.c:157:23: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
leptonica-1.87.0/src/colorspace.c:157:23: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
leptonica-1.87.0/src/colorspace.c:157:23: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
leptonica-1.87.0/src/colorspace.c:160:16: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
leptonica-1.87.0/src/colorspace.c:160:16: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
leptonica-1.87.0/src/colorspace.c:160:16: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
leptonica-1.87.0/src/colorspace.c:162:12: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
leptonica-1.87.0/src/colorspace.c:162:12: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
leptonica-1.87.0/src/colorspace.c:162:12: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
leptonica-1.87.0/src/colorspace.c:431:15: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
leptonica-1.87.0/src/colorspace.c:431:15: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
leptonica-1.87.0/src/colorspace.c:431:15: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
leptonica-1.87.0/src/colorspace.c:433:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
leptonica-1.87.0/src/colorspace.c:433:9: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
leptonica-1.87.0/src/colorspace.c:433:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
leptonica-1.87.0/src/colorspace.c:435:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hlut’
leptonica-1.87.0/src/colorspace.c:789:1: enter_function: entry to ‘pixMakeRangeMaskHV’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_false: following ‘false’ branch (when ‘i > hend’)...
leptonica-1.87.0/src/colorspace.c:828:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:828:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskHV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
leptonica-1.87.0/src/colorspace.c:435:9: warning[-Wanalyzer-malloc-leak]: leak of ‘slut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:906:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
leptonica-1.87.0/src/colorspace.c:435:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vlut’
leptonica-1.87.0/src/colorspace.c:885:1: enter_function: entry to ‘pixMakeRangeMaskSV’
leptonica-1.87.0/src/colorspace.c:898:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:900:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:906:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:907:23: acquire_memory: allocated here
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:912:22: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:914:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:918:12: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:918:12: call_function: calling ‘pixConvertRGBToHSV’ from ‘pixMakeRangeMaskSV’
Error: CPPCHECK_WARNING (CWE-476): [#def565]
leptonica-1.87.0/src/colorspace.c:717: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: slut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def566]
leptonica-1.87.0/src/colorspace.c:727:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hlut’
leptonica-1.87.0/src/colorspace.c:705:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:707:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:712:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:712:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colorspace.c:716:22: branch_false: following ‘false’ branch (when ‘i > send’)...
leptonica-1.87.0/src/colorspace.c:718:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:720:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:720:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:724:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:724:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:726:21: branch_true: following ‘true’ branch (when ‘i <= hend’)...
leptonica-1.87.0/src/colorspace.c:727:17: branch_true: ...to here
leptonica-1.87.0/src/colorspace.c:727:13: danger: ‘hlut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def567]
leptonica-1.87.0/src/colorspace.c:814: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vlut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def568]
leptonica-1.87.0/src/colorspace.c:824:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hlut’
leptonica-1.87.0/src/colorspace.c:802:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:804:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/colorspace.c:809:23: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:809:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/colorspace.c:813:22: branch_false: following ‘false’ branch (when ‘i > vend’)...
leptonica-1.87.0/src/colorspace.c:815:15: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: following ‘false’ branch (when ‘hstart >= hend’)...
leptonica-1.87.0/src/colorspace.c:817:8: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: following ‘false’ branch (when ‘i == 240’)...
leptonica-1.87.0/src/colorspace.c:821:26: branch_false: ...to here
leptonica-1.87.0/src/colorspace.c:823:21: branch_true: following ‘true’ branch (when ‘i <= hend’)...
leptonica-1.87.0/src/colorspace.c:824:17: branch_true: ...to here
leptonica-1.87.0/src/colorspace.c:824:13: danger: ‘hlut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def569]
leptonica-1.87.0/src/colorspace.c:913: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: slut
Error: CPPCHECK_WARNING (CWE-476): [#def570]
leptonica-1.87.0/src/colorspace.c:915: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vlut
Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
leptonica-1.87.0/src/compare.c:2041:11: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2041:11: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/compare.c:2041:11: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
leptonica-1.87.0/src/compare.c:2042:11: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2042:11: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/compare.c:2042:11: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
leptonica-1.87.0/src/compare.c:2044:15: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2044:15: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/compare.c:2044:15: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
leptonica-1.87.0/src/compare.c:2045:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2045:16: throw: if ‘pixGetText’ throws an exception...
leptonica-1.87.0/src/compare.c:2045:16: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
leptonica-1.87.0/src/compare.c:2046:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2046:9: throw: if ‘pixSetResolution’ throws an exception...
leptonica-1.87.0/src/compare.c:2046:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
leptonica-1.87.0/src/compare.c:2069:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_true: following ‘true’ branch (when ‘scores’ is NULL)...
leptonica-1.87.0/src/compare.c:2069:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2069:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2069:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2069:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/compare.c:2069:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
leptonica-1.87.0/src/compare.c:2072:11: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2072:11: throw: if ‘numaMakeConstant’ throws an exception...
leptonica-1.87.0/src/compare.c:2072:11: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
leptonica-1.87.0/src/compare.c:2072:11: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2072:11: throw: if ‘numaMakeConstant’ throws an exception...
leptonica-1.87.0/src/compare.c:2072:11: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
leptonica-1.87.0/src/compare.c:2119:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2119:16: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/compare.c:2119:16: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
leptonica-1.87.0/src/compare.c:2119:16: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2119:16: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/compare.c:2119:16: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
leptonica-1.87.0/src/compare.c:2120:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2120:16: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/compare.c:2120:16: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
leptonica-1.87.0/src/compare.c:2120:16: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2120:16: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/compare.c:2120:16: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
leptonica-1.87.0/src/compare.c:2121:15: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2121:15: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/compare.c:2121:15: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
leptonica-1.87.0/src/compare.c:2121:15: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2121:15: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/compare.c:2121:15: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
leptonica-1.87.0/src/compare.c:2130:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2130:16: throw: if ‘pixExpandReplicate’ throws an exception...
leptonica-1.87.0/src/compare.c:2130:16: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
leptonica-1.87.0/src/compare.c:2130:16: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2130:16: throw: if ‘pixExpandReplicate’ throws an exception...
leptonica-1.87.0/src/compare.c:2130:16: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
leptonica-1.87.0/src/compare.c:2131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2131:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/compare.c:2131:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
leptonica-1.87.0/src/compare.c:2131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2131:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/compare.c:2131:9: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
leptonica-1.87.0/src/compare.c:2132:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2132:9: throw: if ‘lept_mkdir’ throws an exception...
leptonica-1.87.0/src/compare.c:2132:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
leptonica-1.87.0/src/compare.c:2132:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2132:9: throw: if ‘lept_mkdir’ throws an exception...
leptonica-1.87.0/src/compare.c:2132:9: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
leptonica-1.87.0/src/compare.c:2133:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2133:9: throw: if ‘pixWrite’ throws an exception...
leptonica-1.87.0/src/compare.c:2133:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
leptonica-1.87.0/src/compare.c:2133:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2133:9: throw: if ‘pixWrite’ throws an exception...
leptonica-1.87.0/src/compare.c:2133:9: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
leptonica-1.87.0/src/compare.c:2134:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2134:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/compare.c:2134:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
leptonica-1.87.0/src/compare.c:2134:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2134:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/compare.c:2134:9: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
leptonica-1.87.0/src/compare.c:2135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2135:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/compare.c:2135:9: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
leptonica-1.87.0/src/compare.c:2135:9: warning[-Wanalyzer-malloc-leak]: leak of ‘scores’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2067:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2119:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2122:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2129:16: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2135:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/compare.c:2135:9: danger: ‘scores’ leaks here; was allocated at [(17)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
leptonica-1.87.0/src/compare.c:2145:18: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_false: following ‘false’ branch (when ‘scores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2072:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2073:30: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2107:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2115:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2138:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2144:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2145:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2145:18: throw: if ‘pixaDisplayTiledByIndex’ throws an exception...
leptonica-1.87.0/src/compare.c:2145:18: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
leptonica-1.87.0/src/compare.c:2148:5: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_true: following ‘true’ branch (when ‘scores’ is NULL)...
leptonica-1.87.0/src/compare.c:2069:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2148:5: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/compare.c:2148:5: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def599]
leptonica-1.87.0/src/compare.c:2149:5: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:2017:8: branch_false: following ‘false’ branch (when ‘pscores’ is NULL)...
leptonica-1.87.0/src/compare.c:2018:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2067:29: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2066:8: branch_true: following ‘true’ branch (when ‘scores’ is NULL)...
leptonica-1.87.0/src/compare.c:2069:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2149:5: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/compare.c:2149:5: danger: ‘n3a’ leaks here; was allocated at [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def600]
leptonica-1.87.0/src/compare.c:2354:18: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def601]
leptonica-1.87.0/src/compare.c:2355:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
leptonica-1.87.0/src/compare.c:2374:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
leptonica-1.87.0/src/compare.c:2377:12: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
leptonica-1.87.0/src/compare.c:2452:23: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
leptonica-1.87.0/src/compare.c:2456:12: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
leptonica-1.87.0/src/compare.c:2507:18: warning[-Wanalyzer-malloc-leak]: leak of ‘n3a’
leptonica-1.87.0/src/compare.c:1997:1: enter_function: entry to ‘pixaComparePhotoRegionsByHisto’
leptonica-1.87.0/src/compare.c:2017:8: branch_true: following ‘true’ branch (when ‘pscores’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2017:18: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2018:8: branch_true: following ‘true’ branch (when ‘ppixd’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2018:16: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2019:8: branch_false: following ‘false’ branch (when ‘pnai’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2021:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2022:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2024:8: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2024:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/compare.c:2027:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/compare.c:2029:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2039:26: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:2039:8: branch_false: following ‘false’ branch (when ‘n3a’ is non-NULL)...
leptonica-1.87.0/src/compare.c:2041:11: branch_false: ...to here
leptonica-1.87.0/src/compare.c:2043:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/compare.c:2044:15: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2047:17: branch_true: following ‘true’ branch (when ‘debug != 0’)...
leptonica-1.87.0/src/compare.c:2048:9: branch_true: ...to here
leptonica-1.87.0/src/compare.c:2048:9: call_function: calling ‘pixGenPhotoHistos’ from ‘pixaComparePhotoRegionsByHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
leptonica-1.87.0/src/compare.c:3314:5: warning[-Wanalyzer-malloc-leak]: leak of ‘bytea’
leptonica-1.87.0/src/compare.c:3297:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/compare.c:3299:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:3300:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/compare.c:3302:9: branch_false: ...to here
leptonica-1.87.0/src/compare.c:3311:29: acquire_memory: allocated here
leptonica-1.87.0/src/compare.c:3311:8: branch_false: following ‘false’ branch (when ‘bytea’ is non-NULL)...
leptonica-1.87.0/src/compare.c:3313:5: branch_false: ...to here
leptonica-1.87.0/src/compare.c:3314:5: throw: if ‘l_setDataFourBytes’ throws an exception...
leptonica-1.87.0/src/compare.c:3314:5: danger: ‘bytea’ leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def608]
leptonica-1.87.0/src/conncomp.c:675:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x1’
leptonica-1.87.0/src/conncomp.c:559:1: enter_function: entry to ‘pixSeedfillBB’
leptonica-1.87.0/src/conncomp.c:569:8: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:571:9: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:574:8: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:574:8: branch_true: following ‘true’ branch (when ‘connectivity == 4’)...
leptonica-1.87.0/src/conncomp.c:575:20: branch_true: ...to here
leptonica-1.87.0/src/conncomp.c:575:20: call_function: calling ‘pixSeedfill4BB’ from ‘pixSeedfillBB’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def609]
leptonica-1.87.0/src/conncomp.c:788:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x1’
leptonica-1.87.0/src/conncomp.c:559:1: enter_function: entry to ‘pixSeedfillBB’
leptonica-1.87.0/src/conncomp.c:569:8: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:571:9: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:574:8: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:574:8: branch_false: following ‘false’ branch (when ‘connectivity != 4’)...
leptonica-1.87.0/src/conncomp.c:578:20: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:578:20: call_function: calling ‘pixSeedfill8BB’ from ‘pixSeedfillBB’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def610]
leptonica-1.87.0/src/conncomp.c:926:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x1’
leptonica-1.87.0/src/conncomp.c:837:1: enter_function: entry to ‘pixSeedfill’
leptonica-1.87.0/src/conncomp.c:847:8: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:849:9: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:849:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:852:8: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:852:8: branch_true: following ‘true’ branch (when ‘connectivity == 4’)...
leptonica-1.87.0/src/conncomp.c:853:18: branch_true: ...to here
leptonica-1.87.0/src/conncomp.c:853:18: call_function: calling ‘pixSeedfill4’ from ‘pixSeedfill’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def611]
leptonica-1.87.0/src/conncomp.c:1018:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x1’
leptonica-1.87.0/src/conncomp.c:971:1: enter_function: entry to ‘pixSeedfill8’
leptonica-1.87.0/src/conncomp.c:980:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:982:8: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:984:10: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:995:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:999:5: call_function: calling ‘pushFillseg’ from ‘pixSeedfill8’
leptonica-1.87.0/src/conncomp.c:999:5: return_function: returning to ‘pixSeedfill8’ from ‘pushFillseg’
leptonica-1.87.0/src/conncomp.c:1000:5: call_function: calling ‘pushFillseg’ from ‘pixSeedfill8’
leptonica-1.87.0/src/conncomp.c:1000:5: return_function: returning to ‘pixSeedfill8’ from ‘pushFillseg’
leptonica-1.87.0/src/conncomp.c:1002:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/conncomp.c:1004:9: branch_true: ...to here
leptonica-1.87.0/src/conncomp.c:1004:9: call_function: calling ‘popFillseg’ from ‘pixSeedfill8’
leptonica-1.87.0/src/conncomp.c:1004:9: return_function: returning to ‘pixSeedfill8’ from ‘popFillseg’
leptonica-1.87.0/src/conncomp.c:1018:18: danger: use of uninitialized value ‘x1’ here
Error: CPPCHECK_WARNING (CWE-476): [#def612]
leptonica-1.87.0/src/conncomp.c:1107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: GCC_ANALYZER_WARNING (CWE-476): [#def613]
leptonica-1.87.0/src/conncomp.c:1107:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fseg’
leptonica-1.87.0/src/conncomp.c:1086:8: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:1091:14: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1096:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/conncomp.c:1097:12: branch_false: following ‘false’ branch (when ‘auxstack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:1103:13: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1103:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:1106:31: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1106:31: acquire_memory: this call could return NULL
leptonica-1.87.0/src/conncomp.c:1107:9: danger: ‘fseg’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def614]
leptonica-1.87.0/src/conncomp.c:1108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: CPPCHECK_WARNING (CWE-476): [#def615]
leptonica-1.87.0/src/conncomp.c:1109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: CPPCHECK_WARNING (CWE-476): [#def616]
leptonica-1.87.0/src/conncomp.c:1110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
leptonica-1.87.0/src/conncomp.c:1111:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fseg’
leptonica-1.87.0/src/conncomp.c:1086:8: branch_false: following ‘false’ branch (when ‘stack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:1091:14: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1096:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/conncomp.c:1097:12: branch_false: following ‘false’ branch (when ‘auxstack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:1103:13: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1103:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:1106:31: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1106:31: acquire_memory: allocated here
leptonica-1.87.0/src/conncomp.c:1111:9: throw: if ‘lstackAdd’ throws an exception...
leptonica-1.87.0/src/conncomp.c:1111:9: danger: ‘fseg’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def618]
leptonica-1.87.0/src/conncomp.c:1161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: GCC_ANALYZER_WARNING (CWE-476): [#def619]
leptonica-1.87.0/src/conncomp.c:1161:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fseg’
leptonica-1.87.0/src/conncomp.c:1151:12: branch_false: following ‘false’ branch (when ‘auxstack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:1157:13: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1157:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:1160:31: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1160:31: acquire_memory: this call could return NULL
leptonica-1.87.0/src/conncomp.c:1161:9: danger: ‘fseg’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def620]
leptonica-1.87.0/src/conncomp.c:1162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: CPPCHECK_WARNING (CWE-476): [#def621]
leptonica-1.87.0/src/conncomp.c:1163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: CPPCHECK_WARNING (CWE-476): [#def622]
leptonica-1.87.0/src/conncomp.c:1164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fseg
Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
leptonica-1.87.0/src/conncomp.c:1165:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fseg’
leptonica-1.87.0/src/conncomp.c:1151:12: branch_false: following ‘false’ branch (when ‘auxstack’ is non-NULL)...
leptonica-1.87.0/src/conncomp.c:1157:13: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1157:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/conncomp.c:1160:31: branch_false: ...to here
leptonica-1.87.0/src/conncomp.c:1160:31: acquire_memory: allocated here
leptonica-1.87.0/src/conncomp.c:1165:9: throw: if ‘lstackAdd’ throws an exception...
leptonica-1.87.0/src/conncomp.c:1165:9: danger: ‘fseg’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-457): [#def624]
leptonica-1.87.0/src/convolve.c: scope_hint: In function ‘pixWindowedVariance’
leptonica-1.87.0/src/convolve.c:1271:50: warning[-Wmaybe-uninitialized]: ‘wplv’ may be used uninitialized
Error: COMPILER_WARNING (CWE-457): [#def625]
leptonica-1.87.0/src/convolve.c:1271:56: warning[-Wmaybe-uninitialized]: ‘wplrv’ may be used uninitialized
Error: GCC_ANALYZER_WARNING (CWE-457): [#def626]
leptonica-1.87.0/src/correlscore.c:543:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘untouchable’
leptonica-1.87.0/src/correlscore.c:444:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:446:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:448:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/correlscore.c:450:9: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:450:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:454:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:457:8: branch_false: following ‘false’ branch (when ‘delw <= maxdiffw’)...
leptonica-1.87.0/src/correlscore.c:459:12: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:460:8: branch_false: following ‘false’ branch (when ‘delh <= maxdiffh’)...
leptonica-1.87.0/src/correlscore.c:464:8: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:491:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:497:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:521:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:525:21: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:527:12: branch_true: following ‘true’ branch (when ‘idelx == 0’)...
leptonica-1.87.0/src/correlscore.c:527:12: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:529:29: branch_true: following ‘true’ branch (when ‘y < hirow’)...
leptonica-1.87.0/src/correlscore.c:529:29: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:530:29: branch_false: following ‘false’ branch (when ‘x >= rowwords1’)...
leptonica-1.87.0/src/correlscore.c:542:20: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:542:20: branch_false: following ‘false’ branch (when ‘count < threshold’)...
leptonica-1.87.0/src/correlscore.c:543:38: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:543:21: danger: use of uninitialized value ‘untouchable’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def627]
leptonica-1.87.0/src/correlscore.c:600:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘untouchable’
leptonica-1.87.0/src/correlscore.c:444:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:446:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:448:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/correlscore.c:450:9: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:450:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:454:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:457:8: branch_false: following ‘false’ branch (when ‘delw <= maxdiffw’)...
leptonica-1.87.0/src/correlscore.c:459:12: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:460:8: branch_false: following ‘false’ branch (when ‘delh <= maxdiffh’)...
leptonica-1.87.0/src/correlscore.c:464:8: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:491:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:497:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:521:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:525:21: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:527:12: branch_false: following ‘false’ branch (when ‘idelx != 0’)...
leptonica-1.87.0/src/correlscore.c:547:19: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:547:19: branch_true: following ‘true’ branch (when ‘idelx > 0’)...
leptonica-1.87.0/src/correlscore.c:564:16: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:564:16: branch_true: following ‘true’ branch (when ‘rowwords2 < rowwords1’)...
leptonica-1.87.0/src/correlscore.c:564:16: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:565:33: branch_true: following ‘true’ branch (when ‘y < hirow’)...
leptonica-1.87.0/src/correlscore.c:568:21: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:599:24: branch_false: following ‘false’ branch (when ‘threshold > count’)...
leptonica-1.87.0/src/correlscore.c:600:42: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:600:25: danger: use of uninitialized value ‘untouchable’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def628]
leptonica-1.87.0/src/correlscore.c:631:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘untouchable’
leptonica-1.87.0/src/correlscore.c:444:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:446:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:448:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/correlscore.c:450:9: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:450:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:454:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:457:8: branch_false: following ‘false’ branch (when ‘delw <= maxdiffw’)...
leptonica-1.87.0/src/correlscore.c:459:12: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:460:8: branch_false: following ‘false’ branch (when ‘delh <= maxdiffh’)...
leptonica-1.87.0/src/correlscore.c:464:8: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:491:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:497:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:521:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:525:21: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:527:12: branch_false: following ‘false’ branch (when ‘idelx != 0’)...
leptonica-1.87.0/src/correlscore.c:547:19: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:547:19: branch_true: following ‘true’ branch (when ‘idelx > 0’)...
leptonica-1.87.0/src/correlscore.c:564:16: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:564:16: branch_false: following ‘false’ branch (when ‘rowwords2 >= rowwords1’)...
leptonica-1.87.0/src/correlscore.c:564:16: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:605:33: branch_true: following ‘true’ branch (when ‘y < hirow’)...
leptonica-1.87.0/src/correlscore.c:611:21: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:630:24: branch_false: following ‘false’ branch (when ‘count < threshold’)...
leptonica-1.87.0/src/correlscore.c:631:42: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:631:25: danger: use of uninitialized value ‘untouchable’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def629]
leptonica-1.87.0/src/correlscore.c:658:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘untouchable’
leptonica-1.87.0/src/correlscore.c:444:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:446:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:448:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/correlscore.c:450:9: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:450:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:454:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:457:8: branch_false: following ‘false’ branch (when ‘delw <= maxdiffw’)...
leptonica-1.87.0/src/correlscore.c:459:12: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:460:8: branch_false: following ‘false’ branch (when ‘delh <= maxdiffh’)...
leptonica-1.87.0/src/correlscore.c:464:8: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:491:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:497:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:521:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:525:21: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:527:12: branch_false: following ‘false’ branch (when ‘idelx != 0’)...
leptonica-1.87.0/src/correlscore.c:547:19: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:547:19: branch_false: following ‘false’ branch (when ‘idelx <= 0’)...
leptonica-1.87.0/src/correlscore.c:642:16: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:642:16: branch_true: following ‘true’ branch (when ‘rowwords2 > rowwords1’)...
leptonica-1.87.0/src/correlscore.c:642:16: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:645:33: branch_true: following ‘true’ branch (when ‘y < hirow’)...
leptonica-1.87.0/src/correlscore.c:645:33: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:646:33: branch_false: following ‘false’ branch (when ‘x >= rowwords1’)...
leptonica-1.87.0/src/correlscore.c:657:24: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:657:24: branch_false: following ‘false’ branch (when ‘count < threshold’)...
leptonica-1.87.0/src/correlscore.c:658:42: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:658:25: danger: use of uninitialized value ‘untouchable’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def630]
leptonica-1.87.0/src/correlscore.c:686:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘untouchable’
leptonica-1.87.0/src/correlscore.c:444:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:446:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:448:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/correlscore.c:450:9: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:450:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:454:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:457:8: branch_false: following ‘false’ branch (when ‘delw <= maxdiffw’)...
leptonica-1.87.0/src/correlscore.c:459:12: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:460:8: branch_false: following ‘false’ branch (when ‘delh <= maxdiffh’)...
leptonica-1.87.0/src/correlscore.c:464:8: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:491:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:497:5: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:521:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/correlscore.c:525:21: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:527:12: branch_false: following ‘false’ branch (when ‘idelx != 0’)...
leptonica-1.87.0/src/correlscore.c:547:19: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:547:19: branch_false: following ‘false’ branch (when ‘idelx <= 0’)...
leptonica-1.87.0/src/correlscore.c:642:16: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:642:16: branch_false: following ‘false’ branch (when ‘rowwords2 <= rowwords1’)...
leptonica-1.87.0/src/correlscore.c:642:16: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:665:33: branch_true: following ‘true’ branch (when ‘y < hirow’)...
leptonica-1.87.0/src/correlscore.c:665:33: branch_true: ...to here
leptonica-1.87.0/src/correlscore.c:685:24: branch_false: following ‘false’ branch (when ‘threshold > count’)...
leptonica-1.87.0/src/correlscore.c:686:42: branch_false: ...to here
leptonica-1.87.0/src/correlscore.c:686:25: danger: use of uninitialized value ‘untouchable’ here
Error: COMPILER_WARNING (CWE-457): [#def631]
leptonica-1.87.0/src/correlscore.c: scope_hint: In function ‘pixCorrelationScoreThresholded’
leptonica-1.87.0/src/correlscore.c:686:46: warning[-Wmaybe-uninitialized]: ‘untouchable’ may be used uninitialized
leptonica-1.87.0/src/correlscore.c:437:52: note: ‘untouchable’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def632]
leptonica-1.87.0/src/dewarp1.c:470: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: GCC_ANALYZER_WARNING (CWE-476): [#def633]
leptonica-1.87.0/src/dewarp1.c:470:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dew’
leptonica-1.87.0/src/dewarp1.c:466:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:469:23: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:469:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/dewarp1.c:470:5: danger: ‘dew’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
leptonica-1.87.0/src/dewarp1.c:470:17: warning[-Wanalyzer-malloc-leak]: leak of ‘dew’
leptonica-1.87.0/src/dewarp1.c:466:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:469:23: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:469:23: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:470:17: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/dewarp1.c:470:17: danger: ‘dew’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def635]
leptonica-1.87.0/src/dewarp1.c:471: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def636]
leptonica-1.87.0/src/dewarp1.c:472: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: GCC_ANALYZER_WARNING (CWE-401): [#def637]
leptonica-1.87.0/src/dewarp1.c:472:14: warning[-Wanalyzer-malloc-leak]: leak of ‘dew’
leptonica-1.87.0/src/dewarp1.c:466:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:469:23: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:469:23: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:472:14: throw: if ‘pixGetWidth’ throws an exception...
leptonica-1.87.0/src/dewarp1.c:472:14: danger: ‘dew’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def638]
leptonica-1.87.0/src/dewarp1.c:473: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: GCC_ANALYZER_WARNING (CWE-401): [#def639]
leptonica-1.87.0/src/dewarp1.c:473:14: warning[-Wanalyzer-malloc-leak]: leak of ‘dew’
leptonica-1.87.0/src/dewarp1.c:466:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:469:23: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:469:23: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:473:14: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/dewarp1.c:473:14: danger: ‘dew’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def640]
leptonica-1.87.0/src/dewarp1.c:502: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: GCC_ANALYZER_WARNING (CWE-476): [#def641]
leptonica-1.87.0/src/dewarp1.c:502:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dew’
leptonica-1.87.0/src/dewarp1.c:501:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/dewarp1.c:502:5: danger: ‘dew’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def642]
leptonica-1.87.0/src/dewarp1.c:503: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def643]
leptonica-1.87.0/src/dewarp1.c:504: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def644]
leptonica-1.87.0/src/dewarp1.c:609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dewa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def645]
leptonica-1.87.0/src/dewarp1.c:609:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dewa’
leptonica-1.87.0/src/dewarp1.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:591:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:608:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/dewarp1.c:609:5: danger: ‘calloc(1, 96)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def646]
leptonica-1.87.0/src/dewarp1.c:610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dewa
Error: CPPCHECK_WARNING (CWE-476): [#def647]
leptonica-1.87.0/src/dewarp1.c:611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dewa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
leptonica-1.87.0/src/dewarp1.c:741:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/dewarp1.c:576:1: enter_function: entry to ‘dewarpaCreate’
leptonica-1.87.0/src/dewarp1.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:591:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:610:38: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:611:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/dewarp1.c:612:9: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:612:9: call_function: calling ‘dewarpaDestroy’ from ‘dewarpaCreate’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
leptonica-1.87.0/src/dewarp1.c:741:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dewa’
leptonica-1.87.0/src/dewarp1.c:576:1: enter_function: entry to ‘dewarpaCreate’
leptonica-1.87.0/src/dewarp1.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:591:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:608:25: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:611:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/dewarp1.c:612:9: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:612:9: call_function: calling ‘dewarpaDestroy’ from ‘dewarpaCreate’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def650]
leptonica-1.87.0/src/dewarp1.c:901:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1637:1: enter_function: entry to ‘dewarpaWriteMem’
leptonica-1.87.0/src/dewarp1.c:1645:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1645:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1646:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: following ‘false’ branch (when ‘dewa’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1654:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1654:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1654:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1656:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1656:11: call_function: calling ‘dewarpaWriteStream’ from ‘dewarpaWriteMem’
Error: CPPCHECK_WARNING (CWE-476): [#def651]
leptonica-1.87.0/src/dewarp1.c:1210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: GCC_ANALYZER_WARNING (CWE-476): [#def652]
leptonica-1.87.0/src/dewarp1.c:1210:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dew’
leptonica-1.87.0/src/dewarp1.c:1158:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1160:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1160:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1162:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1162:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1164:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1164:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1167:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1167:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1171:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1171:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1174:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1174:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1176:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1176:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1178:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1178:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1181:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1197:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1202:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1202:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp1.c:1207:5: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1209:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/dewarp1.c:1210:5: danger: ‘dew’ could be NULL: unchecked value from [(23)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-476): [#def653]
leptonica-1.87.0/src/dewarp1.c:1211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def654]
leptonica-1.87.0/src/dewarp1.c:1212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def655]
leptonica-1.87.0/src/dewarp1.c:1213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def656]
leptonica-1.87.0/src/dewarp1.c:1214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def657]
leptonica-1.87.0/src/dewarp1.c:1215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def658]
leptonica-1.87.0/src/dewarp1.c:1216: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def659]
leptonica-1.87.0/src/dewarp1.c:1217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def660]
leptonica-1.87.0/src/dewarp1.c:1218: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def661]
leptonica-1.87.0/src/dewarp1.c:1221: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: CPPCHECK_WARNING (CWE-476): [#def662]
leptonica-1.87.0/src/dewarp1.c:1222: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dew
Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
leptonica-1.87.0/src/dewarp1.c:1320:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1637:1: enter_function: entry to ‘dewarpaWriteMem’
leptonica-1.87.0/src/dewarp1.c:1645:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1645:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1646:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: following ‘false’ branch (when ‘dewa’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1654:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1654:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1654:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1656:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1656:11: call_function: calling ‘dewarpaWriteStream’ from ‘dewarpaWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
leptonica-1.87.0/src/dewarp1.c:1342:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1366:1: enter_function: entry to ‘dewarpWriteMem’
leptonica-1.87.0/src/dewarp1.c:1374:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1374:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1375:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1377:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1377:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1379:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1379:8: branch_false: following ‘false’ branch (when ‘dew’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1383:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1383:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1383:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1385:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1385:11: call_function: calling ‘dewarpWriteStream’ from ‘dewarpWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
leptonica-1.87.0/src/dewarp1.c:1343:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1366:1: enter_function: entry to ‘dewarpWriteMem’
leptonica-1.87.0/src/dewarp1.c:1374:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1374:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1375:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1377:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1377:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1379:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1379:8: branch_false: following ‘false’ branch (when ‘dew’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1383:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1383:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1383:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1385:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1385:11: call_function: calling ‘dewarpWriteStream’ from ‘dewarpWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def666]
leptonica-1.87.0/src/dewarp1.c:1347:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1366:1: enter_function: entry to ‘dewarpWriteMem’
leptonica-1.87.0/src/dewarp1.c:1374:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1374:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1375:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1377:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1377:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1379:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1379:8: branch_false: following ‘false’ branch (when ‘dew’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1383:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1383:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1383:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1385:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1385:11: call_function: calling ‘dewarpWriteStream’ from ‘dewarpWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
leptonica-1.87.0/src/dewarp1.c:1598:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1637:1: enter_function: entry to ‘dewarpaWriteMem’
leptonica-1.87.0/src/dewarp1.c:1645:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1645:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1646:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: following ‘false’ branch (when ‘dewa’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1654:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1654:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1654:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1656:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1656:11: call_function: calling ‘dewarpaWriteStream’ from ‘dewarpaWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
leptonica-1.87.0/src/dewarp1.c:1600:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1637:1: enter_function: entry to ‘dewarpaWriteMem’
leptonica-1.87.0/src/dewarp1.c:1645:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1645:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1646:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: following ‘false’ branch (when ‘dewa’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1654:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1654:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1654:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1656:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1656:11: call_function: calling ‘dewarpaWriteStream’ from ‘dewarpaWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
leptonica-1.87.0/src/dewarp1.c:1601:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1637:1: enter_function: entry to ‘dewarpaWriteMem’
leptonica-1.87.0/src/dewarp1.c:1645:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1645:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1646:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: following ‘false’ branch (when ‘dewa’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1654:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1654:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1654:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1656:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1656:11: call_function: calling ‘dewarpaWriteStream’ from ‘dewarpaWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def670]
leptonica-1.87.0/src/dewarp1.c:1615:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dewarp1.c:1637:1: enter_function: entry to ‘dewarpaWriteMem’
leptonica-1.87.0/src/dewarp1.c:1645:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1645:16: branch_true: ...to here
leptonica-1.87.0/src/dewarp1.c:1646:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1648:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1650:8: branch_false: following ‘false’ branch (when ‘dewa’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1654:15: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1654:15: acquire_memory: allocated here
leptonica-1.87.0/src/dewarp1.c:1654:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dewarp1.c:1656:11: branch_false: ...to here
leptonica-1.87.0/src/dewarp1.c:1656:11: call_function: calling ‘dewarpaWriteStream’ from ‘dewarpaWriteMem’
Error: CPPCHECK_WARNING (CWE-457): [#def671]
leptonica-1.87.0/src/dewarp2.c:1316: warning[uninitvar]: Uninitialized variable: ytop
Error: GCC_ANALYZER_WARNING (CWE-457): [#def672]
leptonica-1.87.0/src/dewarp2.c:1316:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ytop’
leptonica-1.87.0/src/dewarp2.c:1288:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/dewarp2.c:1290:14: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1290:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1292:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1292:8: branch_false: following ‘false’ branch (when ‘h > 0’)...
leptonica-1.87.0/src/dewarp2.c:1294:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1294:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1296:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1296:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1299:10: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1305:27: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1312:5: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1316:5: danger: use of uninitialized value ‘ytop’ here
Error: CPPCHECK_WARNING (CWE-457): [#def673]
leptonica-1.87.0/src/dewarp2.c:1317: warning[uninitvar]: Uninitialized variable: ybot
Error: GCC_ANALYZER_WARNING (CWE-457): [#def674]
leptonica-1.87.0/src/dewarp2.c:1317:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ybot’
leptonica-1.87.0/src/dewarp2.c:1288:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/dewarp2.c:1290:14: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1290:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1292:8: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1292:8: branch_false: following ‘false’ branch (when ‘h > 0’)...
leptonica-1.87.0/src/dewarp2.c:1294:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1294:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1296:9: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1296:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1299:10: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1305:27: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/dewarp2.c:1306:9: branch_true: ...to here
leptonica-1.87.0/src/dewarp2.c:1307:12: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/dewarp2.c:1307:21: branch_true: ...to here
leptonica-1.87.0/src/dewarp2.c:1308:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1309:13: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1309:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/dewarp2.c:1310:13: branch_true: ...to here
leptonica-1.87.0/src/dewarp2.c:1305:27: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dewarp2.c:1312:5: branch_false: ...to here
leptonica-1.87.0/src/dewarp2.c:1317:5: danger: use of uninitialized value ‘ybot’ here
Error: COMPILER_WARNING (CWE-457): [#def675]
leptonica-1.87.0/src/dewarp2.c:1320:33: warning[-Wmaybe-uninitialized]: ‘ybot’ may be used uninitialized
leptonica-1.87.0/src/dewarp2.c: scope_hint: In function ‘dewarpBuildPageModel’
leptonica-1.87.0/src/dewarp2.c:1284:53: note: ‘ybot’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def676]
leptonica-1.87.0/src/dnabasic.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: da
Error: GCC_ANALYZER_WARNING (CWE-476): [#def677]
leptonica-1.87.0/src/dnabasic.c:187:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘da’
leptonica-1.87.0/src/dnabasic.c:357:1: enter_function: entry to ‘l_dnaCopy’
leptonica-1.87.0/src/dnabasic.c:365:16: call_function: calling ‘l_dnaCreate’ from ‘l_dnaCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def678]
leptonica-1.87.0/src/dnabasic.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: da
Error: CPPCHECK_WARNING (CWE-476): [#def679]
leptonica-1.87.0/src/dnabasic.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: da
Error: CPPCHECK_WARNING (CWE-476): [#def680]
leptonica-1.87.0/src/dnabasic.c:194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: da
Error: CPPCHECK_WARNING (CWE-476): [#def681]
leptonica-1.87.0/src/dnabasic.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: da
Error: CPPCHECK_WARNING (CWE-476): [#def682]
leptonica-1.87.0/src/dnabasic.c:196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: da
Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
leptonica-1.87.0/src/dnabasic.c:342:1: warning[-Wanalyzer-malloc-leak]: leak of ‘da’
leptonica-1.87.0/src/dnabasic.c:357:1: enter_function: entry to ‘l_dnaCopy’
leptonica-1.87.0/src/dnabasic.c:365:16: call_function: calling ‘l_dnaCreate’ from ‘l_dnaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
leptonica-1.87.0/src/dnabasic.c:387:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/dnabasic.c:1768:1: enter_function: entry to ‘l_dnaaWriteMem’
leptonica-1.87.0/src/dnabasic.c:1776:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dnabasic.c:1776:16: branch_true: ...to here
leptonica-1.87.0/src/dnabasic.c:1777:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/dnabasic.c:1779:8: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1779:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/dnabasic.c:1781:8: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1781:8: branch_false: following ‘false’ branch (when ‘daa’ is non-NULL)...
leptonica-1.87.0/src/dnabasic.c:1785:15: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1785:15: acquire_memory: allocated here
leptonica-1.87.0/src/dnabasic.c:1785:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/dnabasic.c:1787:11: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1787:11: call_function: calling ‘l_dnaaWriteStream’ from ‘l_dnaaWriteMem’
Error: CPPCHECK_WARNING (CWE-476): [#def685]
leptonica-1.87.0/src/dnabasic.c:1194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: daa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def686]
leptonica-1.87.0/src/dnabasic.c:1194:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘daa’
leptonica-1.87.0/src/dnabasic.c:1625:1: enter_function: entry to ‘l_dnaaReadStream’
leptonica-1.87.0/src/dnabasic.c:1635:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dnabasic.c:1637:9: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1637:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dnabasic.c:1639:9: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1639:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dnabasic.c:1641:9: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1641:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dnabasic.c:1643:9: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1643:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dnabasic.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/dnabasic.c:1647:16: call_function: calling ‘l_dnaaCreate’ from ‘l_dnaaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def687]
leptonica-1.87.0/src/dnabasic.c:1198: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: daa
Error: CPPCHECK_WARNING (CWE-476): [#def688]
leptonica-1.87.0/src/dnabasic.c:1199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: daa
Error: CPPCHECK_WARNING (CWE-476): [#def689]
leptonica-1.87.0/src/dnahash.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dahash
Error: GCC_ANALYZER_WARNING (CWE-476): [#def690]
leptonica-1.87.0/src/dnahash.c:85:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dahash’
leptonica-1.87.0/src/dnahash.c:76:8: branch_false: following ‘false’ branch (when ‘nbuckets > 0’)...
leptonica-1.87.0/src/dnahash.c:78:5: branch_false: ...to here
leptonica-1.87.0/src/dnahash.c:79:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/dnahash.c:84:27: branch_false: ...to here
leptonica-1.87.0/src/dnahash.c:84:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/dnahash.c:85:9: danger: ‘dahash’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def691]
leptonica-1.87.0/src/dnahash.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dahash
Error: CPPCHECK_WARNING (CWE-476): [#def692]
leptonica-1.87.0/src/dnahash.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dahash
Error: CPPCHECK_WARNING (CWE-476): [#def693]
leptonica-1.87.0/src/encoding.c:290: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable64
Error: GCC_ANALYZER_WARNING: [#def694]
leptonica-1.87.0/src/encoding.c:362:26: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/encoding.c:351:8: branch_false: following ‘false’ branch (when ‘poutsize’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:353:5: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:354:8: branch_false: following ‘false’ branch (when ‘inarray’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:356:8: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:356:8: branch_false: following ‘false’ branch (when ‘insize != 0’)...
leptonica-1.87.0/src/encoding.c:360:32: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:362:26: danger: operand ‘5.0e+0’ is of type ‘double’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
leptonica-1.87.0/src/encoding.c:495:32: warning[-Wanalyzer-malloc-leak]: leak of ‘decodeAscii85(instr, insize, & size1)’
leptonica-1.87.0/src/encoding.c:617:1: enter_function: entry to ‘decodeAscii85WithComp’
leptonica-1.87.0/src/encoding.c:624:8: branch_false: following ‘false’ branch (when ‘poutsize’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:626:5: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:627:8: branch_false: following ‘false’ branch (when ‘instr’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:630:8: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:631:18: call_function: calling ‘decodeAscii85’ from ‘decodeAscii85WithComp’
leptonica-1.87.0/src/encoding.c:631:18: return_function: returning to ‘decodeAscii85WithComp’ from ‘decodeAscii85’
leptonica-1.87.0/src/encoding.c:631:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/encoding.c:633:15: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:633:15: throw: if ‘zlibUncompress’ throws an exception...
leptonica-1.87.0/src/encoding.c:495:32: danger: ‘decodeAscii85(instr, insize, & size1)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING: [#def696]
leptonica-1.87.0/src/encoding.c:496:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/encoding.c:486:8: branch_false: following ‘false’ branch (when ‘poutsize’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:488:5: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:489:8: branch_false: following ‘false’ branch (when ‘inarray’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:491:8: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:491:8: branch_false: following ‘false’ branch (when ‘insize != 0’)...
leptonica-1.87.0/src/encoding.c:495:32: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:496:28: danger: operand ‘4.0e+0’ is of type ‘double’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
leptonica-1.87.0/src/encoding.c:530:13: warning[-Wanalyzer-malloc-leak]: leak of ‘outa’
leptonica-1.87.0/src/encoding.c:486:8: branch_false: following ‘false’ branch (when ‘poutsize’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:488:5: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:489:8: branch_false: following ‘false’ branch (when ‘inarray’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:491:8: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:491:8: branch_false: following ‘false’ branch (when ‘insize != 0’)...
leptonica-1.87.0/src/encoding.c:495:32: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:496:28: acquire_memory: allocated here
leptonica-1.87.0/src/encoding.c:496:8: branch_false: following ‘false’ branch (when ‘outa’ is non-NULL)...
leptonica-1.87.0/src/encoding.c:496:8: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:502:36: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/encoding.c:503:9: branch_true: ...to here
leptonica-1.87.0/src/encoding.c:510:12: branch_false: following ‘false’ branch (when ‘val > 84’)...
leptonica-1.87.0/src/encoding.c:523:20: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:523:19: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/encoding.c:529:19: branch_false: ...to here
leptonica-1.87.0/src/encoding.c:529:19: branch_true: following ‘true’ branch (when ‘inc == 126’)...
leptonica-1.87.0/src/encoding.c:530:13: branch_true: ...to here
leptonica-1.87.0/src/encoding.c:530:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/encoding.c:530:13: branch_true: ...to here
leptonica-1.87.0/src/encoding.c:530:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/encoding.c:530:13: danger: ‘outa’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING (CWE-457): [#def698]
leptonica-1.87.0/src/enhance.c: scope_hint: In function ‘pixUnsharpMaskingGray1D’
leptonica-1.87.0/src/enhance.c:1321:32: warning[-Wmaybe-uninitialized]: ‘a[3]’ may be used uninitialized
leptonica-1.87.0/src/enhance.c:1265:17: note: ‘a[3]’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def699]
leptonica-1.87.0/src/enhance.c:1931:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rlut’
leptonica-1.87.0/src/enhance.c:1914:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1918:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1925:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/enhance.c:1928:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/enhance.c:1929:9: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1930:12: branch_true: following ‘true’ branch (when ‘rfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1931:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1931:13: danger: ‘rlut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def700]
leptonica-1.87.0/src/enhance.c:1933:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rlut’
leptonica-1.87.0/src/enhance.c:1914:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1918:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1925:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/enhance.c:1928:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/enhance.c:1929:9: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1930:12: branch_false: following ‘false’ branch (when ‘rfract < 0.0’)...
leptonica-1.87.0/src/enhance.c:1933:32: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1933:13: danger: ‘rlut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def701]
leptonica-1.87.0/src/enhance.c:1936:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glut’
leptonica-1.87.0/src/enhance.c:1914:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1918:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1926:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/enhance.c:1928:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/enhance.c:1929:9: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1930:12: branch_true: following ‘true’ branch (when ‘rfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1931:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1935:12: branch_true: following ‘true’ branch (when ‘gfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1936:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1936:13: danger: ‘glut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def702]
leptonica-1.87.0/src/enhance.c:1938:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glut’
leptonica-1.87.0/src/enhance.c:1914:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1918:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1926:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/enhance.c:1928:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/enhance.c:1929:9: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1930:12: branch_true: following ‘true’ branch (when ‘rfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1931:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1935:12: branch_false: following ‘false’ branch (when ‘gfract < 0.0’)...
leptonica-1.87.0/src/enhance.c:1938:32: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1938:13: danger: ‘glut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def703]
leptonica-1.87.0/src/enhance.c:1941: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: blut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def704]
leptonica-1.87.0/src/enhance.c:1941:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blut’
leptonica-1.87.0/src/enhance.c:1914:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1918:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1927:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/enhance.c:1928:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/enhance.c:1929:9: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1930:12: branch_true: following ‘true’ branch (when ‘rfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1931:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1935:12: branch_true: following ‘true’ branch (when ‘gfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1936:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1940:12: branch_true: following ‘true’ branch (when ‘bfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1941:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1941:13: danger: ‘blut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def705]
leptonica-1.87.0/src/enhance.c:1943: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: blut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def706]
leptonica-1.87.0/src/enhance.c:1943:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘blut’
leptonica-1.87.0/src/enhance.c:1914:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1916:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1918:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/enhance.c:1927:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/enhance.c:1928:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/enhance.c:1929:9: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1930:12: branch_true: following ‘true’ branch (when ‘rfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1931:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1935:12: branch_true: following ‘true’ branch (when ‘gfract >= 0.0’)...
leptonica-1.87.0/src/enhance.c:1936:32: branch_true: ...to here
leptonica-1.87.0/src/enhance.c:1940:12: branch_false: following ‘false’ branch (when ‘bfract < 0.0’)...
leptonica-1.87.0/src/enhance.c:1943:32: branch_false: ...to here
leptonica-1.87.0/src/enhance.c:1943:13: danger: ‘blut + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: COMPILER_WARNING (CWE-457): [#def707]
leptonica-1.87.0/src/environ.h:611:14: warning[-Wmaybe-uninitialized]: ‘nbot’ may be used uninitialized
leptonica-1.87.0/src/dewarp2.c:159:27: note: ‘nbot’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def708]
leptonica-1.87.0/src/alltypes.h:37: included_from: Included from here.
leptonica-1.87.0/src/allheaders.h:35: included_from: Included from here.
leptonica-1.87.0/src/dewarp2.c:67: included_from: Included from here.
leptonica-1.87.0/src/environ.h:611:14: warning[-Wmaybe-uninitialized]: ‘ntop’ may be used uninitialized
leptonica-1.87.0/src/dewarp2.c:159:21: note: ‘ntop’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def709]
leptonica-1.87.0/src/environ.h:611:14: warning[-Wmaybe-uninitialized]: ‘ybot’ may be used uninitialized
leptonica-1.87.0/src/dewarp2.c:159:39: note: ‘ybot’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def710]
leptonica-1.87.0/src/environ.h:611:14: warning[-Wmaybe-uninitialized]: ‘ytop’ may be used uninitialized
leptonica-1.87.0/src/dewarp2.c:159:33: note: ‘ytop’ was declared here
Error: COMPILER_WARNING: [#def711]
leptonica-1.87.0/src/fhmtgenlow.1.c:272:28: warning[-Wunused-but-set-variable=]: variable ‘wpls3’ set but not used
Error: COMPILER_WARNING: [#def712]
leptonica-1.87.0/src/fhmtgenlow.1.c:272:35: warning[-Wunused-but-set-variable=]: variable ‘wpls4’ set but not used
Error: COMPILER_WARNING: [#def713]
leptonica-1.87.0/src/fhmtgenlow.1.c: scope_hint: In function ‘fhmt_1_5’
leptonica-1.87.0/src/fhmtgenlow.1.c:273:21: warning[-Wunused-but-set-variable=]: variable ‘wpls5’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
leptonica-1.87.0/src/fpix1.c:160:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
leptonica-1.87.0/src/fpix1.c:162:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
leptonica-1.87.0/src/fpix1.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
leptonica-1.87.0/src/fpix1.c:168:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def718]
leptonica-1.87.0/src/fpix1.c:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fpixd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
leptonica-1.87.0/src/fpix1.c:179:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
leptonica-1.87.0/src/fpix1.c:182:12: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/fpix1.c:1387:1: enter_function: entry to ‘fpixReadStream’
leptonica-1.87.0/src/fpix1.c:1397:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1399:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1399:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1401:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1401:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1409:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1411:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1411:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1414:17: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1414:17: call_function: calling ‘fpixCreate’ from ‘fpixReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
leptonica-1.87.0/src/fpix1.c:231:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_false: following ‘false’ branch (when ‘copyflag != 1’)...
leptonica-1.87.0/src/fpix1.c:612:21: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:612:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
leptonica-1.87.0/src/fpix1.c:252:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
leptonica-1.87.0/src/fpix1.c:343:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
leptonica-1.87.0/src/fpix1.c:377:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
leptonica-1.87.0/src/fpix1.c:472:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/fpix1.c:1387:1: enter_function: entry to ‘fpixReadStream’
leptonica-1.87.0/src/fpix1.c:1397:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1399:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1399:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1401:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1401:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1409:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1411:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1411:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:1414:17: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:1414:17: call_function: calling ‘fpixCreate’ from ‘fpixReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
leptonica-1.87.0/src/fpix1.c:560:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fpixaCreate(*fpixa.n)’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: following ‘true’ branch (when ‘copyflag == 1’)...
leptonica-1.87.0/src/fpix1.c:610:21: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:610:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def727]
leptonica-1.87.0/src/fpix1.c:564: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fpixa
Error: CPPCHECK_WARNING (CWE-476): [#def728]
leptonica-1.87.0/src/fpix1.c:565: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fpixa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def729]
leptonica-1.87.0/src/fpix1.c:565:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fpixa’
leptonica-1.87.0/src/fpix1.c:563:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/fpix1.c:565:5: danger: ‘fpixa’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def730]
leptonica-1.87.0/src/fpix1.c:566: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fpixa
Error: CPPCHECK_WARNING (CWE-476): [#def731]
leptonica-1.87.0/src/fpix1.c:567: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fpixa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
leptonica-1.87.0/src/fpix1.c:679:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_false: following ‘false’ branch (when ‘copyflag != 1’)...
leptonica-1.87.0/src/fpix1.c:612:21: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:612:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:612:21: return_function: returning to ‘fpixaCopy’ from ‘fpixaGetFPix’
leptonica-1.87.0/src/fpix1.c:613:9: call_function: calling ‘fpixaAddFPix’ from ‘fpixaCopy’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def733]
leptonica-1.87.0/src/fpix1.c:700:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*fpixa.fpix + (long unsigned int)fpixaGetCount(fpixa) * 8’
leptonica-1.87.0/src/fpix1.c:588:1: enter_function: entry to ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:595:8: branch_false: following ‘false’ branch (when ‘fpixa’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:598:8: branch_false: following ‘false’ branch (when ‘copyflag != 2’)...
leptonica-1.87.0/src/fpix1.c:603:9: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:603:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:19: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:606:19: call_function: calling ‘fpixaCreate’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:606:19: return_function: returning to ‘fpixaCopy’ from ‘fpixaCreate’
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix1.c:606:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:608:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix1.c:609:12: branch_true: ...to here
leptonica-1.87.0/src/fpix1.c:609:12: branch_false: following ‘false’ branch (when ‘copyflag != 1’)...
leptonica-1.87.0/src/fpix1.c:612:21: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:612:21: call_function: calling ‘fpixaGetFPix’ from ‘fpixaCopy’
leptonica-1.87.0/src/fpix1.c:612:21: return_function: returning to ‘fpixaCopy’ from ‘fpixaGetFPix’
leptonica-1.87.0/src/fpix1.c:613:9: call_function: calling ‘fpixaAddFPix’ from ‘fpixaCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def734]
leptonica-1.87.0/src/fpix1.c:981: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dpix
Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
leptonica-1.87.0/src/fpix1.c:989:12: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/fpix1.c:959:1: enter_function: entry to ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:966:8: branch_false: following ‘false’ branch (when ‘width > 0’)...
leptonica-1.87.0/src/fpix1.c:968:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:968:8: branch_false: following ‘false’ branch (when ‘height > 0’)...
leptonica-1.87.0/src/fpix1.c:972:14: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:973:8: branch_false: following ‘false’ branch (when ‘npix64 <= 268435455’)...
leptonica-1.87.0/src/fpix1.c:978:20: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:979:5: call_function: calling ‘dpixSetDimensions’ from ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:979:5: return_function: returning to ‘dpixCreate’ from ‘dpixSetDimensions’
leptonica-1.87.0/src/fpix1.c:980:5: call_function: calling ‘dpixSetWpl’ from ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:980:5: return_function: returning to ‘dpixCreate’ from ‘dpixSetWpl’
leptonica-1.87.0/src/fpix1.c:983:25: acquire_memory: allocated here
leptonica-1.87.0/src/fpix1.c:984:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:988:5: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:988:5: call_function: calling ‘dpixSetData’ from ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:988:5: return_function: returning to ‘dpixCreate’ from ‘dpixSetData’
leptonica-1.87.0/src/fpix1.c:989:12: danger: ‘data’ leaks here; was allocated at [(18)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def736]
leptonica-1.87.0/src/fpix1.c:1277:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/fpix1.c:959:1: enter_function: entry to ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:966:8: branch_false: following ‘false’ branch (when ‘width > 0’)...
leptonica-1.87.0/src/fpix1.c:968:8: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:968:8: branch_false: following ‘false’ branch (when ‘height > 0’)...
leptonica-1.87.0/src/fpix1.c:972:14: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:973:8: branch_false: following ‘false’ branch (when ‘npix64 <= 268435455’)...
leptonica-1.87.0/src/fpix1.c:978:20: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:979:5: call_function: calling ‘dpixSetDimensions’ from ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:979:5: return_function: returning to ‘dpixCreate’ from ‘dpixSetDimensions’
leptonica-1.87.0/src/fpix1.c:980:5: call_function: calling ‘dpixSetWpl’ from ‘dpixCreate’
leptonica-1.87.0/src/fpix1.c:980:5: return_function: returning to ‘dpixCreate’ from ‘dpixSetWpl’
leptonica-1.87.0/src/fpix1.c:983:25: acquire_memory: allocated here
leptonica-1.87.0/src/fpix1.c:984:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/fpix1.c:988:5: branch_false: ...to here
leptonica-1.87.0/src/fpix1.c:988:5: call_function: calling ‘dpixSetData’ from ‘dpixCreate’
Error: CPPCHECK_WARNING (CWE-476): [#def737]
leptonica-1.87.0/src/fpix2.c:920: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fract
Error: GCC_ANALYZER_WARNING (CWE-476): [#def738]
leptonica-1.87.0/src/fpix2.c:920:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fract’
leptonica-1.87.0/src/fpix2.c:907:8: branch_false: following ‘false’ branch (when ‘fpixs’ is non-NULL)...
leptonica-1.87.0/src/fpix2.c:910:5: branch_false: ...to here
leptonica-1.87.0/src/fpix2.c:918:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/fpix2.c:919:17: branch_true: following ‘true’ branch (when ‘i < factor’)...
leptonica-1.87.0/src/fpix2.c:920:20: branch_true: ...to here
leptonica-1.87.0/src/fpix2.c:920:9: danger: ‘fract + (long unsigned int)i * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def739]
leptonica-1.87.0/src/fpix2.c:1010: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fract
Error: GCC_ANALYZER_WARNING (CWE-476): [#def740]
leptonica-1.87.0/src/fpix2.c:1010:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fract’
leptonica-1.87.0/src/fpix2.c:997:8: branch_false: following ‘false’ branch (when ‘dpixs’ is non-NULL)...
leptonica-1.87.0/src/fpix2.c:1000:5: branch_false: ...to here
leptonica-1.87.0/src/fpix2.c:1008:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/fpix2.c:1009:17: branch_true: following ‘true’ branch (when ‘i < factor’)...
leptonica-1.87.0/src/fpix2.c:1010:20: branch_true: ...to here
leptonica-1.87.0/src/fpix2.c:1010:9: danger: ‘fract + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def741]
leptonica-1.87.0/src/fpix2.c:1864: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-688): [#def742]
leptonica-1.87.0/src/fpix2.c:1864:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buffer’ where non-null expected
leptonica-1.87.0/src/fpix2.c:1850:8: branch_false: following ‘false’ branch (when ‘fpixs’ is non-NULL)...
leptonica-1.87.0/src/fpix2.c:1854:8: branch_false: ...to here
leptonica-1.87.0/src/fpix2.c:1861:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/fpix2.c:1862:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/fpix2.c:1863:23: branch_true: ...to here
leptonica-1.87.0/src/fpix2.c:1864:9: danger: argument 1 (‘buffer’) from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def743]
leptonica-1.87.0/src/fpix2.c:1866: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def744]
leptonica-1.87.0/src/fpix2.c:1916: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-688): [#def745]
leptonica-1.87.0/src/fpix2.c:1916:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buffer’ where non-null expected
leptonica-1.87.0/src/fpix2.c:1900:8: branch_false: following ‘false’ branch (when ‘fpixs’ is non-NULL)...
leptonica-1.87.0/src/fpix2.c:1904:8: branch_false: ...to here
leptonica-1.87.0/src/fpix2.c:1910:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/fpix2.c:1913:28: branch_true: following ‘true’ branch (when ‘i < h2’)...
leptonica-1.87.0/src/fpix2.c:1914:24: branch_true: ...to here
leptonica-1.87.0/src/fpix2.c:1916:9: danger: argument 1 (‘buffer’) from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def746]
leptonica-1.87.0/src/fpix2.c:1918: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def747]
leptonica-1.87.0/src/fpix2.c:2325: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recip
Error: GCC_ANALYZER_WARNING (CWE-476): [#def748]
leptonica-1.87.0/src/fpix2.c:2325:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘recip’
leptonica-1.87.0/src/fpix2.c:2309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/fpix2.c:2324:30: acquire_memory: this call could return NULL
leptonica-1.87.0/src/fpix2.c:2325:9: danger: ‘recip’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def749]
leptonica-1.87.0/src/fpix2.c:2327: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recip
Error: GCC_ANALYZER_WARNING (CWE-401): [#def750]
leptonica-1.87.0/src/gifio.c:619:13: warning[-Wanalyzer-malloc-leak]: leak of ‘gif_line’
leptonica-1.87.0/src/gifio.c:371:1: enter_function: entry to ‘pixWriteStreamGif’
leptonica-1.87.0/src/gifio.c:377:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/gifio.c:379:8: branch_false: ...to here
leptonica-1.87.0/src/gifio.c:379:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/gifio.c:382:5: branch_false: ...to here
leptonica-1.87.0/src/gifio.c:383:9: call_function: calling ‘pixWriteMemGif’ from ‘pixWriteStreamGif’
Error: CPPCHECK_WARNING (CWE-476): [#def751]
leptonica-1.87.0/src/gplot.c:221: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-476): [#def752]
leptonica-1.87.0/src/gplot.c:221:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/gplot.c:221:5: danger: ‘gplot’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
leptonica-1.87.0/src/gplot.c:221:22: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:221:22: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/gplot.c:221:22: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def754]
leptonica-1.87.0/src/gplot.c:222: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
leptonica-1.87.0/src/gplot.c:222:24: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:222:24: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/gplot.c:222:24: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def756]
leptonica-1.87.0/src/gplot.c:223: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def757]
leptonica-1.87.0/src/gplot.c:223:23: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:223:23: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/gplot.c:223:23: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def758]
leptonica-1.87.0/src/gplot.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
leptonica-1.87.0/src/gplot.c:224:25: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:224:25: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/gplot.c:224:25: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def760]
leptonica-1.87.0/src/gplot.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
leptonica-1.87.0/src/gplot.c:225:25: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:225:25: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/gplot.c:225:25: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
leptonica-1.87.0/src/gplot.c:228:15: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:228:15: throw: if ‘genPathname’ throws an exception...
leptonica-1.87.0/src/gplot.c:228:15: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def763]
leptonica-1.87.0/src/gplot.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: CPPCHECK_WARNING (CWE-476): [#def764]
leptonica-1.87.0/src/gplot.c:230: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: CPPCHECK_WARNING (CWE-476): [#def765]
leptonica-1.87.0/src/gplot.c:232: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def766]
leptonica-1.87.0/src/gplot.c:232:22: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:232:22: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/gplot.c:232:22: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def767]
leptonica-1.87.0/src/gplot.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
leptonica-1.87.0/src/gplot.c:243:22: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:243:22: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/gplot.c:243:22: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def769]
leptonica-1.87.0/src/gplot.c:244:31: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:244:8: branch_true: following ‘true’ branch (when ‘title’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:244:31: branch_true: ...to here
leptonica-1.87.0/src/gplot.c:244:31: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/gplot.c:244:31: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
leptonica-1.87.0/src/gplot.c:245:33: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:244:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/gplot.c:245:8: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:245:8: branch_true: following ‘true’ branch (when ‘xlabel’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:245:33: branch_true: ...to here
leptonica-1.87.0/src/gplot.c:245:33: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/gplot.c:245:33: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def771]
leptonica-1.87.0/src/gplot.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gplot
Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
leptonica-1.87.0/src/gplot.c:246:33: warning[-Wanalyzer-malloc-leak]: leak of ‘gplot’
leptonica-1.87.0/src/gplot.c:203:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:205:9: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:205:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:209:5: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:210:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/gplot.c:220:22: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:220:22: acquire_memory: allocated here
leptonica-1.87.0/src/gplot.c:244:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/gplot.c:245:8: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:245:8: branch_false: following ‘false’ branch (when ‘xlabel’ is NULL)...
leptonica-1.87.0/src/gplot.c:246:8: branch_false: ...to here
leptonica-1.87.0/src/gplot.c:246:8: branch_true: following ‘true’ branch (when ‘ylabel’ is non-NULL)...
leptonica-1.87.0/src/gplot.c:246:33: branch_true: ...to here
leptonica-1.87.0/src/gplot.c:246:33: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/gplot.c:246:33: danger: ‘gplot’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: COMPILER_WARNING: [#def773]
leptonica-1.87.0/src/gplot.c:1209:47: warning[-Wunused-but-set-variable=]: variable ‘ignores’ set but not used
Error: COMPILER_WARNING: [#def774]
leptonica-1.87.0/src/gplot.c: scope_hint: In function ‘gplotRead’
leptonica-1.87.0/src/gplot.c:1210:35: warning[-Wunused-but-set-variable=]: variable ‘ignore’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def775]
leptonica-1.87.0/src/graphics.c:1369:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val32’
leptonica-1.87.0/src/graphics.c:2357:1: enter_function: entry to ‘pixRenderRandomCmapPtaa’
leptonica-1.87.0/src/graphics.c:2368:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2370:8: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2370:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2372:9: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2381:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2381:8: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2384:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graphics.c:2385:21: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2388:12: branch_false: following ‘false’ branch (when ‘polyflag == 0’)...
leptonica-1.87.0/src/graphics.c:2391:20: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2392:9: call_function: calling ‘pixRenderPtaArb’ from ‘pixRenderRandomCmapPtaa’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def776]
leptonica-1.87.0/src/graphics.c:1371:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
leptonica-1.87.0/src/graphics.c:2357:1: enter_function: entry to ‘pixRenderRandomCmapPtaa’
leptonica-1.87.0/src/graphics.c:2368:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2370:8: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2370:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2372:9: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2381:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2381:8: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2384:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graphics.c:2385:21: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2388:12: branch_false: following ‘false’ branch (when ‘polyflag == 0’)...
leptonica-1.87.0/src/graphics.c:2391:20: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2392:9: call_function: calling ‘pixRenderPtaArb’ from ‘pixRenderRandomCmapPtaa’
Error: COMPILER_WARNING (CWE-457): [#def777]
leptonica-1.87.0/src/graphics.c: scope_hint: In function ‘pixRenderPtaArb’
leptonica-1.87.0/src/graphics.c:1371:13: warning[-Wmaybe-uninitialized]: ‘val’ may be used uninitialized
leptonica-1.87.0/src/graphics.c:1327:11: note: ‘val’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def778]
leptonica-1.87.0/src/graphics.c:2507:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xend’
leptonica-1.87.0/src/graphics.c:2486:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2488:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2490:9: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2490:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2493:5: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2495:23: acquire_memory: allocated here
leptonica-1.87.0/src/graphics.c:2496:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2506:10: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2506:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graphics.c:2507:9: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2507:9: throw: if ‘pixFindHorizontalRuns’ throws an exception...
leptonica-1.87.0/src/graphics.c:2507:9: danger: ‘xend’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def779]
leptonica-1.87.0/src/graphics.c:2507:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xstart’
leptonica-1.87.0/src/graphics.c:2486:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2488:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2490:9: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2490:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2493:5: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2494:25: acquire_memory: allocated here
leptonica-1.87.0/src/graphics.c:2496:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2506:10: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2506:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graphics.c:2507:9: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2507:9: throw: if ‘pixFindHorizontalRuns’ throws an exception...
leptonica-1.87.0/src/graphics.c:2507:9: danger: ‘xstart’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
leptonica-1.87.0/src/graphics.c:2517:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xend’
leptonica-1.87.0/src/graphics.c:2486:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2488:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2490:9: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2490:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2493:5: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2495:23: acquire_memory: allocated here
leptonica-1.87.0/src/graphics.c:2496:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2506:10: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2506:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2516:8: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2516:8: branch_true: following ‘true’ branch (when ‘found == 0’)...
leptonica-1.87.0/src/graphics.c:2517:9: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2517:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graphics.c:2517:9: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2517:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/graphics.c:2517:9: danger: ‘xend’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
leptonica-1.87.0/src/graphics.c:2517:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xstart’
leptonica-1.87.0/src/graphics.c:2486:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2488:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/graphics.c:2490:9: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2490:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2493:5: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2494:25: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2494:25: acquire_memory: allocated here
leptonica-1.87.0/src/graphics.c:2496:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2506:10: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2506:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graphics.c:2516:8: branch_false: ...to here
leptonica-1.87.0/src/graphics.c:2516:8: branch_true: following ‘true’ branch (when ‘found == 0’)...
leptonica-1.87.0/src/graphics.c:2517:9: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2517:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graphics.c:2517:9: branch_true: ...to here
leptonica-1.87.0/src/graphics.c:2517:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/graphics.c:2517:9: danger: ‘xstart’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
leptonica-1.87.0/src/graymorph.c:586:9: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/graymorph.c:531:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/graymorph.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:535:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:537:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:576:5: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:584:24: acquire_memory: allocated here
leptonica-1.87.0/src/graymorph.c:585:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graymorph.c:586:9: branch_true: ...to here
leptonica-1.87.0/src/graymorph.c:586:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graymorph.c:586:9: branch_true: ...to here
leptonica-1.87.0/src/graymorph.c:586:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/graymorph.c:586:9: danger: ‘array’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
leptonica-1.87.0/src/graymorph.c:586:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/graymorph.c:531:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/graymorph.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:535:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:537:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:576:5: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:582:25: acquire_memory: allocated here
leptonica-1.87.0/src/graymorph.c:585:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graymorph.c:586:9: branch_true: ...to here
leptonica-1.87.0/src/graymorph.c:586:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/graymorph.c:586:9: branch_true: ...to here
leptonica-1.87.0/src/graymorph.c:586:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/graymorph.c:586:9: danger: ‘buffer’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
leptonica-1.87.0/src/graymorph.c:607:9: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/graymorph.c:520:1: enter_function: entry to ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:531:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/graymorph.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:535:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:537:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:576:5: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:584:24: acquire_memory: allocated here
leptonica-1.87.0/src/graymorph.c:585:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: following ‘false’ branch (when ‘vsize != 1’)...
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: following ‘false’ branch (when ‘hsize != 1’)...
leptonica-1.87.0/src/graymorph.c:605:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:605:9: call_function: calling ‘dilateGrayLow’ from ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:605:9: return_function: returning to ‘pixCloseGray’ from ‘dilateGrayLow’
leptonica-1.87.0/src/graymorph.c:607:9: throw: if ‘pixSetOrClearBorder’ throws an exception...
leptonica-1.87.0/src/graymorph.c:607:9: danger: ‘array’ leaks here; was allocated at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
leptonica-1.87.0/src/graymorph.c:607:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/graymorph.c:520:1: enter_function: entry to ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:531:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/graymorph.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:535:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:537:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:576:5: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:582:25: acquire_memory: allocated here
leptonica-1.87.0/src/graymorph.c:585:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: following ‘false’ branch (when ‘vsize != 1’)...
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: following ‘false’ branch (when ‘hsize != 1’)...
leptonica-1.87.0/src/graymorph.c:605:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:605:9: call_function: calling ‘dilateGrayLow’ from ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:605:9: return_function: returning to ‘pixCloseGray’ from ‘dilateGrayLow’
leptonica-1.87.0/src/graymorph.c:607:9: throw: if ‘pixSetOrClearBorder’ throws an exception...
leptonica-1.87.0/src/graymorph.c:607:9: danger: ‘buffer’ leaks here; was allocated at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
leptonica-1.87.0/src/graymorph.c:611:9: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/graymorph.c:520:1: enter_function: entry to ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:531:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/graymorph.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:535:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:537:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:576:5: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:584:24: acquire_memory: allocated here
leptonica-1.87.0/src/graymorph.c:585:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: following ‘false’ branch (when ‘vsize != 1’)...
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: following ‘false’ branch (when ‘hsize != 1’)...
leptonica-1.87.0/src/graymorph.c:605:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:605:9: call_function: calling ‘dilateGrayLow’ from ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:605:9: return_function: returning to ‘pixCloseGray’ from ‘dilateGrayLow’
leptonica-1.87.0/src/graymorph.c:609:9: call_function: calling ‘dilateGrayLow’ from ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:609:9: return_function: returning to ‘pixCloseGray’ from ‘dilateGrayLow’
leptonica-1.87.0/src/graymorph.c:611:9: throw: if ‘pixSetOrClearBorder’ throws an exception...
leptonica-1.87.0/src/graymorph.c:611:9: danger: ‘array’ leaks here; was allocated at [(12)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def787]
leptonica-1.87.0/src/graymorph.c:611:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/graymorph.c:520:1: enter_function: entry to ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:531:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/graymorph.c:533:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:533:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:535:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:537:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:571:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:576:5: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:582:25: acquire_memory: allocated here
leptonica-1.87.0/src/graymorph.c:585:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:590:8: branch_false: following ‘false’ branch (when ‘vsize != 1’)...
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:597:15: branch_false: following ‘false’ branch (when ‘hsize != 1’)...
leptonica-1.87.0/src/graymorph.c:605:9: branch_false: ...to here
leptonica-1.87.0/src/graymorph.c:605:9: call_function: calling ‘dilateGrayLow’ from ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:605:9: return_function: returning to ‘pixCloseGray’ from ‘dilateGrayLow’
leptonica-1.87.0/src/graymorph.c:609:9: call_function: calling ‘dilateGrayLow’ from ‘pixCloseGray’
leptonica-1.87.0/src/graymorph.c:609:9: return_function: returning to ‘pixCloseGray’ from ‘dilateGrayLow’
leptonica-1.87.0/src/graymorph.c:611:9: throw: if ‘pixSetOrClearBorder’ throws an exception...
leptonica-1.87.0/src/graymorph.c:611:9: danger: ‘buffer’ leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
Error: CPPCHECK_WARNING (CWE-758): [#def788]
leptonica-1.87.0/src/grayquant.c:556: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: COMPILER_WARNING (CWE-457): [#def789]
leptonica-1.87.0/src/grayquant.c: scope_hint: In function ‘thresholdToBinaryLineLow’
leptonica-1.87.0/src/grayquant.c:568:21: warning[-Wmaybe-uninitialized]: ‘sword’ may be used uninitialized
leptonica-1.87.0/src/grayquant.c:524:10: note: ‘sword’ was declared here
Error: CPPCHECK_WARNING (CWE-758): [#def790]
leptonica-1.87.0/src/grayquant.c:569: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def791]
leptonica-1.87.0/src/grayquant.c:597: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def792]
leptonica-1.87.0/src/grayquant.c:610: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-476): [#def793]
leptonica-1.87.0/src/grayquant.c:1272:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tabval’
leptonica-1.87.0/src/grayquant.c:1036:1: enter_function: entry to ‘pixDitherTo2bppSpec’
leptonica-1.87.0/src/grayquant.c:1051:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1053:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1053:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1055:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1055:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1058:17: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1058:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1060:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1073:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1082:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1082:5: call_function: calling ‘make8To2DitherTables’ from ‘pixDitherTo2bppSpec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def794]
leptonica-1.87.0/src/grayquant.c:1273:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab38’
leptonica-1.87.0/src/grayquant.c:1036:1: enter_function: entry to ‘pixDitherTo2bppSpec’
leptonica-1.87.0/src/grayquant.c:1051:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1053:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1053:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1055:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1055:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1058:17: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1058:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1060:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1073:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1082:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1082:5: call_function: calling ‘make8To2DitherTables’ from ‘pixDitherTo2bppSpec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def795]
leptonica-1.87.0/src/grayquant.c:1274:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab14’
leptonica-1.87.0/src/grayquant.c:1265:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:1270:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:1271:12: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1271:12: branch_true: following ‘true’ branch (when ‘i <= cliptoblack’)...
leptonica-1.87.0/src/grayquant.c:1272:19: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1274:13: danger: ‘tab14 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def796]
leptonica-1.87.0/src/grayquant.c:1276:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tabval’
leptonica-1.87.0/src/grayquant.c:1036:1: enter_function: entry to ‘pixDitherTo2bppSpec’
leptonica-1.87.0/src/grayquant.c:1051:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1053:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1053:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1055:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1055:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1058:17: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1058:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1060:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1073:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1082:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1082:5: call_function: calling ‘make8To2DitherTables’ from ‘pixDitherTo2bppSpec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def797]
leptonica-1.87.0/src/grayquant.c:1277:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab38’
leptonica-1.87.0/src/grayquant.c:1036:1: enter_function: entry to ‘pixDitherTo2bppSpec’
leptonica-1.87.0/src/grayquant.c:1051:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1053:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1053:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1055:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1055:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1058:17: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1058:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1060:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1073:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1082:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1082:5: call_function: calling ‘make8To2DitherTables’ from ‘pixDitherTo2bppSpec’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def798]
leptonica-1.87.0/src/grayquant.c:1278:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab14’
leptonica-1.87.0/src/grayquant.c:1265:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:1270:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:1271:12: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1271:12: branch_false: following ‘false’ branch (when ‘i > cliptoblack’)...
leptonica-1.87.0/src/grayquant.c:1275:19: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1275:19: branch_true: following ‘true’ branch (when ‘i <= 42’)...
leptonica-1.87.0/src/grayquant.c:1276:19: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1278:13: danger: ‘tab14 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def799]
leptonica-1.87.0/src/grayquant.c:1830:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/grayquant.c:1825:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:1826:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:1826:17: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1827:21: branch_true: following ‘true’ branch (when ‘j < nlevels’)...
leptonica-1.87.0/src/grayquant.c:1828:29: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1829:16: branch_true: following ‘true’ branch (when ‘i <= thresh’)...
leptonica-1.87.0/src/grayquant.c:1830:20: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1830:17: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def800]
leptonica-1.87.0/src/grayquant.c:1884:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/grayquant.c:1875:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:1879:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:1879:17: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1880:21: branch_true: following ‘true’ branch (when ‘nlevels > j’)...
leptonica-1.87.0/src/grayquant.c:1881:29: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1882:16: branch_true: following ‘true’ branch (when ‘i <= thresh’)...
leptonica-1.87.0/src/grayquant.c:1883:28: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:1884:17: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
leptonica-1.87.0/src/grayquant.c:1952:9: warning[-Wanalyzer-malloc-leak]: leak of ‘qtab’
leptonica-1.87.0/src/grayquant.c:1712:1: enter_function: entry to ‘pixThresholdGrayArb’
leptonica-1.87.0/src/grayquant.c:1726:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:1728:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1729:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1731:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1731:8: branch_false: following ‘false’ branch (when ‘edgevals’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:1733:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1739:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1743:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1757:5: call_function: calling ‘makeGrayQuantTableArb’ from ‘pixThresholdGrayArb’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
leptonica-1.87.0/src/grayquant.c:1954:9: warning[-Wanalyzer-malloc-leak]: leak of ‘qtab’
leptonica-1.87.0/src/grayquant.c:1712:1: enter_function: entry to ‘pixThresholdGrayArb’
leptonica-1.87.0/src/grayquant.c:1726:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:1728:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1729:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1731:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1731:8: branch_false: following ‘false’ branch (when ‘edgevals’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:1733:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1739:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:1743:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:1757:5: call_function: calling ‘makeGrayQuantTableArb’ from ‘pixThresholdGrayArb’
Error: CPPCHECK_WARNING (CWE-476): [#def803]
leptonica-1.87.0/src/grayquant.c:1956: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def804]
leptonica-1.87.0/src/grayquant.c:1964: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
leptonica-1.87.0/src/grayquant.c:2024:12: warning[-Wanalyzer-malloc-leak]: leak of ‘binave’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:30: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2024:12: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2024:12: danger: ‘binave’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
leptonica-1.87.0/src/grayquant.c:2024:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bincount’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:32: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2024:12: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2024:12: danger: ‘bincount’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
leptonica-1.87.0/src/grayquant.c:2025:11: warning[-Wanalyzer-malloc-leak]: leak of ‘binave’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:30: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2025:11: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2025:11: danger: ‘binave’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def808]
leptonica-1.87.0/src/grayquant.c:2025:11: warning[-Wanalyzer-malloc-leak]: leak of ‘bincount’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:32: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2025:11: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2025:11: danger: ‘bincount’ leaks here; was allocated at [(11)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
leptonica-1.87.0/src/grayquant.c:2045:14: warning[-Wanalyzer-malloc-leak]: leak of ‘binave’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:30: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2045:14: throw: if ‘pixcmapCreate’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2045:14: danger: ‘binave’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
leptonica-1.87.0/src/grayquant.c:2045:14: warning[-Wanalyzer-malloc-leak]: leak of ‘bincount’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:32: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2045:14: throw: if ‘pixcmapCreate’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2045:14: danger: ‘bincount’ leaks here; was allocated at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
leptonica-1.87.0/src/grayquant.c:2045:14: warning[-Wanalyzer-malloc-leak]: leak of ‘binstart’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2036:27: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2045:14: throw: if ‘pixcmapCreate’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2045:14: danger: ‘binstart’ leaks here; was allocated at [(15)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def812]
leptonica-1.87.0/src/grayquant.c:2051:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘binstart’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2036:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2046:17: branch_true: following ‘true’ branch (when ‘i < nbins’)...
leptonica-1.87.0/src/grayquant.c:2047:21: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2047:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2050:16: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2050:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/grayquant.c:2051:32: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2051:24: danger: ‘binstart + (long unsigned int)i * 4’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def813]
leptonica-1.87.0/src/grayquant.c:2053:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘binstart’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2036:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2046:17: branch_true: following ‘true’ branch (when ‘i < nbins’)...
leptonica-1.87.0/src/grayquant.c:2047:21: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2047:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2050:16: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2050:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2053:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2053:24: danger: ‘binstart + (long unsigned int)i * 4’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
leptonica-1.87.0/src/grayquant.c:2055:9: warning[-Wanalyzer-malloc-leak]: leak of ‘binave’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:30: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2046:17: branch_true: following ‘true’ branch (when ‘i < nbins’)...
leptonica-1.87.0/src/grayquant.c:2047:21: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2047:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/grayquant.c:2048:25: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2055:9: throw: if ‘pixcmapAddColor’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2055:9: danger: ‘binave’ leaks here; was allocated at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
leptonica-1.87.0/src/grayquant.c:2055:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bincount’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:32: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2046:17: branch_true: following ‘true’ branch (when ‘i < nbins’)...
leptonica-1.87.0/src/grayquant.c:2047:21: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2047:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/grayquant.c:2048:25: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2055:9: throw: if ‘pixcmapAddColor’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2055:9: danger: ‘bincount’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
leptonica-1.87.0/src/grayquant.c:2055:9: warning[-Wanalyzer-malloc-leak]: leak of ‘binstart’
leptonica-1.87.0/src/grayquant.c:2001:8: branch_false: following ‘false’ branch (when ‘pcmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2003:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2004:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2006:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2009:8: branch_false: following ‘false’ branch (when ‘tab’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2011:13: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2012:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2016:32: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2016:8: branch_false: following ‘false’ branch (when ‘bincount’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2018:30: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2018:8: branch_false: following ‘false’ branch (when ‘binave’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2022:40: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2036:27: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2037:28: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2038:16: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2046:17: branch_true: following ‘true’ branch (when ‘i < nbins’)...
leptonica-1.87.0/src/grayquant.c:2047:21: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2047:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/grayquant.c:2048:25: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2055:9: throw: if ‘pixcmapAddColor’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2055:9: danger: ‘binstart’ leaks here; was allocated at [(15)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def817]
leptonica-1.87.0/src/grayquant.c:2456:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lut’
leptonica-1.87.0/src/grayquant.c:2303:1: enter_function: entry to ‘pixGrayQuantFromHisto’
leptonica-1.87.0/src/grayquant.c:2317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2327:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2330:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2331:8: branch_true: following ‘true’ branch (when ‘pixd’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2332:13: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2332:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2334:21: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2334:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2336:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2337:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2342:12: branch_false: following ‘false’ branch (when ‘nestim <= 255’)...
leptonica-1.87.0/src/grayquant.c:2346:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2369:9: call_function: calling ‘numaFillCmapFromHisto’ from ‘pixGrayQuantFromHisto’
Error: CPPCHECK_WARNING (CWE-476): [#def818]
leptonica-1.87.0/src/grayquant.c:2472: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lut
Error: GCC_ANALYZER_WARNING (CWE-476): [#def819]
leptonica-1.87.0/src/grayquant.c:2472:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lut’
leptonica-1.87.0/src/grayquant.c:2303:1: enter_function: entry to ‘pixGrayQuantFromHisto’
leptonica-1.87.0/src/grayquant.c:2317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2327:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2330:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2331:8: branch_true: following ‘true’ branch (when ‘pixd’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2332:13: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2332:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2334:21: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2334:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2336:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2337:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2342:12: branch_false: following ‘false’ branch (when ‘nestim <= 255’)...
leptonica-1.87.0/src/grayquant.c:2346:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2369:9: call_function: calling ‘numaFillCmapFromHisto’ from ‘pixGrayQuantFromHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def820]
leptonica-1.87.0/src/grayquant.c:2486:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lut’
leptonica-1.87.0/src/grayquant.c:2303:1: enter_function: entry to ‘pixGrayQuantFromHisto’
leptonica-1.87.0/src/grayquant.c:2317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2327:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2330:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2331:8: branch_true: following ‘true’ branch (when ‘pixd’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2332:13: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2332:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2334:21: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2334:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2336:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2337:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2342:12: branch_false: following ‘false’ branch (when ‘nestim <= 255’)...
leptonica-1.87.0/src/grayquant.c:2346:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2369:9: call_function: calling ‘numaFillCmapFromHisto’ from ‘pixGrayQuantFromHisto’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
leptonica-1.87.0/src/grayquant.c:2559:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
leptonica-1.87.0/src/grayquant.c:2533:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2535:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2539:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2540:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2542:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2542:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2544:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2557:22: acquire_memory: allocated here
leptonica-1.87.0/src/grayquant.c:2558:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2559:9: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2559:9: throw: if ‘pixcmapGetNearestGrayIndex’ throws an exception...
leptonica-1.87.0/src/grayquant.c:2559:9: danger: ‘tab’ leaks here; was allocated at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def822]
leptonica-1.87.0/src/grayquant.c:2560: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def823]
leptonica-1.87.0/src/grayquant.c:2560:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/grayquant.c:2533:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2535:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2535:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2539:5: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2540:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/grayquant.c:2542:8: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2542:8: branch_false: following ‘false’ branch (when ‘cmap’ is non-NULL)...
leptonica-1.87.0/src/grayquant.c:2544:9: branch_false: ...to here
leptonica-1.87.0/src/grayquant.c:2557:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/grayquant.c:2558:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/grayquant.c:2559:9: branch_true: ...to here
leptonica-1.87.0/src/grayquant.c:2560:9: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def824]
leptonica-1.87.0/src/grayquant.c:2578: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
leptonica-1.87.0/src/hashmap.c:123:5: warning[-Wanalyzer-malloc-leak]: leak of ‘hmap’
leptonica-1.87.0/src/hashmap.c:116:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/hashmap.c:122:25: branch_false: ...to here
leptonica-1.87.0/src/hashmap.c:122:25: acquire_memory: allocated here
leptonica-1.87.0/src/hashmap.c:123:5: throw: if ‘findNextLargerPrime’ throws an exception...
leptonica-1.87.0/src/hashmap.c:123:5: danger: ‘hmap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def826]
leptonica-1.87.0/src/hashmap.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hmap
Error: GCC_ANALYZER_WARNING (CWE-476): [#def827]
leptonica-1.87.0/src/hashmap.c:124:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hmap’
leptonica-1.87.0/src/hashmap.c:116:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/hashmap.c:122:25: branch_false: ...to here
leptonica-1.87.0/src/hashmap.c:122:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/hashmap.c:124:9: danger: ‘hmap’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def828]
leptonica-1.87.0/src/hashmap.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hmap
Error: CPPCHECK_WARNING (CWE-476): [#def829]
leptonica-1.87.0/src/hashmap.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hmap
Error: CPPCHECK_WARNING (CWE-476): [#def830]
leptonica-1.87.0/src/hashmap.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hmap
Error: CPPCHECK_WARNING (CWE-476): [#def831]
leptonica-1.87.0/src/hashmap.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hmap
Error: CPPCHECK_WARNING (CWE-476): [#def832]
leptonica-1.87.0/src/hashmap.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hitem
Error: GCC_ANALYZER_WARNING (CWE-476): [#def833]
leptonica-1.87.0/src/hashmap.c:226:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hitem’
leptonica-1.87.0/src/hashmap.c:207:8: branch_false: following ‘false’ branch (when ‘hmap’ is non-NULL)...
leptonica-1.87.0/src/hashmap.c:209:9: branch_false: ...to here
leptonica-1.87.0/src/hashmap.c:209:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/hashmap.c:213:19: branch_false: ...to here
leptonica-1.87.0/src/hashmap.c:221:8: branch_false: following ‘false’ branch (when ‘op != 1’)...
leptonica-1.87.0/src/hashmap.c:225:27: branch_false: ...to here
leptonica-1.87.0/src/hashmap.c:225:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/hashmap.c:226:5: danger: ‘hitem’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def834]
leptonica-1.87.0/src/hashmap.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hitem
Error: CPPCHECK_WARNING (CWE-476): [#def835]
leptonica-1.87.0/src/hashmap.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hitem
Error: CPPCHECK_WARNING (CWE-476): [#def836]
leptonica-1.87.0/src/hashmap.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hitem
Error: CPPCHECK_WARNING (CWE-476): [#def837]
leptonica-1.87.0/src/heap.c:122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lh
Error: CPPCHECK_WARNING (CWE-476): [#def838]
leptonica-1.87.0/src/heap.c:126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lh
Error: CPPCHECK_WARNING (CWE-476): [#def839]
leptonica-1.87.0/src/heap.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lh
Error: CPPCHECK_WARNING (CWE-476): [#def840]
leptonica-1.87.0/src/heap.c:128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lh
Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
leptonica-1.87.0/src/jbclass.c:1082:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1082:15: throw: if ‘makePixelCentroidTab8’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1082:15: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
leptonica-1.87.0/src/jbclass.c:1082:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1082:15: throw: if ‘makePixelCentroidTab8’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1082:15: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
leptonica-1.87.0/src/jbclass.c:1091:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1091:11: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1091:11: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
leptonica-1.87.0/src/jbclass.c:1091:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1091:11: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1091:11: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
leptonica-1.87.0/src/jbclass.c:1093:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1093:15: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1093:15: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
leptonica-1.87.0/src/jbclass.c:1093:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1093:15: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1093:15: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
leptonica-1.87.0/src/jbclass.c:1093:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1093:15: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1093:15: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def848]
leptonica-1.87.0/src/jbclass.c:1094: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixrowcts
Error: GCC_ANALYZER_WARNING (CWE-476): [#def849]
leptonica-1.87.0/src/jbclass.c:1094:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:9: danger: ‘pixrowcts + (long unsigned int)i * 8’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
leptonica-1.87.0/src/jbclass.c:1094:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1094:35: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
leptonica-1.87.0/src/jbclass.c:1094:35: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1094:35: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
leptonica-1.87.0/src/jbclass.c:1094:35: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1094:35: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
leptonica-1.87.0/src/jbclass.c:1098:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1098:15: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1098:15: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
leptonica-1.87.0/src/jbclass.c:1098:15: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)pixGetHeight(pixaGetPix(pixa1, i, 2)), 4)’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1098:15: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1098:15: danger: ‘calloc((long unsigned int)pixGetHeight(pixaGetPix(pixa1, i, 2)), 4)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
leptonica-1.87.0/src/jbclass.c:1098:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1098:15: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1098:15: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
leptonica-1.87.0/src/jbclass.c:1098:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1098:15: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1098:15: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
leptonica-1.87.0/src/jbclass.c:1099:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1099:15: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1099:15: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
leptonica-1.87.0/src/jbclass.c:1099:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1099:15: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1099:15: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
leptonica-1.87.0/src/jbclass.c:1099:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1099:15: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1099:15: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
leptonica-1.87.0/src/jbclass.c:1099:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1099:34: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1099:34: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def861]
leptonica-1.87.0/src/jbclass.c:1099:34: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1099:34: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1099:34: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def862]
leptonica-1.87.0/src/jbclass.c:1099:34: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1099:34: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1099:34: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
leptonica-1.87.0/src/jbclass.c:1101:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:18: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1101:18: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def864]
leptonica-1.87.0/src/jbclass.c:1101:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:18: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1101:18: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def865]
leptonica-1.87.0/src/jbclass.c:1101:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:18: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1101:18: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def866]
leptonica-1.87.0/src/jbclass.c:1102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixrowcts
Error: CPPCHECK_WARNING (CWE-476): [#def867]
leptonica-1.87.0/src/jbclass.c:1122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcts
Error: GCC_ANALYZER_WARNING (CWE-476): [#def868]
leptonica-1.87.0/src/jbclass.c:1122:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1122:9: danger: ‘pixcts + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
leptonica-1.87.0/src/jbclass.c:1127:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1127:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1127:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1127:13: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def870]
leptonica-1.87.0/src/jbclass.c:1127:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1127:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1127:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1127:13: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
leptonica-1.87.0/src/jbclass.c:1127:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1127:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1127:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1127:13: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
leptonica-1.87.0/src/jbclass.c:1128:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:13: throw: if ‘ptaAddPt’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:13: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
leptonica-1.87.0/src/jbclass.c:1128:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:13: throw: if ‘ptaAddPt’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:13: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
leptonica-1.87.0/src/jbclass.c:1128:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:13: throw: if ‘ptaAddPt’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:13: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
leptonica-1.87.0/src/jbclass.c:1128:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:27: throw: if ‘pixGetWidth’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:27: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
leptonica-1.87.0/src/jbclass.c:1128:27: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:27: throw: if ‘pixGetWidth’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:27: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
leptonica-1.87.0/src/jbclass.c:1128:27: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:27: throw: if ‘pixGetWidth’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:27: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
leptonica-1.87.0/src/jbclass.c:1128:49: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:49: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:49: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
leptonica-1.87.0/src/jbclass.c:1128:49: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:49: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:49: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
leptonica-1.87.0/src/jbclass.c:1128:49: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1128:49: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1128:49: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
leptonica-1.87.0/src/jbclass.c:1130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1130:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1130:9: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
leptonica-1.87.0/src/jbclass.c:1130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1130:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1130:9: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
leptonica-1.87.0/src/jbclass.c:1130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1130:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1130:9: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
leptonica-1.87.0/src/jbclass.c:1134:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1134:5: throw: if ‘ptaJoin’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1134:5: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
leptonica-1.87.0/src/jbclass.c:1134:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1134:5: throw: if ‘ptaJoin’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1134:5: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
leptonica-1.87.0/src/jbclass.c:1134:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1134:5: throw: if ‘ptaJoin’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1134:5: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
leptonica-1.87.0/src/jbclass.c:1176:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1176:16: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1176:16: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
leptonica-1.87.0/src/jbclass.c:1176:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1176:16: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1176:16: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def889]
leptonica-1.87.0/src/jbclass.c:1176:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1176:16: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1176:16: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
leptonica-1.87.0/src/jbclass.c:1178:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1178:9: throw: if ‘ptaGetPt’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1178:9: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
leptonica-1.87.0/src/jbclass.c:1178:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1178:9: throw: if ‘ptaGetPt’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1178:9: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
leptonica-1.87.0/src/jbclass.c:1178:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1178:9: throw: if ‘ptaGetPt’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1178:9: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def893]
leptonica-1.87.0/src/jbclass.c:1179:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1179:14: throw: if ‘pixaGetCount’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1179:14: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
leptonica-1.87.0/src/jbclass.c:1179:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1179:14: throw: if ‘pixaGetCount’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1179:14: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def895]
leptonica-1.87.0/src/jbclass.c:1179:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1179:14: throw: if ‘pixaGetCount’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1179:14: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
leptonica-1.87.0/src/jbclass.c:1272:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1272:23: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1272:23: throw: if ‘pixaGetCount’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1272:23: danger: ‘pixcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def897]
leptonica-1.87.0/src/jbclass.c:1272:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1272:23: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1272:23: throw: if ‘pixaGetCount’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1272:23: danger: ‘pixrowcts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def898]
leptonica-1.87.0/src/jbclass.c:1776: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def899]
leptonica-1.87.0/src/jbclass.c:1776:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: this call could return NULL
leptonica-1.87.0/src/jbclass.c:1776:5: danger: ‘classer’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def900]
leptonica-1.87.0/src/jbclass.c:1777: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: CPPCHECK_WARNING (CWE-476): [#def901]
leptonica-1.87.0/src/jbclass.c:1778: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def902]
leptonica-1.87.0/src/jbclass.c:1778:24: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1778:24: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1778:24: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def903]
leptonica-1.87.0/src/jbclass.c:1779: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def904]
leptonica-1.87.0/src/jbclass.c:1779:22: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1779:22: throw: if ‘pixaaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1779:22: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def905]
leptonica-1.87.0/src/jbclass.c:1780: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
leptonica-1.87.0/src/jbclass.c:1780:22: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1780:22: throw: if ‘pixaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1780:22: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def907]
leptonica-1.87.0/src/jbclass.c:1781: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
leptonica-1.87.0/src/jbclass.c:1781:23: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1781:23: throw: if ‘pixaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1781:23: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def909]
leptonica-1.87.0/src/jbclass.c:1782: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
leptonica-1.87.0/src/jbclass.c:1782:22: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1782:22: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1782:22: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def911]
leptonica-1.87.0/src/jbclass.c:1783: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
leptonica-1.87.0/src/jbclass.c:1783:23: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1783:23: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1783:23: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def913]
leptonica-1.87.0/src/jbclass.c:1784: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def914]
leptonica-1.87.0/src/jbclass.c:1784:21: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1784:21: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1784:21: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def915]
leptonica-1.87.0/src/jbclass.c:1785: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def916]
leptonica-1.87.0/src/jbclass.c:1785:22: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1785:22: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1785:22: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def917]
leptonica-1.87.0/src/jbclass.c:1786: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def918]
leptonica-1.87.0/src/jbclass.c:1786:24: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1786:24: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1786:24: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def919]
leptonica-1.87.0/src/jbclass.c:1787: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
leptonica-1.87.0/src/jbclass.c:1787:23: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1787:23: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1787:23: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def921]
leptonica-1.87.0/src/jbclass.c:1788: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: classer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def922]
leptonica-1.87.0/src/jbclass.c:1788:22: warning[-Wanalyzer-malloc-leak]: leak of ‘classer’
leptonica-1.87.0/src/jbclass.c:1771:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1775:28: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1775:28: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1788:22: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1788:22: danger: ‘classer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def923]
leptonica-1.87.0/src/jbclass.c:1866: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def924]
leptonica-1.87.0/src/jbclass.c:1866:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
leptonica-1.87.0/src/jbclass.c:1855:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1859:19: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1862:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1865:22: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1865:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/jbclass.c:1866:5: danger: ‘data’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def925]
leptonica-1.87.0/src/jbclass.c:1867: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def926]
leptonica-1.87.0/src/jbclass.c:1868: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def927]
leptonica-1.87.0/src/jbclass.c:1869: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def928]
leptonica-1.87.0/src/jbclass.c:1870: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def929]
leptonica-1.87.0/src/jbclass.c:1871: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def930]
leptonica-1.87.0/src/jbclass.c:1872: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def931]
leptonica-1.87.0/src/jbclass.c:1873: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
leptonica-1.87.0/src/jbclass.c:1873:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/jbclass.c:1855:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1859:19: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1862:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1865:22: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1865:22: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1873:21: throw: if ‘numaClone’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1873:21: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def933]
leptonica-1.87.0/src/jbclass.c:1874: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
leptonica-1.87.0/src/jbclass.c:1874:20: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/jbclass.c:1855:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1859:19: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1862:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1865:22: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1865:22: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1874:20: throw: if ‘numaClone’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1874:20: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def935]
leptonica-1.87.0/src/jbclass.c:1875: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def936]
leptonica-1.87.0/src/jbclass.c:1875:19: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/jbclass.c:1855:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1859:19: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1862:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1865:22: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1865:22: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1875:19: throw: if ‘ptaClone’ throws an exception...
leptonica-1.87.0/src/jbclass.c:1875:19: danger: ‘data’ leaks here; was allocated at [(5)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def937]
leptonica-1.87.0/src/jbclass.c:2052: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: GCC_ANALYZER_WARNING (CWE-476): [#def938]
leptonica-1.87.0/src/jbclass.c:2052:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘jbdata’
leptonica-1.87.0/src/jbclass.c:1990:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1993:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1994:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1997:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1998:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:2003:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:2003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:2008:11: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:2010:8: branch_false: following ‘false’ branch (when the strings are equal)...
leptonica-1.87.0/src/jbclass.c:2016:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:2051:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/jbclass.c:2052:5: danger: ‘jbdata’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def939]
leptonica-1.87.0/src/jbclass.c:2053: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def940]
leptonica-1.87.0/src/jbclass.c:2054: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def941]
leptonica-1.87.0/src/jbclass.c:2055: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def942]
leptonica-1.87.0/src/jbclass.c:2056: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def943]
leptonica-1.87.0/src/jbclass.c:2057: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def944]
leptonica-1.87.0/src/jbclass.c:2058: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def945]
leptonica-1.87.0/src/jbclass.c:2059: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def946]
leptonica-1.87.0/src/jbclass.c:2060: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: CPPCHECK_WARNING (CWE-476): [#def947]
leptonica-1.87.0/src/jbclass.c:2061: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jbdata
Error: GCC_ANALYZER_WARNING (CWE-401): [#def948]
leptonica-1.87.0/src/jbclass.c:2064:5: warning[-Wanalyzer-malloc-leak]: leak of ‘jbdata’
leptonica-1.87.0/src/jbclass.c:1990:8: branch_false: following ‘false’ branch (when ‘rootname’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1993:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1994:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1997:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1998:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:2003:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:2003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:2008:11: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:2010:8: branch_false: following ‘false’ branch (when the strings are equal)...
leptonica-1.87.0/src/jbclass.c:2016:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:2051:24: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:2064:5: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/jbclass.c:2064:5: danger: ‘jbdata’ leaks here; was allocated at [(11)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-457): [#def949]
leptonica-1.87.0/src/jbclass.c: scope_hint: In function ‘jbGetULCorners’
leptonica-1.87.0/src/jbclass.c:2272:35: warning[-Wmaybe-uninitialized]: ‘dx’ may be used uninitialized
leptonica-1.87.0/src/jbclass.c:2223:64: note: ‘dx’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def950]
leptonica-1.87.0/src/jbclass.c:2272:51: warning[-Wmaybe-uninitialized]: ‘dy’ may be used uninitialized
leptonica-1.87.0/src/jbclass.c:2223:68: note: ‘dy’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def951]
leptonica-1.87.0/src/jbclass.c:2396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
Error: GCC_ANALYZER_WARNING (CWE-476): [#def952]
leptonica-1.87.0/src/jbclass.c:2396:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
leptonica-1.87.0/src/jbclass.c:2395:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/jbclass.c:2396:5: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def953]
leptonica-1.87.0/src/jbclass.c:2396:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1181:23: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def954]
leptonica-1.87.0/src/jbclass.c:2396:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1181:23: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
leptonica-1.87.0/src/jbclass.c:2396:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1181:23: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
leptonica-1.87.0/src/jbclass.c:2396:16: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
leptonica-1.87.0/src/jbclass.c:2395:26: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:2396:16: throw: if ‘pixGetWidth’ throws an exception...
leptonica-1.87.0/src/jbclass.c:2396:16: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def957]
leptonica-1.87.0/src/jbclass.c:2397: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
Error: GCC_ANALYZER_WARNING (CWE-401): [#def958]
leptonica-1.87.0/src/jbclass.c:2397:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1094:35: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1181:23: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
leptonica-1.87.0/src/jbclass.c:2397:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1181:23: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def960]
leptonica-1.87.0/src/jbclass.c:2397:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_false: following ‘false’ branch (when ‘y < 0’)...
leptonica-1.87.0/src/jbclass.c:1122:15: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1181:23: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def961]
leptonica-1.87.0/src/jbclass.c:2397:16: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
leptonica-1.87.0/src/jbclass.c:2395:26: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:2397:16: throw: if ‘pixGetHeight’ throws an exception...
leptonica-1.87.0/src/jbclass.c:2397:16: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/90/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def962]
leptonica-1.87.0/src/jbclass.c:2398: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
Error: GCC_ANALYZER_WARNING (CWE-401): [#def963]
leptonica-1.87.0/src/jbclass.c:2459:26: warning[-Wanalyzer-malloc-leak]: leak of ‘findcontext’
leptonica-1.87.0/src/jbclass.c:585:1: enter_function: entry to ‘jbClassifyRankHaus’
leptonica-1.87.0/src/jbclass.c:605:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:607:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:607:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:609:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:609:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:611:14: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:613:17: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:613:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:616:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:684:8: branch_true: following ‘true’ branch (when ‘rank == 1.0e+0f’)...
leptonica-1.87.0/src/jbclass.c:684:8: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:685:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:686:20: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:691:27: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyRankHaus’
leptonica-1.87.0/src/jbclass.c:691:27: return_function: returning to ‘jbClassifyRankHaus’ from ‘findSimilarSizedTemplatesInit’
leptonica-1.87.0/src/jbclass.c:692:30: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyRankHaus’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def964]
leptonica-1.87.0/src/jbclass.c:2459:26: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1182:27: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def965]
leptonica-1.87.0/src/jbclass.c:2459:26: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1182:27: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def966]
leptonica-1.87.0/src/jbclass.c:2470:16: warning[-Wanalyzer-malloc-leak]: leak of ‘findcontext’
leptonica-1.87.0/src/jbclass.c:585:1: enter_function: entry to ‘jbClassifyRankHaus’
leptonica-1.87.0/src/jbclass.c:605:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:607:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:607:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:609:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:609:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:611:14: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:613:17: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:613:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:616:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:684:8: branch_true: following ‘true’ branch (when ‘rank == 1.0e+0f’)...
leptonica-1.87.0/src/jbclass.c:684:8: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:685:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:686:20: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:691:27: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyRankHaus’
leptonica-1.87.0/src/jbclass.c:691:27: return_function: returning to ‘jbClassifyRankHaus’ from ‘findSimilarSizedTemplatesInit’
leptonica-1.87.0/src/jbclass.c:692:30: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyRankHaus’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def967]
leptonica-1.87.0/src/jbclass.c:2470:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1182:27: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
leptonica-1.87.0/src/jbclass.c:2470:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1182:27: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
leptonica-1.87.0/src/jbclass.c:2485:9: warning[-Wanalyzer-malloc-leak]: leak of ‘findcontext’
leptonica-1.87.0/src/jbclass.c:585:1: enter_function: entry to ‘jbClassifyRankHaus’
leptonica-1.87.0/src/jbclass.c:605:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:607:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:607:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:609:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:609:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:611:14: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:613:17: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:613:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:616:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:684:8: branch_true: following ‘true’ branch (when ‘rank == 1.0e+0f’)...
leptonica-1.87.0/src/jbclass.c:684:8: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:685:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:686:20: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:691:27: call_function: calling ‘findSimilarSizedTemplatesInit’ from ‘jbClassifyRankHaus’
leptonica-1.87.0/src/jbclass.c:691:27: return_function: returning to ‘jbClassifyRankHaus’ from ‘findSimilarSizedTemplatesInit’
leptonica-1.87.0/src/jbclass.c:692:30: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyRankHaus’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def970]
leptonica-1.87.0/src/jbclass.c:2485:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1080:25: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1182:27: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyCorrelation’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def971]
leptonica-1.87.0/src/jbclass.c:2485:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixrowcts’
leptonica-1.87.0/src/jbclass.c:1023:1: enter_function: entry to ‘jbClassifyCorrelation’
leptonica-1.87.0/src/jbclass.c:1048:8: branch_false: following ‘false’ branch (when ‘classer’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1050:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1052:8: branch_false: following ‘false’ branch (when ‘pixas’ is non-NULL)...
leptonica-1.87.0/src/jbclass.c:1055:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1059:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1063:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1081:29: acquire_memory: allocated here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1093:15: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1101:41: branch_true: following ‘true’ branch (when ‘y >= 0’)...
leptonica-1.87.0/src/jbclass.c:1102:25: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1104:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1119:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1123:12: branch_false: following ‘false’ branch (when ‘downcount <= 0’)...
leptonica-1.87.0/src/jbclass.c:1127:13: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1092:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jbclass.c:1133:5: branch_false: ...to here
leptonica-1.87.0/src/jbclass.c:1175:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jbclass.c:1176:16: branch_true: ...to here
leptonica-1.87.0/src/jbclass.c:1182:27: call_function: calling ‘findSimilarSizedTemplatesNext’ from ‘jbClassifyCorrelation’
Error: CPPCHECK_WARNING (CWE-457): [#def972]
leptonica-1.87.0/src/jbclass.c:2558: warning[uninitvar]: Uninitialized variable: minx
Error: CPPCHECK_WARNING (CWE-457): [#def973]
leptonica-1.87.0/src/jbclass.c:2559: warning[uninitvar]: Uninitialized variable: miny
Error: GCC_ANALYZER_WARNING (CWE-401): [#def974]
leptonica-1.87.0/src/jpegio.c:337:15: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:336:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:337:15: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/jpegio.c:337:15: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def975]
leptonica-1.87.0/src/jpegio.c:340:15: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:335:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:340:15: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/jpegio.c:340:15: danger: ‘rowbuffer’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def976]
leptonica-1.87.0/src/jpegio.c:349:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:336:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:349:5: throw: if ‘pixSetInputFormat’ throws an exception...
leptonica-1.87.0/src/jpegio.c:349:5: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def977]
leptonica-1.87.0/src/jpegio.c:359:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:358:8: branch_true: following ‘true’ branch (when ‘spp == 1’)...
leptonica-1.87.0/src/jpegio.c:359:9: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:359:9: throw: if ‘jpeg_start_decompress’ throws an exception...
leptonica-1.87.0/src/jpegio.c:359:9: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def978]
leptonica-1.87.0/src/jpegio.c:363:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:336:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:358:8: branch_false: following ‘false’ branch (when ‘spp != 1’)...
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:361:12: branch_true: following ‘true’ branch (when ‘cmapflag == 0’)...
leptonica-1.87.0/src/jpegio.c:362:13: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:363:13: throw: if ‘jpeg_start_decompress’ throws an exception...
leptonica-1.87.0/src/jpegio.c:363:13: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def979]
leptonica-1.87.0/src/jpegio.c:367:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:358:8: branch_false: following ‘false’ branch (when ‘spp != 1’)...
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: following ‘false’ branch (when ‘cmapflag != 0’)...
leptonica-1.87.0/src/jpegio.c:365:13: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:367:13: throw: if ‘jpeg_start_decompress’ throws an exception...
leptonica-1.87.0/src/jpegio.c:367:13: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def980]
leptonica-1.87.0/src/jpegio.c:370:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:358:8: branch_false: following ‘false’ branch (when ‘spp != 1’)...
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: following ‘false’ branch (when ‘cmapflag != 0’)...
leptonica-1.87.0/src/jpegio.c:365:13: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:370:20: throw: if ‘pixcmapCreate’ throws an exception...
leptonica-1.87.0/src/jpegio.c:370:20: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def981]
leptonica-1.87.0/src/jpegio.c:376:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:358:8: branch_false: following ‘false’ branch (when ‘spp != 1’)...
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: following ‘false’ branch (when ‘cmapflag != 0’)...
leptonica-1.87.0/src/jpegio.c:365:13: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:372:30: branch_true: following ‘true’ branch (when ‘cindex < ncolors’)...
leptonica-1.87.0/src/jpegio.c:373:24: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:376:17: throw: if ‘pixcmapAddColor’ throws an exception...
leptonica-1.87.0/src/jpegio.c:376:17: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def982]
leptonica-1.87.0/src/jpegio.c:378:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:358:8: branch_false: following ‘false’ branch (when ‘spp != 1’)...
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:361:12: branch_false: following ‘false’ branch (when ‘cmapflag != 0’)...
leptonica-1.87.0/src/jpegio.c:365:13: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:378:13: throw: if ‘pixSetColormap’ throws an exception...
leptonica-1.87.0/src/jpegio.c:378:13: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def983]
leptonica-1.87.0/src/jpegio.c:381:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:381:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/jpegio.c:381:12: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def984]
leptonica-1.87.0/src/jpegio.c:382:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:382:12: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/jpegio.c:382:12: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
leptonica-1.87.0/src/jpegio.c:395:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_true: following ‘true’ branch (when ‘i < h’)...
leptonica-1.87.0/src/jpegio.c:395:22: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:395:22: throw: if ‘jpeg_read_scanlines’ throws an exception...
leptonica-1.87.0/src/jpegio.c:395:22: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def986]
leptonica-1.87.0/src/jpegio.c:471:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:470:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:471:9: throw: if ‘pixSetXRes’ throws an exception...
leptonica-1.87.0/src/jpegio.c:471:9: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def987]
leptonica-1.87.0/src/jpegio.c:472:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:470:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:472:9: throw: if ‘pixSetYRes’ throws an exception...
leptonica-1.87.0/src/jpegio.c:472:9: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def988]
leptonica-1.87.0/src/jpegio.c:474:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:470:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:473:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:473:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:474:46: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:474:9: throw: if ‘pixSetXRes’ throws an exception...
leptonica-1.87.0/src/jpegio.c:474:9: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def989]
leptonica-1.87.0/src/jpegio.c:475:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:470:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:473:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:473:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:474:46: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:475:9: throw: if ‘pixSetYRes’ throws an exception...
leptonica-1.87.0/src/jpegio.c:475:9: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def990]
leptonica-1.87.0/src/jpegio.c:479:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:478:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:479:9: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:479:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/jpegio.c:479:9: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def991]
leptonica-1.87.0/src/jpegio.c:482:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:482:5: throw: if ‘jpeg_finish_decompress’ throws an exception...
leptonica-1.87.0/src/jpegio.c:482:5: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
leptonica-1.87.0/src/jpegio.c:483:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:339:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:483:5: throw: if ‘jpeg_destroy_decompress’ throws an exception...
leptonica-1.87.0/src/jpegio.c:483:5: danger: ‘rowbuffer’ leaks here; was allocated at [(6)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def993]
leptonica-1.87.0/src/jpegio.c:487:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nwarn’
leptonica-1.87.0/src/jpegio.c:285:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:287:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:303:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:311:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:342:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:394:17: branch_false: following ‘false’ branch (when ‘i >= h’)...
leptonica-1.87.0/src/jpegio.c:470:9: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:486:8: branch_false: following ‘false’ branch (when ‘pnwarn’ is NULL)...
leptonica-1.87.0/src/jpegio.c:487:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:487:8: danger: use of uninitialized value ‘nwarn’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
leptonica-1.87.0/src/jpegio.c:813:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
leptonica-1.87.0/src/jpegio.c:820:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
leptonica-1.87.0/src/jpegio.c:822:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
leptonica-1.87.0/src/jpegio.c:823:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def998]
leptonica-1.87.0/src/jpegio.c:825:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def999]
leptonica-1.87.0/src/jpegio.c:827:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
leptonica-1.87.0/src/jpegio.c:829:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
leptonica-1.87.0/src/jpegio.c:830:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/jpegio.c:1112:1: enter_function: entry to ‘pixWriteMemJpeg’
leptonica-1.87.0/src/jpegio.c:1122:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1122:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1123:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1125:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1127:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1131:15: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1131:15: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1131:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1133:11: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1133:11: call_function: calling ‘pixWriteStreamJpeg’ from ‘pixWriteMemJpeg’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
leptonica-1.87.0/src/jpegio.c:929:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:807:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:811:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:835:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:837:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:846:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:853:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:923:32: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:923:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:929:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:929:12: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/jpegio.c:929:12: danger: ‘rowbuffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
leptonica-1.87.0/src/jpegio.c:930:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:807:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:811:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:835:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:837:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:846:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:853:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:923:32: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:923:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:929:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:930:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/jpegio.c:930:12: danger: ‘rowbuffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1004]
leptonica-1.87.0/src/jpegio.c:938:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:807:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:811:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:835:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:837:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:846:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:853:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:923:32: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:923:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:929:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:931:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:932:23: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:933:12: branch_false: following ‘false’ branch (when ‘colorflag != 0’)...
leptonica-1.87.0/src/jpegio.c:937:17: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:937:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:938:17: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:938:17: throw: if ‘jpeg_write_scanlines’ throws an exception...
leptonica-1.87.0/src/jpegio.c:938:17: danger: ‘rowbuffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
leptonica-1.87.0/src/jpegio.c:950:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:807:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:811:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:835:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:837:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:846:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:853:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:923:32: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:923:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:929:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:931:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:932:23: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:933:12: branch_true: following ‘true’ branch (when ‘colorflag == 0’)...
leptonica-1.87.0/src/jpegio.c:933:12: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:934:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:949:13: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:949:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/jpegio.c:950:13: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:950:13: throw: if ‘jpeg_write_scanlines’ throws an exception...
leptonica-1.87.0/src/jpegio.c:950:13: danger: ‘rowbuffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
leptonica-1.87.0/src/jpegio.c:952:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:807:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:811:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:835:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:837:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:846:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:853:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:923:32: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:923:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:929:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:931:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:952:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:952:5: throw: if ‘jpeg_finish_compress’ throws an exception...
leptonica-1.87.0/src/jpegio.c:952:5: danger: ‘rowbuffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
leptonica-1.87.0/src/jpegio.c:954:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/jpegio.c:807:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:809:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:811:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:835:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:837:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:846:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/jpegio.c:846:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:853:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:923:32: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:923:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:929:12: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:931:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/jpegio.c:952:5: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:954:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/jpegio.c:954:5: danger: ‘rowbuffer’ leaks here; was allocated at [(10)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
leptonica-1.87.0/src/jpegio.c:1235:15: warning[-Wanalyzer-malloc-leak]: leak of ‘comment’
leptonica-1.87.0/src/jpegio.c:1252:1: enter_function: entry to ‘jpeg_comment_callback’
leptonica-1.87.0/src/jpegio.c:1262:8: branch_false: following ‘false’ branch (when ‘length > 0’)...
leptonica-1.87.0/src/jpegio.c:1266:31: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1266:31: acquire_memory: allocated here
leptonica-1.87.0/src/jpegio.c:1266:8: branch_false: following ‘false’ branch (when ‘comment’ is non-NULL)...
leptonica-1.87.0/src/jpegio.c:1266:8: branch_false: ...to here
leptonica-1.87.0/src/jpegio.c:1268:17: branch_true: following ‘true’ branch (when ‘i < length’)...
leptonica-1.87.0/src/jpegio.c:1269:16: branch_true: ...to here
leptonica-1.87.0/src/jpegio.c:1269:22: call_function: calling ‘jpeg_getc’ from ‘jpeg_comment_callback’
Error: CPPCHECK_WARNING (CWE-476): [#def1009]
leptonica-1.87.0/src/kernel.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1010]
leptonica-1.87.0/src/kernel.c:131:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘kel’
leptonica-1.87.0/src/kernel.c:1069:1: enter_function: entry to ‘makeFlatKernel’
leptonica-1.87.0/src/kernel.c:1078:16: call_function: calling ‘kernelCreate’ from ‘makeFlatKernel’
Error: CPPCHECK_WARNING (CWE-476): [#def1011]
leptonica-1.87.0/src/kernel.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kel
Error: CPPCHECK_WARNING (CWE-476): [#def1012]
leptonica-1.87.0/src/kernel.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: kel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
leptonica-1.87.0/src/kernel.c:488:30: warning[-Wanalyzer-malloc-leak]: leak of ‘kel’
leptonica-1.87.0/src/kernel.c:1069:1: enter_function: entry to ‘makeFlatKernel’
leptonica-1.87.0/src/kernel.c:1078:16: call_function: calling ‘kernelCreate’ from ‘makeFlatKernel’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
leptonica-1.87.0/src/kernel.c:490:30: warning[-Wanalyzer-malloc-leak]: leak of ‘kel’
leptonica-1.87.0/src/kernel.c:1069:1: enter_function: entry to ‘makeFlatKernel’
leptonica-1.87.0/src/kernel.c:1078:16: call_function: calling ‘kernelCreate’ from ‘makeFlatKernel’
Error: CPPCHECK_WARNING (CWE-476): [#def1015]
leptonica-1.87.0/src/kernel.c:494: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: array
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1016]
leptonica-1.87.0/src/kernel.c:494:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘array’
leptonica-1.87.0/src/kernel.c:489:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/kernel.c:492:27: branch_false: ...to here
leptonica-1.87.0/src/kernel.c:492:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/kernel.c:493:17: branch_true: following ‘true’ branch (when ‘sy > i’)...
leptonica-1.87.0/src/kernel.c:494:33: branch_true: ...to here
leptonica-1.87.0/src/kernel.c:494:9: danger: ‘array + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def1017]
leptonica-1.87.0/src/kernel.c: scope_hint: In function ‘kernelReadStream’
leptonica-1.87.0/src/kernel.c:540:48: warning[-Wunused-but-set-variable=]: variable ‘ignore’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def1018]
leptonica-1.87.0/src/list.c:289: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cell
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1019]
leptonica-1.87.0/src/list.c:289:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cell’
leptonica-1.87.0/src/list.c:282:8: branch_false: following ‘false’ branch (when ‘phead’ is non-NULL)...
leptonica-1.87.0/src/list.c:284:5: branch_false: ...to here
leptonica-1.87.0/src/list.c:285:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/list.c:288:22: branch_false: ...to here
leptonica-1.87.0/src/list.c:288:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/list.c:289:5: danger: ‘cell’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def1020]
leptonica-1.87.0/src/list.c:342: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cell
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1021]
leptonica-1.87.0/src/list.c:342:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cell’
leptonica-1.87.0/src/list.c:333:8: branch_false: following ‘false’ branch (when ‘phead’ is non-NULL)...
leptonica-1.87.0/src/list.c:335:5: branch_false: ...to here
leptonica-1.87.0/src/list.c:336:8: branch_false: following ‘false’ branch (when ‘ptail’ is non-NULL)...
leptonica-1.87.0/src/list.c:338:8: branch_false: ...to here
leptonica-1.87.0/src/list.c:338:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/list.c:341:22: branch_false: ...to here
leptonica-1.87.0/src/list.c:341:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/list.c:342:5: danger: ‘cell’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1022]
leptonica-1.87.0/src/list.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cell
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1023]
leptonica-1.87.0/src/list.c:402:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cell’
leptonica-1.87.0/src/list.c:392:8: branch_false: following ‘false’ branch (when ‘phead’ is non-NULL)...
leptonica-1.87.0/src/list.c:394:5: branch_false: ...to here
leptonica-1.87.0/src/list.c:395:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/list.c:397:10: branch_false: ...to here
leptonica-1.87.0/src/list.c:397:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/list.c:401:22: branch_false: ...to here
leptonica-1.87.0/src/list.c:401:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/list.c:402:5: danger: ‘cell’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1024]
leptonica-1.87.0/src/list.c:463: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cell
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1025]
leptonica-1.87.0/src/list.c:463:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cell’
leptonica-1.87.0/src/list.c:453:8: branch_false: following ‘false’ branch (when ‘phead’ is non-NULL)...
leptonica-1.87.0/src/list.c:455:5: branch_false: ...to here
leptonica-1.87.0/src/list.c:456:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/list.c:458:10: branch_false: ...to here
leptonica-1.87.0/src/list.c:458:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/list.c:462:22: branch_false: ...to here
leptonica-1.87.0/src/list.c:462:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/list.c:463:5: danger: ‘cell’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1026]
leptonica-1.87.0/src/map.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1027]
leptonica-1.87.0/src/map.c:120:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘m’
leptonica-1.87.0/src/map.c:115:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/map.c:119:19: branch_false: ...to here
leptonica-1.87.0/src/map.c:119:19: acquire_memory: this call could return NULL
leptonica-1.87.0/src/map.c:120:5: danger: ‘m’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1028]
leptonica-1.87.0/src/map.c:196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1029]
leptonica-1.87.0/src/map.c:196:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
leptonica-1.87.0/src/map.c:191:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/map.c:195:19: branch_false: ...to here
leptonica-1.87.0/src/map.c:195:19: acquire_memory: this call could return NULL
leptonica-1.87.0/src/map.c:196:5: danger: ‘s’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1030]
leptonica-1.87.0/src/maze.c:196:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:145:1: enter_function: entry to ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:195:10: call_function: inlined call to ‘mazeelCreate’ from ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:196:5: throw: if ‘pixSetPixel’ throws an exception...
leptonica-1.87.0/src/maze.c:196:5: danger: ‘el’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1031]
leptonica-1.87.0/src/maze.c:197:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:145:1: enter_function: entry to ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:195:10: call_function: inlined call to ‘mazeelCreate’ from ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:197:5: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:197:5: danger: ‘el’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1032]
leptonica-1.87.0/src/maze.c:217:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:145:1: enter_function: entry to ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:200:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:201:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:205:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:206:31: branch_true: ...to here
leptonica-1.87.0/src/maze.c:216:26: call_function: inlined call to ‘mazeelCreate’ from ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:217:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:217:21: danger: ‘el’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1033]
leptonica-1.87.0/src/maze.c:233:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:145:1: enter_function: entry to ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:200:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:201:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:205:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:206:31: branch_true: ...to here
leptonica-1.87.0/src/maze.c:221:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:222:34: branch_true: ...to here
leptonica-1.87.0/src/maze.c:232:26: call_function: inlined call to ‘mazeelCreate’ from ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:233:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:233:21: danger: ‘el’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1034]
leptonica-1.87.0/src/maze.c:249:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:145:1: enter_function: entry to ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:200:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:201:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:205:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:206:31: branch_true: ...to here
leptonica-1.87.0/src/maze.c:221:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:222:34: branch_true: ...to here
leptonica-1.87.0/src/maze.c:237:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:238:31: branch_true: ...to here
leptonica-1.87.0/src/maze.c:239:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:240:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:248:26: call_function: inlined call to ‘mazeelCreate’ from ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:249:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:249:21: danger: ‘el’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1035]
leptonica-1.87.0/src/maze.c:265:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:145:1: enter_function: entry to ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:200:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:201:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:205:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:206:31: branch_true: ...to here
leptonica-1.87.0/src/maze.c:221:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:222:34: branch_true: ...to here
leptonica-1.87.0/src/maze.c:237:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:238:31: branch_true: ...to here
leptonica-1.87.0/src/maze.c:239:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:240:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:245:20: branch_true: following ‘true’ branch (when ‘testp >= frand’)...
leptonica-1.87.0/src/maze.c:246:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:255:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:256:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:259:20: branch_false: following ‘false’ branch (when ‘dir != 2’)...
leptonica-1.87.0/src/maze.c:261:20: branch_false: ...to here
leptonica-1.87.0/src/maze.c:264:26: call_function: inlined call to ‘mazeelCreate’ from ‘generateBinaryMaze’
leptonica-1.87.0/src/maze.c:265:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:265:21: danger: ‘el’ leaks here; was allocated at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-476): [#def1036]
leptonica-1.87.0/src/maze.c:286: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: el
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1037]
leptonica-1.87.0/src/maze.c:286:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:770:10: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
Error: CPPCHECK_WARNING (CWE-476): [#def1038]
leptonica-1.87.0/src/maze.c:287: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: el
Error: CPPCHECK_WARNING (CWE-476): [#def1039]
leptonica-1.87.0/src/maze.c:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: el
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1040]
leptonica-1.87.0/src/maze.c:393:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:342:1: enter_function: entry to ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:360:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:362:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:363:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:365:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:376:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:392:10: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:393:5: throw: if ‘pixSetPixel’ throws an exception...
leptonica-1.87.0/src/maze.c:393:5: danger: ‘el’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1041]
leptonica-1.87.0/src/maze.c:394:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:342:1: enter_function: entry to ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:360:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:362:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:363:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:365:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:376:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:392:10: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:394:5: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:394:5: danger: ‘el’ leaks here; was allocated at [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1042]
leptonica-1.87.0/src/maze.c:417:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:342:1: enter_function: entry to ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:360:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:362:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:363:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:365:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:376:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:399:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:400:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:409:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:410:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:411:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:412:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:414:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:415:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:416:26: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:417:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:417:21: danger: ‘el’ leaks here; was allocated at [(21)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1043]
leptonica-1.87.0/src/maze.c:429:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:342:1: enter_function: entry to ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:360:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:362:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:363:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:365:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:376:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:399:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:400:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:409:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:410:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:411:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:412:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:414:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:415:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:421:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:422:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:423:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:424:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:426:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:427:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:428:26: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:429:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:429:21: danger: ‘el’ leaks here; was allocated at [(27)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1044]
leptonica-1.87.0/src/maze.c:441:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:342:1: enter_function: entry to ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:360:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:362:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:363:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:365:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:376:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:399:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:400:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:409:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:410:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:411:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:412:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:414:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:415:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:421:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:422:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:423:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:424:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:426:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:427:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:433:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:434:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:435:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:436:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:438:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:439:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:440:26: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:441:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:441:21: danger: ‘el’ leaks here; was allocated at [(33)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/32)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1045]
leptonica-1.87.0/src/maze.c:453:21: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:342:1: enter_function: entry to ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:360:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:362:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:363:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:365:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:376:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:399:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:400:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:409:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:410:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:411:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:412:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:414:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:415:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:421:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:422:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:423:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:424:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:426:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:427:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:433:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:434:19: branch_true: ...to here
leptonica-1.87.0/src/maze.c:435:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:436:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:438:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:439:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:445:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:445:12: branch_true: ...to here
leptonica-1.87.0/src/maze.c:447:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:448:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:450:20: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:451:21: branch_true: ...to here
leptonica-1.87.0/src/maze.c:452:26: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchBinaryMaze’
leptonica-1.87.0/src/maze.c:453:21: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:453:21: danger: ‘el’ leaks here; was allocated at [(39)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/38)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1046]
leptonica-1.87.0/src/maze.c:772:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:770:10: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:772:5: throw: if ‘pixGetPixel’ throws an exception...
leptonica-1.87.0/src/maze.c:772:5: danger: ‘el’ leaks here; was allocated at [(13)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1047]
leptonica-1.87.0/src/maze.c:774:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:770:10: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:774:5: throw: if ‘pixSetPixel’ throws an exception...
leptonica-1.87.0/src/maze.c:774:5: danger: ‘el’ leaks here; was allocated at [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1048]
leptonica-1.87.0/src/maze.c:775:5: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:770:10: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:775:5: throw: if ‘lheapAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:775:5: danger: ‘el’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1049]
leptonica-1.87.0/src/maze.c:809:17: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:781:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:782:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:783:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:787:9: branch_false: ...to here
leptonica-1.87.0/src/maze.c:789:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:793:31: branch_false: ...to here
leptonica-1.87.0/src/maze.c:797:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:798:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:803:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:804:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:806:22: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:809:17: throw: if ‘lheapAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:809:17: danger: ‘el’ leaks here; was allocated at [(23)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1050]
leptonica-1.87.0/src/maze.c:824:17: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:781:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:782:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:783:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:787:9: branch_false: ...to here
leptonica-1.87.0/src/maze.c:789:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:793:31: branch_false: ...to here
leptonica-1.87.0/src/maze.c:797:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:798:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:803:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:804:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:812:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:813:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:818:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:819:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:821:22: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:824:17: throw: if ‘lheapAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:824:17: danger: ‘el’ leaks here; was allocated at [(27)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1051]
leptonica-1.87.0/src/maze.c:839:17: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:781:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:782:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:783:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:787:9: branch_false: ...to here
leptonica-1.87.0/src/maze.c:789:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:793:31: branch_false: ...to here
leptonica-1.87.0/src/maze.c:797:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:798:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:803:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:804:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:812:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:813:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:818:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:819:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:827:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:828:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:833:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:834:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:836:22: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:839:17: throw: if ‘lheapAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:839:17: danger: ‘el’ leaks here; was allocated at [(31)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1052]
leptonica-1.87.0/src/maze.c:854:17: warning[-Wanalyzer-malloc-leak]: leak of ‘el’
leptonica-1.87.0/src/maze.c:725:1: enter_function: entry to ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:745:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/maze.c:747:5: branch_false: ...to here
leptonica-1.87.0/src/maze.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:752:8: branch_false: ...to here
leptonica-1.87.0/src/maze.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:754:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:781:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:782:25: branch_true: ...to here
leptonica-1.87.0/src/maze.c:783:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:787:9: branch_false: ...to here
leptonica-1.87.0/src/maze.c:789:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/maze.c:793:31: branch_false: ...to here
leptonica-1.87.0/src/maze.c:797:12: branch_true: following ‘true’ branch (when ‘x > 0’)...
leptonica-1.87.0/src/maze.c:798:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:803:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:804:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:812:12: branch_true: following ‘true’ branch (when ‘y > 0’)...
leptonica-1.87.0/src/maze.c:813:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:818:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:819:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:827:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:828:20: branch_true: ...to here
leptonica-1.87.0/src/maze.c:833:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:834:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:842:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:842:12: branch_true: ...to here
leptonica-1.87.0/src/maze.c:848:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/maze.c:849:17: branch_true: ...to here
leptonica-1.87.0/src/maze.c:851:22: call_function: inlined call to ‘mazeelCreate’ from ‘pixSearchGrayMaze’
leptonica-1.87.0/src/maze.c:854:17: throw: if ‘lheapAdd’ throws an exception...
leptonica-1.87.0/src/maze.c:854:17: danger: ‘el’ leaks here; was allocated at [(35)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/34)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1053]
leptonica-1.87.0/src/morph.c:228:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sel’
leptonica-1.87.0/src/morph.c:1531:1: enter_function: entry to ‘pixCloseCompBrick’
leptonica-1.87.0/src/morph.c:1537:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1538:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1539:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1540:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1542:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/morph.c:1544:9: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1544:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/morph.c:1546:9: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1546:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/morph.c:1549:9: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/morph.c:1551:8: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1568:8: branch_true: following ‘true’ branch (when ‘vsize == 1’)...
leptonica-1.87.0/src/morph.c:1569:16: branch_true: ...to here
leptonica-1.87.0/src/morph.c:1569:16: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1569:16: call_function: calling ‘pixDilate’ from ‘pixCloseCompBrick’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1054]
leptonica-1.87.0/src/morph.c:281:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sel’
leptonica-1.87.0/src/morph.c:1531:1: enter_function: entry to ‘pixCloseCompBrick’
leptonica-1.87.0/src/morph.c:1537:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1538:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1539:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1540:7: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1542:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/morph.c:1544:9: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1544:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/morph.c:1546:9: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1546:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/morph.c:1549:9: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/morph.c:1551:8: branch_false: ...to here
leptonica-1.87.0/src/morph.c:1568:8: branch_true: following ‘true’ branch (when ‘vsize == 1’)...
leptonica-1.87.0/src/morph.c:1569:16: branch_true: ...to here
leptonica-1.87.0/src/morph.c:1569:16: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1569:16: call_function: calling ‘pixDilate’ from ‘pixCloseCompBrick’
leptonica-1.87.0/src/morph.c:1569:16: return_function: returning to ‘pixCloseCompBrick’ from ‘pixDilate’
leptonica-1.87.0/src/morph.c:1570:16: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1570:16: call_function: calling ‘pixDilate’ from ‘pixCloseCompBrick’
leptonica-1.87.0/src/morph.c:1570:16: return_function: returning to ‘pixCloseCompBrick’ from ‘pixDilate’
leptonica-1.87.0/src/morph.c:1571:9: release_memory: ‘selh1’ is NULL
leptonica-1.87.0/src/morph.c:1571:9: call_function: calling ‘pixErode’ from ‘pixCloseCompBrick’
Error: CPPCHECK_WARNING (CWE-476): [#def1055]
leptonica-1.87.0/src/numabasic.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: na
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1056]
leptonica-1.87.0/src/numabasic.c:201:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘na’
leptonica-1.87.0/src/numabasic.c:387:1: enter_function: entry to ‘numaCopy’
leptonica-1.87.0/src/numabasic.c:395:16: call_function: calling ‘numaCreate’ from ‘numaCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def1057]
leptonica-1.87.0/src/numabasic.c:206: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: na
Error: CPPCHECK_WARNING (CWE-476): [#def1058]
leptonica-1.87.0/src/numabasic.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: na
Error: CPPCHECK_WARNING (CWE-476): [#def1059]
leptonica-1.87.0/src/numabasic.c:208: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: na
Error: CPPCHECK_WARNING (CWE-476): [#def1060]
leptonica-1.87.0/src/numabasic.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: na
Error: CPPCHECK_WARNING (CWE-476): [#def1061]
leptonica-1.87.0/src/numabasic.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: na
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1062]
leptonica-1.87.0/src/numabasic.c:377:1: warning[-Wanalyzer-malloc-leak]: leak of ‘na’
leptonica-1.87.0/src/numabasic.c:387:1: enter_function: entry to ‘numaCopy’
leptonica-1.87.0/src/numabasic.c:395:16: call_function: calling ‘numaCreate’ from ‘numaCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
leptonica-1.87.0/src/numabasic.c:417:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/numabasic.c:1927:1: enter_function: entry to ‘numaaWriteMem’
leptonica-1.87.0/src/numabasic.c:1935:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1935:16: branch_true: ...to here
leptonica-1.87.0/src/numabasic.c:1936:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1938:8: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1938:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1940:8: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1940:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1944:15: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1944:15: acquire_memory: allocated here
leptonica-1.87.0/src/numabasic.c:1944:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1946:11: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1946:11: call_function: calling ‘numaaWriteStream’ from ‘numaaWriteMem’
Error: CPPCHECK_WARNING (CWE-476): [#def1064]
leptonica-1.87.0/src/numabasic.c:1314: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: naa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1065]
leptonica-1.87.0/src/numabasic.c:1314:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘naa’
leptonica-1.87.0/src/numabasic.c:1784:1: enter_function: entry to ‘numaaReadStream’
leptonica-1.87.0/src/numabasic.c:1794:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numabasic.c:1796:9: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1796:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numabasic.c:1798:9: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1798:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numabasic.c:1801:9: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1801:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numabasic.c:1805:16: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1805:16: call_function: calling ‘numaaCreate’ from ‘numaaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def1066]
leptonica-1.87.0/src/numabasic.c:1319: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: naa
Error: CPPCHECK_WARNING (CWE-476): [#def1067]
leptonica-1.87.0/src/numabasic.c:1320: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: naa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1068]
leptonica-1.87.0/src/numabasic.c:1628:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/numabasic.c:1927:1: enter_function: entry to ‘numaaWriteMem’
leptonica-1.87.0/src/numabasic.c:1935:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1935:16: branch_true: ...to here
leptonica-1.87.0/src/numabasic.c:1936:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1938:8: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1938:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1940:8: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1940:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1944:15: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1944:15: acquire_memory: allocated here
leptonica-1.87.0/src/numabasic.c:1944:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/numabasic.c:1946:11: branch_false: ...to here
leptonica-1.87.0/src/numabasic.c:1946:11: call_function: calling ‘numaaWriteStream’ from ‘numaaWriteMem’
Error: CPPCHECK_WARNING (CWE-457): [#def1069]
leptonica-1.87.0/src/numafunc1.c:1476: warning[uninitvar]: Uninitialized variable: istart
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1070]
leptonica-1.87.0/src/numafunc1.c:1476:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘istart’
leptonica-1.87.0/src/numafunc1.c:1432:1: enter_function: entry to ‘numaThresholdEdges’
leptonica-1.87.0/src/numafunc1.c:1442:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1444:14: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1444:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1446:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1446:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1448:8: branch_false: following ‘false’ branch (when ‘thresh1 <= thresh2’)...
leptonica-1.87.0/src/numafunc1.c:1454:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1458:5: call_function: calling ‘numaGetMax’ from ‘numaThresholdEdges’
leptonica-1.87.0/src/numafunc1.c:1458:5: return_function: returning to ‘numaThresholdEdges’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1468:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1476:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1476:8: danger: use of uninitialized value ‘istart’ here
Error: COMPILER_WARNING (CWE-457): [#def1071]
leptonica-1.87.0/src/numafunc1.c: scope_hint: In function ‘numaThresholdEdges’
leptonica-1.87.0/src/numafunc1.c:1476:8: warning[-Wmaybe-uninitialized]: ‘istart’ may be used uninitialized
leptonica-1.87.0/src/numafunc1.c:1437:18: note: ‘istart’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1072]
leptonica-1.87.0/src/numafunc1.c:2007:12: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/numafunc1.c:1934:1: enter_function: entry to ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1949:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1949:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1950:8: branch_false: following ‘false’ branch (when ‘pnady’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1952:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1953:8: branch_false: following ‘false’ branch (when ‘nay’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: following ‘false’ branch (when ‘nax’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1957:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: following ‘false’ branch (when ‘x0 <= x1’)...
leptonica-1.87.0/src/numafunc1.c:1961:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1963:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1967:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1971:5: call_function: calling ‘numaGetMin’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1971:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMin’
leptonica-1.87.0/src/numafunc1.c:1972:5: call_function: calling ‘numaGetMax’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1972:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1977:5: call_function: calling ‘numaIsSorted’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1977:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaIsSorted’
leptonica-1.87.0/src/numafunc1.c:1978:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1982:16: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1990:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:1990:8: branch_false: following ‘false’ branch (when ‘index’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1995:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2007:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2007:12: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2007:12: danger: ‘index’ leaks here; was allocated at [(57)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/56)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1073]
leptonica-1.87.0/src/numafunc1.c:2010:16: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/numafunc1.c:1934:1: enter_function: entry to ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1949:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1949:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1950:8: branch_false: following ‘false’ branch (when ‘pnady’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1952:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1953:8: branch_false: following ‘false’ branch (when ‘nay’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: following ‘false’ branch (when ‘nax’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1957:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: following ‘false’ branch (when ‘x0 <= x1’)...
leptonica-1.87.0/src/numafunc1.c:1961:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1963:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1967:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1971:5: call_function: calling ‘numaGetMin’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1971:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMin’
leptonica-1.87.0/src/numafunc1.c:1972:5: call_function: calling ‘numaGetMax’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1972:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1977:5: call_function: calling ‘numaIsSorted’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1977:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaIsSorted’
leptonica-1.87.0/src/numafunc1.c:1978:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1982:16: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1990:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:1990:8: branch_false: following ‘false’ branch (when ‘index’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1995:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2007:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2009:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2010:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2010:16: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2010:16: danger: ‘index’ leaks here; was allocated at [(57)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/56)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1074]
leptonica-1.87.0/src/numafunc1.c:2016:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/numafunc1.c:1934:1: enter_function: entry to ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1949:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1949:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1950:8: branch_false: following ‘false’ branch (when ‘pnady’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1952:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1953:8: branch_false: following ‘false’ branch (when ‘nay’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: following ‘false’ branch (when ‘nax’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1957:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: following ‘false’ branch (when ‘x0 <= x1’)...
leptonica-1.87.0/src/numafunc1.c:1961:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1963:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1967:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1971:5: call_function: calling ‘numaGetMin’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1971:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMin’
leptonica-1.87.0/src/numafunc1.c:1972:5: call_function: calling ‘numaGetMax’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1972:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1977:5: call_function: calling ‘numaIsSorted’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1977:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaIsSorted’
leptonica-1.87.0/src/numafunc1.c:1978:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1982:16: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1990:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:1990:8: branch_false: following ‘false’ branch (when ‘index’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1995:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1997:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1998:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1998:40: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2007:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2009:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2010:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2013:17: branch_true: following ‘true’ branch (when ‘i < npts’)...
leptonica-1.87.0/src/numafunc1.c:2014:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2015:12: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2016:13: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2016:13: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2016:13: danger: ‘index’ leaks here; was allocated at [(57)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/56)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1075]
leptonica-1.87.0/src/numafunc1.c:2020:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/numafunc1.c:1934:1: enter_function: entry to ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1949:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1949:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1950:8: branch_false: following ‘false’ branch (when ‘pnady’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1952:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1953:8: branch_false: following ‘false’ branch (when ‘nay’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: following ‘false’ branch (when ‘nax’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1957:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: following ‘false’ branch (when ‘x0 <= x1’)...
leptonica-1.87.0/src/numafunc1.c:1961:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1963:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1967:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1971:5: call_function: calling ‘numaGetMin’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1971:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMin’
leptonica-1.87.0/src/numafunc1.c:1972:5: call_function: calling ‘numaGetMax’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1972:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1977:5: call_function: calling ‘numaIsSorted’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1977:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaIsSorted’
leptonica-1.87.0/src/numafunc1.c:1978:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1982:16: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1990:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:1990:8: branch_false: following ‘false’ branch (when ‘index’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1995:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1997:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1998:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1998:40: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2007:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2009:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2010:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2013:17: branch_true: following ‘true’ branch (when ‘i < npts’)...
leptonica-1.87.0/src/numafunc1.c:2014:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2015:12: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2016:13: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2019:12: branch_true: following ‘true’ branch (when ‘excess == 0.0f’)...
leptonica-1.87.0/src/numafunc1.c:2020:36: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2020:13: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2020:13: danger: ‘index’ leaks here; was allocated at [(57)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/56)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1076]
leptonica-1.87.0/src/numafunc1.c:2027:13: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/numafunc1.c:1934:1: enter_function: entry to ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1949:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1949:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1950:8: branch_false: following ‘false’ branch (when ‘pnady’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1952:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1953:8: branch_false: following ‘false’ branch (when ‘nay’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: following ‘false’ branch (when ‘nax’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1957:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: following ‘false’ branch (when ‘x0 <= x1’)...
leptonica-1.87.0/src/numafunc1.c:1961:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1963:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1967:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1971:5: call_function: calling ‘numaGetMin’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1971:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMin’
leptonica-1.87.0/src/numafunc1.c:1972:5: call_function: calling ‘numaGetMax’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1972:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1977:5: call_function: calling ‘numaIsSorted’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1977:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaIsSorted’
leptonica-1.87.0/src/numafunc1.c:1978:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1982:16: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1990:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:1990:8: branch_false: following ‘false’ branch (when ‘index’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1995:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1997:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1998:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1998:40: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2007:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2009:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2010:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2013:17: branch_true: following ‘true’ branch (when ‘i < npts’)...
leptonica-1.87.0/src/numafunc1.c:2014:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2015:12: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2016:13: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2019:12: branch_false: following ‘false’ branch (when ‘excess != 0.0f’)...
leptonica-1.87.0/src/numafunc1.c:2023:31: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2025:12: branch_true: following ‘true’ branch (when ‘type == 1’)...
leptonica-1.87.0/src/numafunc1.c:2026:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2027:13: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2027:13: danger: ‘index’ leaks here; was allocated at [(57)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/56)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1077]
leptonica-1.87.0/src/numafunc1.c:2047:9: warning[-Wanalyzer-malloc-leak]: leak of ‘index’
leptonica-1.87.0/src/numafunc1.c:1934:1: enter_function: entry to ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1949:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1949:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1950:8: branch_false: following ‘false’ branch (when ‘pnady’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1952:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1953:8: branch_false: following ‘false’ branch (when ‘nay’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1955:8: branch_false: following ‘false’ branch (when ‘nax’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1957:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1957:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1959:8: branch_false: following ‘false’ branch (when ‘x0 <= x1’)...
leptonica-1.87.0/src/numafunc1.c:1961:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1963:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1965:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1967:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1971:5: call_function: calling ‘numaGetMin’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1971:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMin’
leptonica-1.87.0/src/numafunc1.c:1972:5: call_function: calling ‘numaGetMax’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1972:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaGetMax’
leptonica-1.87.0/src/numafunc1.c:1973:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1977:5: call_function: calling ‘numaIsSorted’ from ‘numaInterpolateArbxInterval’
leptonica-1.87.0/src/numafunc1.c:1977:5: return_function: returning to ‘numaInterpolateArbxInterval’ from ‘numaIsSorted’
leptonica-1.87.0/src/numafunc1.c:1978:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:1982:16: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1990:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:1990:8: branch_false: following ‘false’ branch (when ‘index’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:1995:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1997:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1998:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:1998:40: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:1996:24: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2007:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2009:8: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2010:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2013:17: branch_true: following ‘true’ branch (when ‘i < npts’)...
leptonica-1.87.0/src/numafunc1.c:2014:21: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2015:12: branch_true: following ‘true’ branch (when ‘pnadx’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2016:13: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2025:12: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/numafunc1.c:2032:12: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2047:9: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2047:9: danger: ‘index’ leaks here; was allocated at [(57)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/56)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1078]
leptonica-1.87.0/src/numafunc1.c:2712:15: warning[-Wanalyzer-malloc-leak]: leak of ‘iarray’
leptonica-1.87.0/src/numafunc1.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2679:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2679:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2682:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2683:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2685:32: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2685:32: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:2685:8: branch_false: following ‘false’ branch (when ‘iarray’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2685:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2689:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2693:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2693:21: branch_false: following ‘false’ branch (when ‘gap <= 0’)...
leptonica-1.87.0/src/numafunc1.c:2712:15: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2712:15: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2712:15: danger: ‘iarray’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1079]
leptonica-1.87.0/src/numafunc1.c:2714:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iarray’
leptonica-1.87.0/src/numafunc1.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2679:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2679:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2682:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2683:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2685:32: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2685:32: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:2685:8: branch_false: following ‘false’ branch (when ‘iarray’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:2685:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2689:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:2690:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2713:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:2714:38: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2714:9: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2714:9: danger: ‘iarray’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1080]
leptonica-1.87.0/src/numafunc1.c:2988:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test’
leptonica-1.87.0/src/numafunc1.c:2979:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2984:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2985:23: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:2987:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:2988:9: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2988:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2988:9: danger: ‘test’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1081]
leptonica-1.87.0/src/numafunc1.c:2993:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test’
leptonica-1.87.0/src/numafunc1.c:2979:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2984:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2985:23: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:2987:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc1.c:2988:9: branch_true: ...to here
leptonica-1.87.0/src/numafunc1.c:2989:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc1.c:2993:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:2993:9: throw: if ‘numaReplaceNumber’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:2993:9: danger: ‘test’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1082]
leptonica-1.87.0/src/numafunc1.c:2994: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: test
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1083]
leptonica-1.87.0/src/numafunc1.c:3174:10: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/numafunc1.c:3161:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc1.c:3161:8: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
leptonica-1.87.0/src/numafunc1.c:3161:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:3163:17: branch_false: following ‘false’ branch (when ‘size <= i’)...
leptonica-1.87.0/src/numafunc1.c:3165:5: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:3166:24: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/numafunc1.c:3174:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc1.c:3174:10: throw: if ‘numaCreateFromIArray’ throws an exception...
leptonica-1.87.0/src/numafunc1.c:3174:10: danger: ‘array’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1084]
leptonica-1.87.0/src/numafunc2.c:216:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:191:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:195:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:200:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:207:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:210:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:212:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:214:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:214:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:216:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:216:10: throw: if ‘numaGetFArray’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:216:10: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1085]
leptonica-1.87.0/src/numafunc2.c:220:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:191:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:195:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:200:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:207:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:210:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:212:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:214:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:214:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:216:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:217:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:220:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:220:11: throw: if ‘numaMakeConstant’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:220:11: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1086]
leptonica-1.87.0/src/numafunc2.c:221:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:191:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:195:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:200:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:207:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:210:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:212:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:214:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:214:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:216:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:217:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:220:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:221:5: throw: if ‘numaCopyParameters’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:221:5: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1087]
leptonica-1.87.0/src/numafunc2.c:222:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:191:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:193:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:195:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:200:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:207:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:210:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:210:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:212:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:214:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:214:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:216:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:217:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:220:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:222:11: throw: if ‘numaGetFArray’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:222:11: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1088]
leptonica-1.87.0/src/numafunc2.c:283:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:258:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:262:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:267:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:274:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:277:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:279:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:281:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:281:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:283:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:283:10: throw: if ‘numaGetFArray’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:283:10: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1089]
leptonica-1.87.0/src/numafunc2.c:287:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:258:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:262:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:267:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:274:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:277:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:279:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:281:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:281:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:283:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:284:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:287:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:287:11: throw: if ‘numaMakeConstant’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:287:11: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1090]
leptonica-1.87.0/src/numafunc2.c:288:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:258:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:262:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:267:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:274:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:277:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:279:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:281:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:281:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:283:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:284:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:287:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:288:5: throw: if ‘numaCopyParameters’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:288:5: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1091]
leptonica-1.87.0/src/numafunc2.c:289:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fas’
leptonica-1.87.0/src/numafunc2.c:258:8: branch_false: following ‘false’ branch (when ‘nas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:260:8: branch_false: following ‘false’ branch (when ‘size > 0’)...
leptonica-1.87.0/src/numafunc2.c:262:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:267:8: branch_false: following ‘false’ branch (when ‘size != 1’)...
leptonica-1.87.0/src/numafunc2.c:274:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:277:29: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: following ‘false’ branch (when ‘fas’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:277:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:279:17: branch_false: following ‘false’ branch (when ‘i >= hsize’)...
leptonica-1.87.0/src/numafunc2.c:281:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:281:25: branch_false: following ‘false’ branch (when ‘i >= len’)...
leptonica-1.87.0/src/numafunc2.c:283:10: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:284:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:287:11: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:289:11: throw: if ‘numaGetFArray’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:289:11: danger: ‘fas’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1092]
leptonica-1.87.0/src/numafunc2.c:458:16: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1093]
leptonica-1.87.0/src/numafunc2.c:459:14: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1094]
leptonica-1.87.0/src/numafunc2.c:460:16: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1095]
leptonica-1.87.0/src/numafunc2.c:464:16: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1096]
leptonica-1.87.0/src/numafunc2.c:466:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1097]
leptonica-1.87.0/src/numafunc2.c:475:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1098]
leptonica-1.87.0/src/numafunc2.c:583:24: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1099]
leptonica-1.87.0/src/numafunc2.c:584:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1100]
leptonica-1.87.0/src/numafunc2.c:587:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1101]
leptonica-1.87.0/src/numafunc2.c:589:11: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1102]
leptonica-1.87.0/src/numafunc2.c:591:11: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1103]
leptonica-1.87.0/src/numafunc2.c:592:11: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1104]
leptonica-1.87.0/src/numafunc2.c:593:11: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1105]
leptonica-1.87.0/src/numafunc2.c:597:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2326:15: call_function: calling ‘numaWindowedMean’ from ‘grayInterHistogramStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1106]
leptonica-1.87.0/src/numafunc2.c:2325:15: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_false: following ‘false’ branch (when ‘pnam’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_false: following ‘false’ branch (when ‘pnav’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2310:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2308:24: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_false: following ‘false’ branch (when ‘pnam’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_false: following ‘false’ branch (when ‘pnav’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/numafunc2.c:2325:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2325:15: throw: if ‘numaaGetNuma’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:2325:15: danger: ‘arrays’ leaks here; was allocated at [(23)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-476): [#def1107]
leptonica-1.87.0/src/numafunc2.c:2328: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arrays
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1108]
leptonica-1.87.0/src/numafunc2.c:2336:15: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_false: following ‘false’ branch (when ‘pnam’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_false: following ‘false’ branch (when ‘pnav’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_false: following ‘false’ branch (when ‘pnam’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_false: following ‘false’ branch (when ‘pnav’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2336:15: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:2336:15: danger: ‘arrays’ leaks here; was allocated at [(21)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/20)
Error: CPPCHECK_WARNING (CWE-476): [#def1109]
leptonica-1.87.0/src/numafunc2.c:2338: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arrays
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1110]
leptonica-1.87.0/src/numafunc2.c:2341:19: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2340:9: return_function: returning to ‘grayInterHistogramStats’ from ‘numaSimpleStats’
leptonica-1.87.0/src/numafunc2.c:2341:12: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2341:19: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2341:19: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:2341:19: danger: ‘arrays’ leaks here; was allocated at [(22)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1111]
leptonica-1.87.0/src/numafunc2.c:2342:20: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2340:9: return_function: returning to ‘grayInterHistogramStats’ from ‘numaSimpleStats’
leptonica-1.87.0/src/numafunc2.c:2341:12: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2341:19: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2342:12: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2342:20: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2342:20: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:2342:20: danger: ‘arrays’ leaks here; was allocated at [(22)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1112]
leptonica-1.87.0/src/numafunc2.c:2343:19: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2340:9: return_function: returning to ‘grayInterHistogramStats’ from ‘numaSimpleStats’
leptonica-1.87.0/src/numafunc2.c:2341:12: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2341:19: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2342:12: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2342:20: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2343:12: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2343:19: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2343:19: throw: if ‘numaAddNumber’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:2343:19: danger: ‘arrays’ leaks here; was allocated at [(22)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1113]
leptonica-1.87.0/src/numafunc2.c:2345:9: warning[-Wanalyzer-malloc-leak]: leak of ‘arrays’
leptonica-1.87.0/src/numafunc2.c:2287:1: enter_function: entry to ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2299:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2299:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2300:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2300:16: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2301:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2301:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2302:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2303:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2303:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2305:8: branch_false: following ‘false’ branch (when ‘naa’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2307:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2316:8: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2316:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2317:8: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2317:25: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2318:8: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2318:23: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2319:8: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2323:28: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2323:28: acquire_memory: allocated here
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2324:17: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2335:17: branch_true: following ‘true’ branch (when ‘j != 256’)...
leptonica-1.87.0/src/numafunc2.c:2336:15: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2337:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/numafunc2.c:2340:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2340:9: call_function: calling ‘numaSimpleStats’ from ‘grayInterHistogramStats’
leptonica-1.87.0/src/numafunc2.c:2340:9: return_function: returning to ‘grayInterHistogramStats’ from ‘numaSimpleStats’
leptonica-1.87.0/src/numafunc2.c:2341:12: branch_true: following ‘true’ branch (when ‘pnam’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2341:19: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2342:12: branch_true: following ‘true’ branch (when ‘pnams’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2342:20: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2343:12: branch_true: following ‘true’ branch (when ‘pnav’ is non-NULL)...
leptonica-1.87.0/src/numafunc2.c:2343:19: branch_true: ...to here
leptonica-1.87.0/src/numafunc2.c:2344:12: branch_false: following ‘false’ branch (when ‘pnarv’ is NULL)...
leptonica-1.87.0/src/numafunc2.c:2345:9: branch_false: ...to here
leptonica-1.87.0/src/numafunc2.c:2345:9: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/numafunc2.c:2345:9: danger: ‘arrays’ leaks here; was allocated at [(22)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/21)
Error: CPPCHECK_WARNING (CWE-476): [#def1114]
leptonica-1.87.0/src/pageseg.c:2617: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lowestfg
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1115]
leptonica-1.87.0/src/pageseg.c:2617:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pageseg.c:2616:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pageseg.c:2617:17: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2617:9: danger: ‘lowestfg + (long unsigned int)i * 4’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1116]
leptonica-1.87.0/src/pageseg.c:2622:12: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2622:12: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2622:12: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1117]
leptonica-1.87.0/src/pageseg.c:2623:12: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2623:12: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2623:12: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1118]
leptonica-1.87.0/src/pageseg.c:2624:26: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2624:26: throw: if ‘pixGetLinePtrs’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2624:26: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1119]
leptonica-1.87.0/src/pageseg.c:2625:26: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2625:26: throw: if ‘pixGetLinePtrs’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2625:26: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1120]
leptonica-1.87.0/src/pageseg.c:2626:13: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2626:13: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2626:13: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1121]
leptonica-1.87.0/src/pageseg.c:2627:12: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2627:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2627:12: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1122]
leptonica-1.87.0/src/pageseg.c:2668:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2629:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pageseg.c:2630:25: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2632:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pageseg.c:2633:19: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2634:16: branch_false: following ‘false’ branch (when ‘polarity != val’)...
leptonica-1.87.0/src/pageseg.c:2668:25: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2668:17: danger: ‘lowestfg + (long unsigned int)j * 4’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1123]
leptonica-1.87.0/src/pageseg.c:2684:11: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_false: following ‘false’ branch (when ‘ppixdb’ is NULL)...
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2684:11: throw: if ‘boxCreate’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2684:11: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1124]
leptonica-1.87.0/src/pageseg.c:2688:19: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_true: following ‘true’ branch (when ‘ppixdb’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2602:17: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2687:8: branch_true: following ‘true’ branch (when ‘ppixdb’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2688:19: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2688:19: throw: if ‘pixConvertTo8’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2688:19: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1125]
leptonica-1.87.0/src/pageseg.c:2689:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lowestfg’
leptonica-1.87.0/src/pageseg.c:2602:8: branch_true: following ‘true’ branch (when ‘ppixdb’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2602:17: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2603:8: branch_false: following ‘false’ branch (when ‘pbox’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2605:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2606:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2608:5: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2609:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2611:9: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2611:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2615:27: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2615:27: acquire_memory: allocated here
leptonica-1.87.0/src/pageseg.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pageseg.c:2622:12: branch_false: ...to here
leptonica-1.87.0/src/pageseg.c:2687:8: branch_true: following ‘true’ branch (when ‘ppixdb’ is non-NULL)...
leptonica-1.87.0/src/pageseg.c:2688:19: branch_true: ...to here
leptonica-1.87.0/src/pageseg.c:2689:9: throw: if ‘pixRenderHashBoxArb’ throws an exception...
leptonica-1.87.0/src/pageseg.c:2689:9: danger: ‘lowestfg’ leaks here; was allocated at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING (CWE-457): [#def1126]
leptonica-1.87.0/src/parseprotos.c:528:23: warning[-Wmaybe-uninitialized]: ‘start’ may be used uninitialized
leptonica-1.87.0/src/parseprotos.c: scope_hint: In function ‘parseForProtos’
leptonica-1.87.0/src/parseprotos.c:154:10: note: ‘start’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def1127]
leptonica-1.87.0/src/parseprotos.c:528:23: warning[-Wmaybe-uninitialized]: ‘stop’ may be used uninitialized
leptonica-1.87.0/src/parseprotos.c: scope_hint: In function ‘parseForProtos’
leptonica-1.87.0/src/parseprotos.c:154:23: note: ‘stop’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def1128]
leptonica-1.87.0/src/parseprotos.c:533:19: warning[-Wmaybe-uninitialized]: ‘charindex’ may be used uninitialized
leptonica-1.87.0/src/parseprotos.c: scope_hint: In function ‘parseForProtos’
leptonica-1.87.0/src/parseprotos.c:154:29: note: ‘charindex’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def1129]
leptonica-1.87.0/src/partify.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixaca
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1130]
leptonica-1.87.0/src/partify.c:147:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/partify.c:146:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:147:15: branch_true: ...to here
leptonica-1.87.0/src/partify.c:147:9: danger: ‘pixaca + (long unsigned int)i * 8’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1131]
leptonica-1.87.0/src/partify.c:147:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:147:15: branch_true: ...to here
leptonica-1.87.0/src/partify.c:147:21: throw: if ‘pixacompCreate’ throws an exception...
leptonica-1.87.0/src/partify.c:147:21: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1132]
leptonica-1.87.0/src/partify.c:151:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:151:11: throw: if ‘bmfCreate’ throws an exception...
leptonica-1.87.0/src/partify.c:151:11: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1133]
leptonica-1.87.0/src/partify.c:153:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:153:21: throw: if ‘pixacompGetPix’ throws an exception...
leptonica-1.87.0/src/partify.c:153:21: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1134]
leptonica-1.87.0/src/partify.c:154:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:153:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:154:13: branch_true: ...to here
leptonica-1.87.0/src/partify.c:154:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:154:13: branch_true: ...to here
leptonica-1.87.0/src/partify.c:154:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/partify.c:154:13: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1135]
leptonica-1.87.0/src/partify.c:159:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:159:15: throw: if ‘pixGetXRes’ throws an exception...
leptonica-1.87.0/src/partify.c:159:15: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1136]
leptonica-1.87.0/src/partify.c:161:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:161:20: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/partify.c:161:20: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1137]
leptonica-1.87.0/src/partify.c:165:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:160:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:164:16: branch_true: following ‘true’ branch (when ‘factor > 3.0e+0’)...
leptonica-1.87.0/src/partify.c:165:17: branch_true: ...to here
leptonica-1.87.0/src/partify.c:165:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:165:17: branch_true: ...to here
leptonica-1.87.0/src/partify.c:165:17: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/partify.c:165:17: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1138]
leptonica-1.87.0/src/partify.c:166:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:160:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:166:20: throw: if ‘pixScale’ throws an exception...
leptonica-1.87.0/src/partify.c:166:20: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1139]
leptonica-1.87.0/src/partify.c:168:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:168:16: throw: if ‘pixConvertTo1Adaptive’ throws an exception...
leptonica-1.87.0/src/partify.c:168:16: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1140]
leptonica-1.87.0/src/partify.c:169:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:169:16: throw: if ‘pixDeskew’ throws an exception...
leptonica-1.87.0/src/partify.c:169:16: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1141]
leptonica-1.87.0/src/partify.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:170:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/partify.c:170:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1142]
leptonica-1.87.0/src/partify.c:171:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:171:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/partify.c:171:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1143]
leptonica-1.87.0/src/partify.c:172:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:172:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/partify.c:172:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1144]
leptonica-1.87.0/src/partify.c:174:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:174:13: branch_true: ...to here
leptonica-1.87.0/src/partify.c:174:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:174:13: branch_true: ...to here
leptonica-1.87.0/src/partify.c:174:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/partify.c:174:13: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1145]
leptonica-1.87.0/src/partify.c:177:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:177:16: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/partify.c:177:16: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1146]
leptonica-1.87.0/src/partify.c:178:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:178:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/partify.c:178:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1147]
leptonica-1.87.0/src/partify.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:147:15: branch_true: ...to here
leptonica-1.87.0/src/partify.c:228:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:229:9: branch_true: ...to here
leptonica-1.87.0/src/partify.c:230:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:230:9: branch_true: ...to here
leptonica-1.87.0/src/partify.c:230:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/partify.c:230:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1148]
leptonica-1.87.0/src/partify.c:231:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:147:15: branch_true: ...to here
leptonica-1.87.0/src/partify.c:228:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:229:9: branch_true: ...to here
leptonica-1.87.0/src/partify.c:231:9: throw: if ‘pixacompConvertToPdf’ throws an exception...
leptonica-1.87.0/src/partify.c:231:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1149]
leptonica-1.87.0/src/partify.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:147:15: branch_true: ...to here
leptonica-1.87.0/src/partify.c:228:17: branch_true: following ‘true’ branch (when ‘nparts > i’)...
leptonica-1.87.0/src/partify.c:229:9: branch_true: ...to here
leptonica-1.87.0/src/partify.c:232:9: throw: if ‘pixacompDestroy’ throws an exception...
leptonica-1.87.0/src/partify.c:232:9: danger: ‘pixaca’ leaks here; was allocated at [(7)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1150]
leptonica-1.87.0/src/partify.c:257:24: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1151]
leptonica-1.87.0/src/partify.c:260:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1152]
leptonica-1.87.0/src/partify.c:261:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1153]
leptonica-1.87.0/src/partify.c:262:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1154]
leptonica-1.87.0/src/partify.c:263:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1155]
leptonica-1.87.0/src/partify.c:265:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1156]
leptonica-1.87.0/src/partify.c:266:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1157]
leptonica-1.87.0/src/partify.c:267:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaca’
leptonica-1.87.0/src/partify.c:121:1: enter_function: entry to ‘partifyPixac’
leptonica-1.87.0/src/partify.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/partify.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:141:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:141:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:145:24: acquire_memory: allocated here
leptonica-1.87.0/src/partify.c:146:17: branch_false: following ‘false’ branch (when ‘nparts <= i’)...
leptonica-1.87.0/src/partify.c:151:11: branch_false: ...to here
leptonica-1.87.0/src/partify.c:152:22: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/partify.c:153:21: branch_true: ...to here
leptonica-1.87.0/src/partify.c:173:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:177:16: branch_false: ...to here
leptonica-1.87.0/src/partify.c:181:17: call_function: calling ‘pixLocateStaveSets’ from ‘partifyPixac’
Error: CPPCHECK_WARNING (CWE-457): [#def1158]
leptonica-1.87.0/src/partify.c:315: warning[uninitvar]: Uninitialized variable: delta
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1159]
leptonica-1.87.0/src/partify.c:315:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘delta’
leptonica-1.87.0/src/partify.c:304:8: branch_false: following ‘false’ branch (when ‘boxa’ is non-NULL)...
leptonica-1.87.0/src/partify.c:306:17: branch_false: ...to here
leptonica-1.87.0/src/partify.c:306:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/partify.c:308:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partify.c:315:5: branch_false: ...to here
leptonica-1.87.0/src/partify.c:315:5: danger: use of uninitialized value ‘delta’ here
Error: COMPILER_WARNING (CWE-457): [#def1160]
leptonica-1.87.0/src/partify.c: scope_hint: In function ‘boxaRemoveVGaps.isra.0’
leptonica-1.87.0/src/partify.c:315:5: warning[-Wmaybe-uninitialized]: ‘delta’ may be used uninitialized
leptonica-1.87.0/src/partify.c:302:35: note: ‘delta’ was declared here
Error: COMPILER_WARNING: [#def1161]
leptonica-1.87.0/src/partition.c: scope_hint: In function ‘boxaGetWhiteblocks’
leptonica-1.87.0/src/partition.c:201:28: warning[-Wunused-but-set-variable=]: variable ‘npush’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1162]
leptonica-1.87.0/src/partition.c:231:20: warning[-Wanalyzer-malloc-leak]: leak of ‘partelCreate(box)’
leptonica-1.87.0/src/partition.c:192:1: enter_function: entry to ‘boxaGetWhiteblocks’
leptonica-1.87.0/src/partition.c:207:8: branch_false: following ‘false’ branch (when ‘boxas’ is non-NULL)...
leptonica-1.87.0/src/partition.c:209:9: branch_false: ...to here
leptonica-1.87.0/src/partition.c:209:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partition.c:214:8: branch_false: ...to here
leptonica-1.87.0/src/partition.c:218:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partition.c:230:14: call_function: calling ‘partelCreate’ from ‘boxaGetWhiteblocks’
leptonica-1.87.0/src/partition.c:230:14: return_function: returning to ‘boxaGetWhiteblocks’ from ‘partelCreate’
leptonica-1.87.0/src/partition.c:231:20: throw: if ‘boxaCopy’ throws an exception...
leptonica-1.87.0/src/partition.c:231:20: danger: ‘partelCreate(box)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: CPPCHECK_WARNING (CWE-476): [#def1163]
leptonica-1.87.0/src/partition.c:319: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: partel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1164]
leptonica-1.87.0/src/partition.c:319:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘partel’
leptonica-1.87.0/src/partition.c:318:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/partition.c:319:5: danger: ‘partel’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1165]
leptonica-1.87.0/src/partition.c:319:19: warning[-Wanalyzer-malloc-leak]: leak of ‘partel’
leptonica-1.87.0/src/partition.c:318:24: acquire_memory: allocated here
leptonica-1.87.0/src/partition.c:319:19: throw: if ‘boxCopy’ throws an exception...
leptonica-1.87.0/src/partition.c:319:19: danger: ‘partel’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1166]
leptonica-1.87.0/src/partition.c:369:20: warning[-Wanalyzer-malloc-leak]: leak of ‘partelCreate(box)’
leptonica-1.87.0/src/partition.c:192:1: enter_function: entry to ‘boxaGetWhiteblocks’
leptonica-1.87.0/src/partition.c:207:8: branch_false: following ‘false’ branch (when ‘boxas’ is non-NULL)...
leptonica-1.87.0/src/partition.c:209:9: branch_false: ...to here
leptonica-1.87.0/src/partition.c:209:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partition.c:214:8: branch_false: ...to here
leptonica-1.87.0/src/partition.c:218:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/partition.c:230:14: call_function: calling ‘partelCreate’ from ‘boxaGetWhiteblocks’
leptonica-1.87.0/src/partition.c:230:14: return_function: returning to ‘boxaGetWhiteblocks’ from ‘partelCreate’
leptonica-1.87.0/src/partition.c:232:5: call_function: calling ‘partelSetSize’ from ‘boxaGetWhiteblocks’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1167]
leptonica-1.87.0/src/pdfio2.c:855:20: warning[-Wanalyzer-malloc-leak]: leak of ‘datacomp’
leptonica-1.87.0/src/pdfio2.c:747:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:750:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:756:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:45: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:785:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:788:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:793:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:797:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:807:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:807:32: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: following ‘false’ branch (when ‘datacomp’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:839:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:845:13: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:845:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:847:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:855:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:855:20: throw: if ‘pixcmapCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:855:20: danger: ‘datacomp’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1168]
leptonica-1.87.0/src/pdfio2.c:857:17: warning[-Wanalyzer-malloc-leak]: leak of ‘datacomp’
leptonica-1.87.0/src/pdfio2.c:747:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:750:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:756:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:45: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:785:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:788:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:793:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:797:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:807:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:807:32: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: following ‘false’ branch (when ‘datacomp’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:839:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:845:13: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:845:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:847:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:855:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:856:25: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:858:41: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:857:17: throw: if ‘pixcmapAddColor’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:857:17: danger: ‘datacomp’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1169]
leptonica-1.87.0/src/pdfio2.c:874:9: warning[-Wanalyzer-malloc-leak]: leak of ‘datacomp’
leptonica-1.87.0/src/pdfio2.c:747:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:750:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:756:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:45: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:785:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:788:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:793:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:797:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:807:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:807:32: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: following ‘false’ branch (when ‘datacomp’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:839:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:845:13: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:845:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:847:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:855:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:856:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:861:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:865:8: branch_false: following ‘false’ branch (when ‘nbytescomp != 0’)...
leptonica-1.87.0/src/pdfio2.c:872:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:873:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:874:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:874:9: throw: if ‘pixcmapSerializeToMemory’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:874:9: danger: ‘datacomp’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1170]
leptonica-1.87.0/src/pdfio2.c:875:9: warning[-Wanalyzer-malloc-leak]: leak of ‘datacomp’
leptonica-1.87.0/src/pdfio2.c:747:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:750:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:756:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:45: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:785:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:788:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:793:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:797:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:807:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:807:32: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: following ‘false’ branch (when ‘datacomp’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:839:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:845:13: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:845:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:847:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:855:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:856:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:861:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:865:8: branch_false: following ‘false’ branch (when ‘nbytescomp != 0’)...
leptonica-1.87.0/src/pdfio2.c:872:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:873:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:874:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:875:9: throw: if ‘pixcmapDestroy’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:875:9: danger: ‘datacomp’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1171]
leptonica-1.87.0/src/pdfio2.c:881:23: warning[-Wanalyzer-malloc-leak]: leak of ‘datacomp’
leptonica-1.87.0/src/pdfio2.c:747:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:750:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:756:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:45: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:785:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:788:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:793:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:797:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:807:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:807:32: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: following ‘false’ branch (when ‘datacomp’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:839:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:845:13: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:845:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:847:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:855:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:856:25: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:861:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:865:8: branch_false: following ‘false’ branch (when ‘nbytescomp != 0’)...
leptonica-1.87.0/src/pdfio2.c:872:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:873:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:874:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:876:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:881:23: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:881:23: throw: if ‘pixcmapConvertToHex’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:881:23: danger: ‘datacomp’ leaks here; was allocated at [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def1172]
leptonica-1.87.0/src/pdfio2.c:893: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1173]
leptonica-1.87.0/src/pdfio2.c:893:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:747:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:750:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:756:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:768:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:769:45: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:769:31: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:785:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:788:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:793:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:797:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:797:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:807:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: following ‘false’ branch (when ‘datacomp’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:807:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:825:22: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:829:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:839:32: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:839:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:840:43: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:823:18: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:863:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:865:8: branch_false: following ‘false’ branch (when ‘nbytescomp != 0’)...
leptonica-1.87.0/src/pdfio2.c:872:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:873:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:892:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:892:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:893:5: danger: ‘cid’ could be NULL: unchecked value from [(31)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/30)
Error: CPPCHECK_WARNING (CWE-476): [#def1174]
leptonica-1.87.0/src/pdfio2.c:894: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1175]
leptonica-1.87.0/src/pdfio2.c:895: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1176]
leptonica-1.87.0/src/pdfio2.c:896: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1177]
leptonica-1.87.0/src/pdfio2.c:897: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1178]
leptonica-1.87.0/src/pdfio2.c:898: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1179]
leptonica-1.87.0/src/pdfio2.c:899: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1180]
leptonica-1.87.0/src/pdfio2.c:900: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1181]
leptonica-1.87.0/src/pdfio2.c:901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1182]
leptonica-1.87.0/src/pdfio2.c:902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1183]
leptonica-1.87.0/src/pdfio2.c:903: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1184]
leptonica-1.87.0/src/pdfio2.c:970: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1185]
leptonica-1.87.0/src/pdfio2.c:970:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:935:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:938:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:942:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:945:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:945:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:948:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:953:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:958:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:958:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:968:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:968:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:969:8: branch_true: following ‘true’ branch (when ‘ascii85flag == 0’)...
leptonica-1.87.0/src/pdfio2.c:970:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:970:9: danger: ‘cid’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1186]
leptonica-1.87.0/src/pdfio2.c:972: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1187]
leptonica-1.87.0/src/pdfio2.c:972:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:935:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:938:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:942:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:945:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:945:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:948:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:953:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:958:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:958:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:968:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:968:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:969:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:972:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:972:9: danger: ‘cid’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1188]
leptonica-1.87.0/src/pdfio2.c:973: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1189]
leptonica-1.87.0/src/pdfio2.c:973:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nbytes85’
leptonica-1.87.0/src/pdfio2.c:935:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:938:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:942:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:945:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:945:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:948:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:953:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:958:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:958:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:968:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:969:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:972:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:973:9: danger: use of uninitialized value ‘nbytes85’ here
Error: CPPCHECK_WARNING (CWE-476): [#def1190]
leptonica-1.87.0/src/pdfio2.c:975: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1191]
leptonica-1.87.0/src/pdfio2.c:976: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1192]
leptonica-1.87.0/src/pdfio2.c:977: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1193]
leptonica-1.87.0/src/pdfio2.c:978: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1194]
leptonica-1.87.0/src/pdfio2.c:979: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1195]
leptonica-1.87.0/src/pdfio2.c:980: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1196]
leptonica-1.87.0/src/pdfio2.c:981: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1197]
leptonica-1.87.0/src/pdfio2.c:1034: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1198]
leptonica-1.87.0/src/pdfio2.c:1034:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1011:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1015:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1015:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1023:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1032:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1032:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1033:8: branch_true: following ‘true’ branch (when ‘ascii85flag == 0’)...
leptonica-1.87.0/src/pdfio2.c:1034:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1034:9: danger: ‘cid’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1199]
leptonica-1.87.0/src/pdfio2.c:1036: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1200]
leptonica-1.87.0/src/pdfio2.c:1036:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1011:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1015:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1015:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1023:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1032:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1032:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1033:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:1036:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1036:9: danger: ‘cid’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1201]
leptonica-1.87.0/src/pdfio2.c:1037: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1202]
leptonica-1.87.0/src/pdfio2.c:1037:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nbytes85’
leptonica-1.87.0/src/pdfio2.c:1011:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1015:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1015:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1020:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1023:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1032:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1033:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:1036:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1037:9: danger: use of uninitialized value ‘nbytes85’ here
Error: CPPCHECK_WARNING (CWE-476): [#def1203]
leptonica-1.87.0/src/pdfio2.c:1039: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1204]
leptonica-1.87.0/src/pdfio2.c:1040: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1205]
leptonica-1.87.0/src/pdfio2.c:1041: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1206]
leptonica-1.87.0/src/pdfio2.c:1042: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1207]
leptonica-1.87.0/src/pdfio2.c:1043: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1208]
leptonica-1.87.0/src/pdfio2.c:1044: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1209]
leptonica-1.87.0/src/pdfio2.c:1045: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1210]
leptonica-1.87.0/src/pdfio2.c:1077: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1211]
leptonica-1.87.0/src/pdfio2.c:1077:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1072:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1076:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1076:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1077:9: danger: ‘calloc(1, 104)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1212]
leptonica-1.87.0/src/pdfio2.c:1077:26: warning[-Wanalyzer-malloc-leak]: leak of ‘cid’
leptonica-1.87.0/src/pdfio2.c:1072:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1076:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1076:26: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1077:26: throw: if ‘l_binaryRead’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1077:26: danger: ‘cid’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1213]
leptonica-1.87.0/src/pdfio2.c:1083:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cid’
leptonica-1.87.0/src/pdfio2.c:1072:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1076:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1076:26: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1077:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1082:12: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1083:15: throw: if ‘fopenReadStream’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1083:15: danger: ‘cid’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1214]
leptonica-1.87.0/src/pdfio2.c:1084:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cid’
leptonica-1.87.0/src/pdfio2.c:1072:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1076:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1076:26: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1077:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1082:12: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1083:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:1084:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1084:9: throw: if ‘fgetJp2kResolution’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1084:9: danger: ‘cid’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1215]
leptonica-1.87.0/src/pdfio2.c:1168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1216]
leptonica-1.87.0/src/pdfio2.c:1168:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1125:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1129:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1129:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1132:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1134:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1140:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1143:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1149:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1156:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1156:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1166:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1166:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1167:8: branch_true: following ‘true’ branch (when ‘ascii85flag == 0’)...
leptonica-1.87.0/src/pdfio2.c:1168:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1168:9: danger: ‘cid’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1217]
leptonica-1.87.0/src/pdfio2.c:1170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1218]
leptonica-1.87.0/src/pdfio2.c:1170:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1125:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1129:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1129:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1132:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1134:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1140:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1143:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1149:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1156:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1156:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1166:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1166:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1167:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:1170:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1170:9: danger: ‘cid’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1219]
leptonica-1.87.0/src/pdfio2.c:1171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1220]
leptonica-1.87.0/src/pdfio2.c:1171:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nbytes85’
leptonica-1.87.0/src/pdfio2.c:1125:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1129:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1129:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1132:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1134:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1140:15: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1143:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1149:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1156:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1156:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1166:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1167:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:1170:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1171:9: danger: use of uninitialized value ‘nbytes85’ here
Error: CPPCHECK_WARNING (CWE-476): [#def1221]
leptonica-1.87.0/src/pdfio2.c:1173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1222]
leptonica-1.87.0/src/pdfio2.c:1174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1223]
leptonica-1.87.0/src/pdfio2.c:1175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1224]
leptonica-1.87.0/src/pdfio2.c:1176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1225]
leptonica-1.87.0/src/pdfio2.c:1177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1226]
leptonica-1.87.0/src/pdfio2.c:1178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1227]
leptonica-1.87.0/src/pdfio2.c:1179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1228]
leptonica-1.87.0/src/pdfio2.c:1180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1229]
leptonica-1.87.0/src/pdfio2.c:1434: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1230]
leptonica-1.87.0/src/pdfio2.c:1434:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1363:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1371:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1383:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1385:11: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1390:8: branch_false: following ‘false’ branch (when ‘cmap’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:1404:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1406:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1411:16: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1413:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1420:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1420:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1432:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1432:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1433:8: branch_true: following ‘true’ branch (when ‘ascii85flag == 0’)...
leptonica-1.87.0/src/pdfio2.c:1434:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1434:9: danger: ‘cid’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1231]
leptonica-1.87.0/src/pdfio2.c:1436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1232]
leptonica-1.87.0/src/pdfio2.c:1436:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cid’
leptonica-1.87.0/src/pdfio2.c:1363:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1371:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1383:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1385:11: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1390:8: branch_false: following ‘false’ branch (when ‘cmap’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:1404:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1406:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1411:16: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1413:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1420:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1420:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1432:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1432:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:1433:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 0’)...
leptonica-1.87.0/src/pdfio2.c:1436:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1436:9: danger: ‘cid’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1233]
leptonica-1.87.0/src/pdfio2.c:1437: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1234]
leptonica-1.87.0/src/pdfio2.c:1439: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1235]
leptonica-1.87.0/src/pdfio2.c:1440: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1236]
leptonica-1.87.0/src/pdfio2.c:1441: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1237]
leptonica-1.87.0/src/pdfio2.c:1442: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1238]
leptonica-1.87.0/src/pdfio2.c:1443: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1239]
leptonica-1.87.0/src/pdfio2.c:1444: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1240]
leptonica-1.87.0/src/pdfio2.c:1445: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1241]
leptonica-1.87.0/src/pdfio2.c:1446: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1242]
leptonica-1.87.0/src/pdfio2.c:1447: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: CPPCHECK_WARNING (CWE-476): [#def1243]
leptonica-1.87.0/src/pdfio2.c:1448: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1244]
leptonica-1.87.0/src/pdfio2.c:1448:16: warning[-Wanalyzer-malloc-leak]: leak of ‘cid’
leptonica-1.87.0/src/pdfio2.c:1363:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1371:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1383:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1385:11: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1390:8: branch_false: following ‘false’ branch (when ‘cmap’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:1404:5: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1406:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1411:16: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1413:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1420:8: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1420:8: branch_false: following ‘false’ branch (when ‘ascii85flag != 1’)...
leptonica-1.87.0/src/pdfio2.c:1432:26: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1432:26: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1433:8: branch_true: following ‘true’ branch (when ‘ascii85flag == 0’)...
leptonica-1.87.0/src/pdfio2.c:1434:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1448:16: throw: if ‘pixGetXRes’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1448:16: danger: ‘cid’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1245]
leptonica-1.87.0/src/pdfio2.c:1449: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cid
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1246]
leptonica-1.87.0/src/pdfio2.c:1825:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/pdfio2.c:1815:8: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1817:13: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1824:22: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1825:5: throw: if ‘stringCat’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1825:5: danger: ‘buffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1247]
leptonica-1.87.0/src/pdfio2.c:1881:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1878:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1878:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1881:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1881:5: throw: if ‘boxGetGeometry’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1881:5: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1248]
leptonica-1.87.0/src/pdfio2.c:1882:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1878:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1878:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1881:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1882:10: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1882:10: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1249]
leptonica-1.87.0/src/pdfio2.c:1887:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1878:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1878:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1881:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1883:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1887:12: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1887:12: throw: if ‘sarrayToString’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1887:12: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1250]
leptonica-1.87.0/src/pdfio2.c:1888:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1878:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1878:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1881:20: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1883:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1887:12: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1888:5: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1888:5: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1251]
leptonica-1.87.0/src/pdfio2.c:1931:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1928:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1928:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1931:10: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1931:10: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1931:10: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1252]
leptonica-1.87.0/src/pdfio2.c:1933:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1928:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1928:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1931:10: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1932:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:1933:18: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1933:9: throw: if ‘ptaGetPt’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1933:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1253]
leptonica-1.87.0/src/pdfio2.c:1934:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1928:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1928:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1931:10: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1932:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:1933:18: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:1934:9: throw: if ‘ptaGetPt’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1934:9: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1254]
leptonica-1.87.0/src/pdfio2.c:1940:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1928:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1928:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1931:10: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1932:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1940:12: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1940:12: throw: if ‘sarrayToString’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1940:12: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1255]
leptonica-1.87.0/src/pdfio2.c:1941:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:1928:24: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:1928:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:1931:10: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1932:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:1940:12: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:1941:5: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:1941:5: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1256]
leptonica-1.87.0/src/pdfio2.c:2410:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:2404:8: branch_false: following ‘false’ branch (when ‘napage’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:2407:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2409:19: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2410:10: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2410:10: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1257]
leptonica-1.87.0/src/pdfio2.c:2412:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:2404:8: branch_false: following ‘false’ branch (when ‘napage’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:2407:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2409:19: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2411:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pdfio2.c:2412:9: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:2412:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2412:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1258]
leptonica-1.87.0/src/pdfio2.c:2417:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
leptonica-1.87.0/src/pdfio2.c:2404:8: branch_false: following ‘false’ branch (when ‘napage’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:2407:9: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2409:19: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2411:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pdfio2.c:2417:11: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2417:11: throw: if ‘sarrayToString’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2417:11: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1259]
leptonica-1.87.0/src/pdfio2.c:2534: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1260]
leptonica-1.87.0/src/pdfio2.c:2534:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_true: following ‘true’ branch (when ‘title’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:2534:29: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:2534:16: danger: ‘lpd’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1261]
leptonica-1.87.0/src/pdfio2.c:2534:29: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_true: following ‘true’ branch (when ‘title’ is non-NULL)...
leptonica-1.87.0/src/pdfio2.c:2534:29: branch_true: ...to here
leptonica-1.87.0/src/pdfio2.c:2534:29: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2534:29: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1262]
leptonica-1.87.0/src/pdfio2.c:2535: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1263]
leptonica-1.87.0/src/pdfio2.c:2535:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2535:5: danger: ‘lpd’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1264]
leptonica-1.87.0/src/pdfio2.c:2535:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2535:17: throw: if ‘ptraCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2535:17: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1265]
leptonica-1.87.0/src/pdfio2.c:2536: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1266]
leptonica-1.87.0/src/pdfio2.c:2536:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2536:15: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2536:15: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1267]
leptonica-1.87.0/src/pdfio2.c:2537: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1268]
leptonica-1.87.0/src/pdfio2.c:2537:15: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2537:15: throw: if ‘ptaCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2537:15: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1269]
leptonica-1.87.0/src/pdfio2.c:2538: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1270]
leptonica-1.87.0/src/pdfio2.c:2538:19: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2538:19: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2538:19: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1271]
leptonica-1.87.0/src/pdfio2.c:2539: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1272]
leptonica-1.87.0/src/pdfio2.c:2539:19: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2539:19: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2539:19: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1273]
leptonica-1.87.0/src/pdfio2.c:2540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1274]
leptonica-1.87.0/src/pdfio2.c:2540:20: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2540:20: throw: if ‘l_dnaCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2540:20: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1275]
leptonica-1.87.0/src/pdfio2.c:2541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lpd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1276]
leptonica-1.87.0/src/pdfio2.c:2541:19: warning[-Wanalyzer-malloc-leak]: leak of ‘lpd’
leptonica-1.87.0/src/pdfio2.c:2533:25: acquire_memory: allocated here
leptonica-1.87.0/src/pdfio2.c:2534:8: branch_false: following ‘false’ branch (when ‘title’ is NULL)...
leptonica-1.87.0/src/pdfio2.c:2535:17: branch_false: ...to here
leptonica-1.87.0/src/pdfio2.c:2541:19: throw: if ‘l_dnaCreate’ throws an exception...
leptonica-1.87.0/src/pdfio2.c:2541:19: danger: ‘lpd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1277]
leptonica-1.87.0/src/pix1.c:1060:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixd’
leptonica-1.87.0/src/pix1.c:495:1: enter_function: entry to ‘pixCreateHeader’
leptonica-1.87.0/src/pix1.c:507:8: branch_false: following ‘false’ branch (when ‘width > 0’)...
leptonica-1.87.0/src/pix1.c:509:8: branch_false: ...to here
leptonica-1.87.0/src/pix1.c:509:8: branch_false: following ‘false’ branch (when ‘height > 0’)...
leptonica-1.87.0/src/pix1.c:513:14: branch_false: ...to here
leptonica-1.87.0/src/pix1.c:514:8: branch_false: following ‘false’ branch (when ‘wpl64 <= 16777215’)...
leptonica-1.87.0/src/pix1.c:519:5: branch_false: ...to here
leptonica-1.87.0/src/pix1.c:521:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix1.c:542:24: branch_false: ...to here
leptonica-1.87.0/src/pix1.c:542:24: acquire_memory: allocated here
leptonica-1.87.0/src/pix1.c:542:8: branch_false: following ‘false’ branch (when ‘pixd’ is non-NULL)...
leptonica-1.87.0/src/pix1.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/pix1.c:544:5: call_function: calling ‘pixSetWidth’ from ‘pixCreateHeader’
leptonica-1.87.0/src/pix1.c:544:5: return_function: returning to ‘pixCreateHeader’ from ‘pixSetWidth’
leptonica-1.87.0/src/pix1.c:545:5: call_function: calling ‘pixSetHeight’ from ‘pixCreateHeader’
leptonica-1.87.0/src/pix1.c:545:5: return_function: returning to ‘pixCreateHeader’ from ‘pixSetHeight’
leptonica-1.87.0/src/pix1.c:546:5: call_function: calling ‘pixSetDepth’ from ‘pixCreateHeader’
Error: CPPCHECK_WARNING (CWE-476): [#def1278]
leptonica-1.87.0/src/pix3.c:2363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1279]
leptonica-1.87.0/src/pix3.c:2363:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/pix3.c:2360:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pix3.c:2361:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix3.c:2362:9: branch_true: ...to here
leptonica-1.87.0/src/pix3.c:2363:9: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1280]
leptonica-1.87.0/src/pix3.c:2400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1281]
leptonica-1.87.0/src/pix3.c:2401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1282]
leptonica-1.87.0/src/pix3.c:2401:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/pix3.c:2399:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pix3.c:2401:5: danger: ‘tab’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1283]
leptonica-1.87.0/src/pix3.c:2403: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1284]
leptonica-1.87.0/src/pix3.c:2406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1285]
leptonica-1.87.0/src/pix3.c:2409: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1286]
leptonica-1.87.0/src/pix3.c:2412: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1287]
leptonica-1.87.0/src/pix4.c:1748:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘meansq’
leptonica-1.87.0/src/pix4.c:1695:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:1697:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1700:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1702:10: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1704:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1706:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1717:17: branch_true: following ‘true’ branch (when ‘i < hd’)...
leptonica-1.87.0/src/pix4.c:1718:25: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:1721:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1733:17: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1733:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1745:16: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1745:16: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/pix4.c:1747:21: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1747:21: branch_true: following ‘true’ branch (when ‘type == 5’)...
leptonica-1.87.0/src/pix4.c:1748:34: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:1748:34: danger: use of uninitialized value ‘meansq’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1288]
leptonica-1.87.0/src/pix4.c:1750:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ave’
leptonica-1.87.0/src/pix4.c:1695:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:1697:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1700:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1702:10: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1704:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1706:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1717:17: branch_true: following ‘true’ branch (when ‘i < hd’)...
leptonica-1.87.0/src/pix4.c:1718:25: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:1721:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1733:17: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1733:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:1745:16: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1745:16: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/pix4.c:1747:21: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1747:21: branch_false: following ‘false’ branch (when ‘type != 5’)...
leptonica-1.87.0/src/pix4.c:1750:48: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:1750:48: danger: use of uninitialized value ‘ave’ here
Error: COMPILER_WARNING (CWE-457): [#def1289]
leptonica-1.87.0/src/pix4.c: scope_hint: In function ‘pixGetAverageTiled’
leptonica-1.87.0/src/pix4.c:1750:52: warning[-Wmaybe-uninitialized]: ‘ave’ may be used uninitialized
leptonica-1.87.0/src/pix4.c:1692:27: note: ‘ave’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def1290]
leptonica-1.87.0/src/pix4.c:1839: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: famean
Error: CPPCHECK_WARNING (CWE-476): [#def1291]
leptonica-1.87.0/src/pix4.c:1840: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fameansq
Error: CPPCHECK_WARNING (CWE-476): [#def1292]
leptonica-1.87.0/src/pix4.c:1877: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: histo
Error: CPPCHECK_WARNING (CWE-476): [#def1293]
leptonica-1.87.0/src/pix4.c:1996: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: famean
Error: CPPCHECK_WARNING (CWE-476): [#def1294]
leptonica-1.87.0/src/pix4.c:1997: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fameansq
Error: CPPCHECK_WARNING (CWE-476): [#def1295]
leptonica-1.87.0/src/pix4.c:2033: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: histo
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1296]
leptonica-1.87.0/src/pix4.c:2235:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pgrayval’
leptonica-1.87.0/src/pix4.c:2089:1: enter_function: entry to ‘pixGetRangeValues’
leptonica-1.87.0/src/pix4.c:2100:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2102:8: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2102:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:2105:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2106:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2110:8: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2110:8: branch_false: following ‘false’ branch (when ‘factor > 0’)...
leptonica-1.87.0/src/pix4.c:2112:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2113:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2116:8: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2116:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2121:15: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2121:15: branch_true: following ‘true’ branch (when ‘color == 1’)...
leptonica-1.87.0/src/pix4.c:2122:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2122:9: call_function: calling ‘pixGetExtremeValue’ from ‘pixGetRangeValues’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1297]
leptonica-1.87.0/src/pix4.c:2736:5: warning[-Wanalyzer-malloc-leak]: leak of ‘carray’
leptonica-1.87.0/src/pix4.c:2661:8: branch_false: following ‘false’ branch (when ‘pcarray’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:2663:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2664:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2666:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2676:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2679:8: branch_false: following ‘false’ branch (when ‘avepts > 4’)...
leptonica-1.87.0/src/pix4.c:2692:13: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2725:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2732:26: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2732:26: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:2736:5: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/pix4.c:2736:5: danger: ‘carray’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1298]
leptonica-1.87.0/src/pix4.c:2738:17: warning[-Wanalyzer-malloc-leak]: leak of ‘carray’
leptonica-1.87.0/src/pix4.c:2661:8: branch_false: following ‘false’ branch (when ‘pcarray’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:2663:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2664:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2666:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2676:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2679:8: branch_false: following ‘false’ branch (when ‘avepts > 4’)...
leptonica-1.87.0/src/pix4.c:2692:13: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2725:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2732:26: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2732:26: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:2737:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix4.c:2738:17: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2738:17: throw: if ‘l_dnaaGetDnaCount’ throws an exception...
leptonica-1.87.0/src/pix4.c:2738:17: danger: ‘carray’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1299]
leptonica-1.87.0/src/pix4.c:2741:13: warning[-Wanalyzer-malloc-leak]: leak of ‘carray’
leptonica-1.87.0/src/pix4.c:2661:8: branch_false: following ‘false’ branch (when ‘pcarray’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:2663:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2664:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2666:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2676:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2679:8: branch_false: following ‘false’ branch (when ‘avepts > 4’)...
leptonica-1.87.0/src/pix4.c:2692:13: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2725:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2732:26: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2732:26: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:2737:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix4.c:2738:17: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2739:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:2740:13: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2741:13: throw: if ‘l_dnaaGetValue’ throws an exception...
leptonica-1.87.0/src/pix4.c:2741:13: danger: ‘carray’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1300]
leptonica-1.87.0/src/pix4.c:2742:13: warning[-Wanalyzer-malloc-leak]: leak of ‘carray’
leptonica-1.87.0/src/pix4.c:2661:8: branch_false: following ‘false’ branch (when ‘pcarray’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:2663:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2664:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2666:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2676:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2679:8: branch_false: following ‘false’ branch (when ‘avepts > 4’)...
leptonica-1.87.0/src/pix4.c:2692:13: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2725:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2732:26: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2732:26: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:2737:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix4.c:2738:17: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2739:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:2740:13: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2742:13: throw: if ‘extractRGBValues’ throws an exception...
leptonica-1.87.0/src/pix4.c:2742:13: danger: ‘carray’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1301]
leptonica-1.87.0/src/pix4.c:2750:17: warning[-Wanalyzer-malloc-leak]: leak of ‘carray’
leptonica-1.87.0/src/pix4.c:2661:8: branch_false: following ‘false’ branch (when ‘pcarray’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:2663:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2664:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2666:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2672:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2676:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2679:8: branch_false: following ‘false’ branch (when ‘avepts > 4’)...
leptonica-1.87.0/src/pix4.c:2692:13: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2725:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:2732:26: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:2732:26: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:2737:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix4.c:2738:17: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2739:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:2740:13: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2746:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:2747:34: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:2750:17: throw: if ‘composeRGBPixel’ throws an exception...
leptonica-1.87.0/src/pix4.c:2750:17: danger: ‘carray’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1302]
leptonica-1.87.0/src/pix4.c:3047:18: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1303]
leptonica-1.87.0/src/pix4.c:3048:16: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1304]
leptonica-1.87.0/src/pix4.c:3049:9: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1305]
leptonica-1.87.0/src/pix4.c:3050:5: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1306]
leptonica-1.87.0/src/pix4.c:3052:16: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1307]
leptonica-1.87.0/src/pix4.c:3053:12: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1308]
leptonica-1.87.0/src/pix4.c:3054:12: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1309]
leptonica-1.87.0/src/pix4.c:3055:5: warning[-Wanalyzer-malloc-leak]: leak of ‘colvect’
leptonica-1.87.0/src/pix4.c:2992:1: enter_function: entry to ‘pixaGetAlignedStats’
leptonica-1.87.0/src/pix4.c:3001:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3003:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3003:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3006:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3009:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3010:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3013:12: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3015:28: acquire_memory: allocated here
leptonica-1.87.0/src/pix4.c:3016:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pix4.c:3017:9: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3017:9: call_function: calling ‘pixaExtractColumnFromEachPix’ from ‘pixaGetAlignedStats’
Error: CPPCHECK_WARNING (CWE-476): [#def1310]
leptonica-1.87.0/src/pix4.c:3149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gray2bin
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1311]
leptonica-1.87.0/src/pix4.c:3149:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gray2bin’
leptonica-1.87.0/src/pix4.c:3122:8: branch_false: following ‘false’ branch (when ‘colvect’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3124:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3124:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3127:8: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3127:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3129:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3133:8: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/pix4.c:3145:24: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3146:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pix4.c:3148:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix4.c:3149:23: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3149:9: danger: ‘gray2bin + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def1312]
leptonica-1.87.0/src/pix4.c:3151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bin2gray
Error: CPPCHECK_WARNING (CWE-476): [#def1313]
leptonica-1.87.0/src/pix4.c:3156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: histo
Error: CPPCHECK_WARNING (CWE-476): [#def1314]
leptonica-1.87.0/src/pix4.c:3268: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gray2bin
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1315]
leptonica-1.87.0/src/pix4.c:3268:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gray2bin’
leptonica-1.87.0/src/pix4.c:3240:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3242:8: branch_false: following ‘false’ branch (when ‘rowvect’ is non-NULL)...
leptonica-1.87.0/src/pix4.c:3244:9: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3244:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3247:8: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3247:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pix4.c:3249:5: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3253:8: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/pix4.c:3264:24: branch_false: ...to here
leptonica-1.87.0/src/pix4.c:3265:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pix4.c:3267:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/pix4.c:3268:23: branch_true: ...to here
leptonica-1.87.0/src/pix4.c:3268:9: danger: ‘gray2bin + (long unsigned int)i * 4’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def1316]
leptonica-1.87.0/src/pix4.c:3270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bin2gray
Error: CPPCHECK_WARNING (CWE-476): [#def1317]
leptonica-1.87.0/src/pix4.c:3275: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: gray2bin
Error: CPPCHECK_WARNING (CWE-476): [#def1318]
leptonica-1.87.0/src/pix4.c:3275: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: histo
Error: CPPCHECK_WARNING (CWE-476): [#def1319]
leptonica-1.87.0/src/pixabasic.c:175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1320]
leptonica-1.87.0/src/pixabasic.c:175:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixa’
leptonica-1.87.0/src/pixabasic.c:2522:1: enter_function: entry to ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2537:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2539:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2539:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2541:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2541:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2543:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2543:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2545:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2547:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2551:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2551:17: call_function: calling ‘pixaCreate’ from ‘pixaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def1321]
leptonica-1.87.0/src/pixabasic.c:176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixa
Error: CPPCHECK_WARNING (CWE-476): [#def1322]
leptonica-1.87.0/src/pixabasic.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixa
Error: CPPCHECK_WARNING (CWE-476): [#def1323]
leptonica-1.87.0/src/pixabasic.c:178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixa
Error: CPPCHECK_WARNING (CWE-476): [#def1324]
leptonica-1.87.0/src/pixabasic.c:179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1325]
leptonica-1.87.0/src/pixabasic.c:179:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2522:1: enter_function: entry to ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2537:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2539:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2539:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2541:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2541:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2543:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2543:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2545:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2547:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2551:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2551:17: call_function: calling ‘pixaCreate’ from ‘pixaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1326]
leptonica-1.87.0/src/pixabasic.c:179:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pixa’
leptonica-1.87.0/src/pixabasic.c:2522:1: enter_function: entry to ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2537:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2539:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2539:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2541:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2541:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2543:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2543:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2545:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2547:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2551:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2551:17: call_function: calling ‘pixaCreate’ from ‘pixaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def1327]
leptonica-1.87.0/src/pixabasic.c:180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1328]
leptonica-1.87.0/src/pixabasic.c:422:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixa’
leptonica-1.87.0/src/pixabasic.c:2522:1: enter_function: entry to ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2537:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2539:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2539:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2541:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2541:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2543:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2543:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2545:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2547:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2551:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2551:17: call_function: calling ‘pixaCreate’ from ‘pixaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1329]
leptonica-1.87.0/src/pixabasic.c:1762:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaaCreate(sarrayGetCount(getSortedPathnamesInDirectory(dirname, substr, first, nfiles)))’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2858:9: return_function: returning to ‘pixaaReadFromFiles’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2859:15: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2868:3: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2868:3: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:1762:9: danger: ‘pixaaCreate(sarrayGetCount(getSortedPathnamesInDirectory(dirname, substr, first, nfiles)))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def1330]
leptonica-1.87.0/src/pixabasic.c:1766: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: paa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1331]
leptonica-1.87.0/src/pixabasic.c:1766:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘paa’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
Error: CPPCHECK_WARNING (CWE-476): [#def1332]
leptonica-1.87.0/src/pixabasic.c:1767: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: paa
Error: CPPCHECK_WARNING (CWE-476): [#def1333]
leptonica-1.87.0/src/pixabasic.c:1768: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: paa
Error: CPPCHECK_WARNING (CWE-476): [#def1334]
leptonica-1.87.0/src/pixabasic.c:1772: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: paa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1335]
leptonica-1.87.0/src/pixabasic.c:1772:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1336]
leptonica-1.87.0/src/pixabasic.c:1772:17: warning[-Wanalyzer-malloc-leak]: leak of ‘paa’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1337]
leptonica-1.87.0/src/pixabasic.c:1875:5: warning[-Wanalyzer-malloc-leak]: leak of ‘paa’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1338]
leptonica-1.87.0/src/pixabasic.c:2555:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2522:1: enter_function: entry to ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2537:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2539:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2539:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2541:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2541:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2543:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2543:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2545:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2547:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2551:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2551:17: call_function: calling ‘pixaCreate’ from ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2551:17: return_function: returning to ‘pixaReadStream’ from ‘pixaCreate’
leptonica-1.87.0/src/pixabasic.c:2551:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2555:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2555:5: throw: if ‘boxaDestroy’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2555:5: danger: ‘<unknown>’ leaks here; was allocated at [(16)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1339]
leptonica-1.87.0/src/pixabasic.c:2555:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixa’
leptonica-1.87.0/src/pixabasic.c:2522:1: enter_function: entry to ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2537:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2539:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2539:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2541:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2541:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2543:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2543:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2545:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2547:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2549:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2551:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2551:17: call_function: calling ‘pixaCreate’ from ‘pixaReadStream’
leptonica-1.87.0/src/pixabasic.c:2551:17: return_function: returning to ‘pixaReadStream’ from ‘pixaCreate’
leptonica-1.87.0/src/pixabasic.c:2551:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2555:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2555:5: throw: if ‘boxaDestroy’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2555:5: danger: ‘pixa’ leaks here; was allocated at [(16)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1340]
leptonica-1.87.0/src/pixabasic.c:2702:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pixabasic.c:2729:1: enter_function: entry to ‘pixaWriteMem’
leptonica-1.87.0/src/pixabasic.c:2737:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2737:16: branch_true: ...to here
leptonica-1.87.0/src/pixabasic.c:2738:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2740:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2740:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2742:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2742:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2746:15: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2746:15: acquire_memory: allocated here
leptonica-1.87.0/src/pixabasic.c:2746:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2748:11: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2748:11: call_function: calling ‘pixaWriteStream’ from ‘pixaWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1341]
leptonica-1.87.0/src/pixabasic.c:2860:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2858:9: return_function: returning to ‘pixaaReadFromFiles’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2859:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixabasic.c:2860:15: branch_true: ...to here
leptonica-1.87.0/src/pixabasic.c:2860:15: throw: if ‘sarrayGetString’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2860:15: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1342]
leptonica-1.87.0/src/pixabasic.c:2868:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2838:1: enter_function: entry to ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2849:6: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:2852:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2853:6: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2858:9: call_function: calling ‘pixaaCreate’ from ‘pixaaReadFromFiles’
leptonica-1.87.0/src/pixabasic.c:2858:9: return_function: returning to ‘pixaaReadFromFiles’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2859:15: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2868:3: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2868:3: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2868:3: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1343]
leptonica-1.87.0/src/pixabasic.c:2952:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2923:1: enter_function: entry to ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2940:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2940:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2942:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2944:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2944:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2946:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2946:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2948:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2950:16: call_function: calling ‘pixaaCreate’ from ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2950:16: return_function: returning to ‘pixaaReadStream’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2950:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2952:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2952:17: throw: if ‘boxaReadStream’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2952:17: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1344]
leptonica-1.87.0/src/pixabasic.c:2952:17: warning[-Wanalyzer-malloc-leak]: leak of ‘paa’
leptonica-1.87.0/src/pixabasic.c:2923:1: enter_function: entry to ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2940:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2940:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2942:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2944:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2944:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2946:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2946:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2948:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2950:16: call_function: calling ‘pixaaCreate’ from ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2950:16: return_function: returning to ‘pixaaReadStream’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2950:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2952:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2952:17: throw: if ‘boxaReadStream’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2952:17: danger: ‘paa’ leaks here; was allocated at [(14)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1345]
leptonica-1.87.0/src/pixabasic.c:2956:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixabasic.c:2923:1: enter_function: entry to ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2940:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2940:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2942:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2944:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2944:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2946:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2946:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2948:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2950:16: call_function: calling ‘pixaaCreate’ from ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2950:16: return_function: returning to ‘pixaaReadStream’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2950:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2952:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2952:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2956:21: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2956:5: throw: if ‘boxaDestroy’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2956:5: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1346]
leptonica-1.87.0/src/pixabasic.c:2956:5: warning[-Wanalyzer-malloc-leak]: leak of ‘paa’
leptonica-1.87.0/src/pixabasic.c:2923:1: enter_function: entry to ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2938:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2940:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2940:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2942:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2942:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2944:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2944:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2946:9: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2946:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2948:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2950:16: call_function: calling ‘pixaaCreate’ from ‘pixaaReadStream’
leptonica-1.87.0/src/pixabasic.c:2950:16: return_function: returning to ‘pixaaReadStream’ from ‘pixaaCreate’
leptonica-1.87.0/src/pixabasic.c:2950:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2952:17: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2952:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixabasic.c:2956:21: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:2956:5: throw: if ‘boxaDestroy’ throws an exception...
leptonica-1.87.0/src/pixabasic.c:2956:5: danger: ‘paa’ leaks here; was allocated at [(14)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1347]
leptonica-1.87.0/src/pixabasic.c:3073:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pixabasic.c:3099:1: enter_function: entry to ‘pixaaWriteMem’
leptonica-1.87.0/src/pixabasic.c:3107:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:3107:16: branch_true: ...to here
leptonica-1.87.0/src/pixabasic.c:3108:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:3110:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:3110:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:3112:8: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:3112:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:3116:15: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:3116:15: acquire_memory: allocated here
leptonica-1.87.0/src/pixabasic.c:3116:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pixabasic.c:3118:11: branch_false: ...to here
leptonica-1.87.0/src/pixabasic.c:3118:11: call_function: calling ‘pixaaWriteStream’ from ‘pixaaWriteMem’
Error: CPPCHECK_WARNING (CWE-476): [#def1348]
leptonica-1.87.0/src/pixacc.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixacc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1349]
leptonica-1.87.0/src/pixacc.c:100:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixacc’
leptonica-1.87.0/src/pixacc.c:99:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pixacc.c:100:5: danger: ‘calloc(1, 24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1350]
leptonica-1.87.0/src/pixacc.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixacc
Error: CPPCHECK_WARNING (CWE-476): [#def1351]
leptonica-1.87.0/src/pixacc.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixacc
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1352]
leptonica-1.87.0/src/pixacc.c:103:24: warning[-Wanalyzer-malloc-leak]: leak of ‘pixacc’
leptonica-1.87.0/src/pixacc.c:99:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixacc.c:103:24: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/pixacc.c:103:24: danger: ‘pixacc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1353]
leptonica-1.87.0/src/pixacc.c:109:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaccCreate(w, h, negflag)’
leptonica-1.87.0/src/pixacc.c:131:1: enter_function: entry to ‘pixaccCreateFromPix’
leptonica-1.87.0/src/pixacc.c:137:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:140:5: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:141:14: call_function: calling ‘pixaccCreate’ from ‘pixaccCreateFromPix’
leptonica-1.87.0/src/pixacc.c:141:14: return_function: returning to ‘pixaccCreateFromPix’ from ‘pixaccCreate’
leptonica-1.87.0/src/pixacc.c:142:5: call_function: calling ‘pixaccAdd’ from ‘pixaccCreateFromPix’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1354]
leptonica-1.87.0/src/pixacc.c:110:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixacc’
leptonica-1.87.0/src/pixacc.c:99:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixacc.c:103:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixacc.c:108:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:108:8: branch_true: following ‘true’ branch (when ‘negflag != 0’)...
leptonica-1.87.0/src/pixacc.c:109:15: branch_true: ...to here
leptonica-1.87.0/src/pixacc.c:110:9: throw: if ‘pixSetAllArbitrary’ throws an exception...
leptonica-1.87.0/src/pixacc.c:110:9: danger: ‘pixacc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1355]
leptonica-1.87.0/src/pixacc.c:113:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pixaccCreate(w, h, negflag)’
leptonica-1.87.0/src/pixacc.c:131:1: enter_function: entry to ‘pixaccCreateFromPix’
leptonica-1.87.0/src/pixacc.c:137:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:140:5: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:141:14: call_function: calling ‘pixaccCreate’ from ‘pixaccCreateFromPix’
leptonica-1.87.0/src/pixacc.c:141:14: return_function: returning to ‘pixaccCreateFromPix’ from ‘pixaccCreate’
leptonica-1.87.0/src/pixacc.c:142:5: call_function: calling ‘pixaccAdd’ from ‘pixaccCreateFromPix’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1356]
leptonica-1.87.0/src/pixacc.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixacc’
leptonica-1.87.0/src/pixacc.c:93:1: enter_function: entry to ‘pixaccCreate’
leptonica-1.87.0/src/pixacc.c:99:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixacc.c:103:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixacc.c:104:9: branch_true: ...to here
leptonica-1.87.0/src/pixacc.c:104:9: call_function: calling ‘pixaccDestroy’ from ‘pixaccCreate’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1357]
leptonica-1.87.0/src/pixacc.c:194:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pacct’
leptonica-1.87.0/src/pixacc.c:309:1: enter_function: entry to ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:317:8: branch_false: following ‘false’ branch (when ‘pixacc’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:319:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:319:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:322:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:322:8: branch_false: following ‘false’ branch (when ‘factor != 0.0f’)...
leptonica-1.87.0/src/pixacc.c:324:5: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:326:13: call_function: calling ‘pixaccCreate’ from ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:326:13: return_function: returning to ‘pixaccMultConstAccumulate’ from ‘pixaccCreate’
leptonica-1.87.0/src/pixacc.c:327:5: call_function: calling ‘pixaccAdd’ from ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:327:5: return_function: returning to ‘pixaccMultConstAccumulate’ from ‘pixaccAdd’
leptonica-1.87.0/src/pixacc.c:328:5: call_function: calling ‘pixaccMultConst’ from ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:328:5: return_function: returning to ‘pixaccMultConstAccumulate’ from ‘pixaccMultConst’
leptonica-1.87.0/src/pixacc.c:329:12: call_function: calling ‘pixaccFinal’ from ‘pixaccMultConstAccumulate’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1358]
leptonica-1.87.0/src/pixacc.c:250:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pacct’
leptonica-1.87.0/src/pixacc.c:309:1: enter_function: entry to ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:317:8: branch_false: following ‘false’ branch (when ‘pixacc’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:319:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:319:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:322:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:322:8: branch_false: following ‘false’ branch (when ‘factor != 0.0f’)...
leptonica-1.87.0/src/pixacc.c:324:5: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:326:13: call_function: calling ‘pixaccCreate’ from ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:326:13: return_function: returning to ‘pixaccMultConstAccumulate’ from ‘pixaccCreate’
leptonica-1.87.0/src/pixacc.c:327:5: call_function: calling ‘pixaccAdd’ from ‘pixaccMultConstAccumulate’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1359]
leptonica-1.87.0/src/pixacc.c:288:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pacct’
leptonica-1.87.0/src/pixacc.c:309:1: enter_function: entry to ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:317:8: branch_false: following ‘false’ branch (when ‘pixacc’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:319:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:319:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pixacc.c:322:8: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:322:8: branch_false: following ‘false’ branch (when ‘factor != 0.0f’)...
leptonica-1.87.0/src/pixacc.c:324:5: branch_false: ...to here
leptonica-1.87.0/src/pixacc.c:326:13: call_function: calling ‘pixaccCreate’ from ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:326:13: return_function: returning to ‘pixaccMultConstAccumulate’ from ‘pixaccCreate’
leptonica-1.87.0/src/pixacc.c:327:5: call_function: calling ‘pixaccAdd’ from ‘pixaccMultConstAccumulate’
leptonica-1.87.0/src/pixacc.c:327:5: return_function: returning to ‘pixaccMultConstAccumulate’ from ‘pixaccAdd’
leptonica-1.87.0/src/pixacc.c:328:5: call_function: calling ‘pixaccMultConst’ from ‘pixaccMultConstAccumulate’
Error: CPPCHECK_WARNING (CWE-457): [#def1360]
leptonica-1.87.0/src/pixafunc2.c:311: warning[uninitvar]: Uninitialized variable: res
Error: COMPILER_WARNING (CWE-457): [#def1361]
leptonica-1.87.0/src/pixafunc2.c: scope_hint: In function ‘pixaDisplayRandomCmap’
leptonica-1.87.0/src/pixafunc2.c:311:5: warning[-Wmaybe-uninitialized]: ‘res’ may be used uninitialized
leptonica-1.87.0/src/pixafunc2.c:271:52: note: ‘res’ was declared here
Error: CPPCHECK_WARNING (CWE-457): [#def1362]
leptonica-1.87.0/src/pixafunc2.c:685: warning[uninitvar]: Uninitialized variable: res
Error: COMPILER_WARNING (CWE-457): [#def1363]
leptonica-1.87.0/src/pixafunc2.c: scope_hint: In function ‘pixaDisplayTiled’
leptonica-1.87.0/src/pixafunc2.c:685:5: warning[-Wmaybe-uninitialized]: ‘res’ may be used uninitialized
leptonica-1.87.0/src/pixafunc2.c:623:42: note: ‘res’ was declared here
Error: CPPCHECK_WARNING (CWE-457): [#def1364]
leptonica-1.87.0/src/pixafunc2.c:988: warning[uninitvar]: Uninitialized variable: res
Error: COMPILER_WARNING (CWE-457): [#def1365]
leptonica-1.87.0/src/pixafunc2.c: scope_hint: In function ‘pixaDisplayTiledInColumns’
leptonica-1.87.0/src/pixafunc2.c:988:5: warning[-Wmaybe-uninitialized]: ‘res’ may be used uninitialized
leptonica-1.87.0/src/pixafunc2.c:918:75: note: ‘res’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1366]
leptonica-1.87.0/src/pixafunc2.c:1099:15: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:1705:1: enter_function: entry to ‘pixaaDisplayTiledAndScaled’
leptonica-1.87.0/src/pixafunc2.c:1717:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:1719:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1721:8: branch_false: following ‘false’ branch (when ‘ncols > 0’)...
leptonica-1.87.0/src/pixafunc2.c:1723:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:1729:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1730:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixafunc2.c:1731:16: branch_true: ...to here
leptonica-1.87.0/src/pixafunc2.c:1732:15: call_function: calling ‘pixaDisplayTiledAndScaled’ from ‘pixaaDisplayTiledAndScaled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1367]
leptonica-1.87.0/src/pixafunc2.c:1101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:1705:1: enter_function: entry to ‘pixaaDisplayTiledAndScaled’
leptonica-1.87.0/src/pixafunc2.c:1717:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:1719:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1721:8: branch_false: following ‘false’ branch (when ‘ncols > 0’)...
leptonica-1.87.0/src/pixafunc2.c:1723:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:1729:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1730:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixafunc2.c:1731:16: branch_true: ...to here
leptonica-1.87.0/src/pixafunc2.c:1732:15: call_function: calling ‘pixaDisplayTiledAndScaled’ from ‘pixaaDisplayTiledAndScaled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1368]
leptonica-1.87.0/src/pixafunc2.c:1108:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:1705:1: enter_function: entry to ‘pixaaDisplayTiledAndScaled’
leptonica-1.87.0/src/pixafunc2.c:1717:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:1719:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1721:8: branch_false: following ‘false’ branch (when ‘ncols > 0’)...
leptonica-1.87.0/src/pixafunc2.c:1723:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:1729:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1730:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixafunc2.c:1731:16: branch_true: ...to here
leptonica-1.87.0/src/pixafunc2.c:1732:15: call_function: calling ‘pixaDisplayTiledAndScaled’ from ‘pixaaDisplayTiledAndScaled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1369]
leptonica-1.87.0/src/pixafunc2.c:1119:12: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:1705:1: enter_function: entry to ‘pixaaDisplayTiledAndScaled’
leptonica-1.87.0/src/pixafunc2.c:1717:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:1719:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1721:8: branch_false: following ‘false’ branch (when ‘ncols > 0’)...
leptonica-1.87.0/src/pixafunc2.c:1723:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:1729:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1730:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixafunc2.c:1731:16: branch_true: ...to here
leptonica-1.87.0/src/pixafunc2.c:1732:15: call_function: calling ‘pixaDisplayTiledAndScaled’ from ‘pixaaDisplayTiledAndScaled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1370]
leptonica-1.87.0/src/pixafunc2.c:1122:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:1705:1: enter_function: entry to ‘pixaaDisplayTiledAndScaled’
leptonica-1.87.0/src/pixafunc2.c:1717:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:1719:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1721:8: branch_false: following ‘false’ branch (when ‘ncols > 0’)...
leptonica-1.87.0/src/pixafunc2.c:1723:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:1729:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1730:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixafunc2.c:1731:16: branch_true: ...to here
leptonica-1.87.0/src/pixafunc2.c:1732:15: call_function: calling ‘pixaDisplayTiledAndScaled’ from ‘pixaaDisplayTiledAndScaled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1371]
leptonica-1.87.0/src/pixafunc2.c:1128:15: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:2661:1: enter_function: entry to ‘pixaCompareInPdf’
leptonica-1.87.0/src/pixafunc2.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2677:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2677:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2679:8: branch_false: following ‘false’ branch (when ‘tw > 19’)...
leptonica-1.87.0/src/pixafunc2.c:2681:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2683:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:2685:10: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2687:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2689:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2694:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2698:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2698:13: call_function: calling ‘pixaConvertToNUpPixa’ from ‘pixaCompareInPdf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1372]
leptonica-1.87.0/src/pixafunc2.c:1130:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:2661:1: enter_function: entry to ‘pixaCompareInPdf’
leptonica-1.87.0/src/pixafunc2.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2677:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2677:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2679:8: branch_false: following ‘false’ branch (when ‘tw > 19’)...
leptonica-1.87.0/src/pixafunc2.c:2681:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2683:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:2685:10: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2687:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2689:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2694:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2698:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2698:13: call_function: calling ‘pixaConvertToNUpPixa’ from ‘pixaCompareInPdf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1373]
leptonica-1.87.0/src/pixafunc2.c:1131:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:2661:1: enter_function: entry to ‘pixaCompareInPdf’
leptonica-1.87.0/src/pixafunc2.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2677:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2677:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2679:8: branch_false: following ‘false’ branch (when ‘tw > 19’)...
leptonica-1.87.0/src/pixafunc2.c:2681:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2683:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:2685:10: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2687:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2689:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2694:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2698:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2698:13: call_function: calling ‘pixaConvertToNUpPixa’ from ‘pixaCompareInPdf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1374]
leptonica-1.87.0/src/pixafunc2.c:1133:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:2661:1: enter_function: entry to ‘pixaCompareInPdf’
leptonica-1.87.0/src/pixafunc2.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2677:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2677:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2679:8: branch_false: following ‘false’ branch (when ‘tw > 19’)...
leptonica-1.87.0/src/pixafunc2.c:2681:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2683:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:2685:10: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2687:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2689:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2694:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2698:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2698:13: call_function: calling ‘pixaConvertToNUpPixa’ from ‘pixaCompareInPdf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1375]
leptonica-1.87.0/src/pixafunc2.c:1139:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:2661:1: enter_function: entry to ‘pixaCompareInPdf’
leptonica-1.87.0/src/pixafunc2.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2677:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2677:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2679:8: branch_false: following ‘false’ branch (when ‘tw > 19’)...
leptonica-1.87.0/src/pixafunc2.c:2681:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2683:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:2685:10: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2687:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2689:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2694:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2698:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2698:13: call_function: calling ‘pixaConvertToNUpPixa’ from ‘pixaCompareInPdf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1376]
leptonica-1.87.0/src/pixafunc2.c:1141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:2661:1: enter_function: entry to ‘pixaCompareInPdf’
leptonica-1.87.0/src/pixafunc2.c:2675:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2677:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2677:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2679:8: branch_false: following ‘false’ branch (when ‘tw > 19’)...
leptonica-1.87.0/src/pixafunc2.c:2681:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2681:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2683:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:2685:10: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2687:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2689:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2694:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:2698:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:2698:13: call_function: calling ‘pixaConvertToNUpPixa’ from ‘pixaCompareInPdf’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1377]
leptonica-1.87.0/src/pixafunc2.c:1144:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rowht’
leptonica-1.87.0/src/pixafunc2.c:1705:1: enter_function: entry to ‘pixaaDisplayTiledAndScaled’
leptonica-1.87.0/src/pixafunc2.c:1717:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/pixafunc2.c:1719:9: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1721:8: branch_false: following ‘false’ branch (when ‘ncols > 0’)...
leptonica-1.87.0/src/pixafunc2.c:1723:8: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixafunc2.c:1729:13: branch_false: ...to here
leptonica-1.87.0/src/pixafunc2.c:1730:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixafunc2.c:1731:16: branch_true: ...to here
leptonica-1.87.0/src/pixafunc2.c:1732:15: call_function: calling ‘pixaDisplayTiledAndScaled’ from ‘pixaaDisplayTiledAndScaled’
Error: CPPCHECK_WARNING (CWE-476): [#def1378]
leptonica-1.87.0/src/pixalloc.c:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pms
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1379]
leptonica-1.87.0/src/pixalloc.c:199:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pms’
leptonica-1.87.0/src/pixalloc.c:187:8: branch_false: following ‘false’ branch (when ‘numalloc’ is non-NULL)...
leptonica-1.87.0/src/pixalloc.c:189:5: branch_false: ...to here
leptonica-1.87.0/src/pixalloc.c:193:30: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pixalloc.c:199:5: danger: ‘pms’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1380]
leptonica-1.87.0/src/pixalloc.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pms
Error: CPPCHECK_WARNING (CWE-476): [#def1381]
leptonica-1.87.0/src/pixalloc.c:205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pms
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1382]
leptonica-1.87.0/src/pixalloc.c:409:19: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixalloc.c:403:8: branch_false: following ‘false’ branch (when ‘pms’ is non-NULL)...
leptonica-1.87.0/src/pixalloc.c:406:17: branch_false: ...to here
leptonica-1.87.0/src/pixalloc.c:406:17: acquire_memory: allocated here
leptonica-1.87.0/src/pixalloc.c:406:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixalloc.c:408:9: branch_false: ...to here
leptonica-1.87.0/src/pixalloc.c:408:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixalloc.c:409:19: throw: if ‘fopenWriteStream’ throws an exception...
leptonica-1.87.0/src/pixalloc.c:409:19: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1383]
leptonica-1.87.0/src/pixalloc.c:413:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixalloc.c:403:8: branch_false: following ‘false’ branch (when ‘pms’ is non-NULL)...
leptonica-1.87.0/src/pixalloc.c:406:17: branch_false: ...to here
leptonica-1.87.0/src/pixalloc.c:406:17: acquire_memory: allocated here
leptonica-1.87.0/src/pixalloc.c:406:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixalloc.c:408:9: branch_false: ...to here
leptonica-1.87.0/src/pixalloc.c:408:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixalloc.c:409:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixalloc.c:413:13: branch_false: ...to here
leptonica-1.87.0/src/pixalloc.c:413:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixalloc.c:413:13: branch_true: ...to here
leptonica-1.87.0/src/pixalloc.c:413:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/pixalloc.c:413:13: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-628): [#def1384]
leptonica-1.87.0/src/pixarith.c:1569: warning[invalidFunctionArg]: Invalid log() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.
Error: CPPCHECK_WARNING (CWE-476): [#def1385]
leptonica-1.87.0/src/pixcomp.c:218: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1386]
leptonica-1.87.0/src/pixcomp.c:219: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1387]
leptonica-1.87.0/src/pixcomp.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1388]
leptonica-1.87.0/src/pixcomp.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1389]
leptonica-1.87.0/src/pixcomp.c:265: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1390]
leptonica-1.87.0/src/pixcomp.c:266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1391]
leptonica-1.87.0/src/pixcomp.c:267: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1392]
leptonica-1.87.0/src/pixcomp.c:268: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1393]
leptonica-1.87.0/src/pixcomp.c:269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1394]
leptonica-1.87.0/src/pixcomp.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1395]
leptonica-1.87.0/src/pixcomp.c:273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1396]
leptonica-1.87.0/src/pixcomp.c:274: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1397]
leptonica-1.87.0/src/pixcomp.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1706:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1706:13: call_function: calling ‘pixacompDestroy’ from ‘pixacompReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def1398]
leptonica-1.87.0/src/pixcomp.c:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1399]
leptonica-1.87.0/src/pixcomp.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1400]
leptonica-1.87.0/src/pixcomp.c:403: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1401]
leptonica-1.87.0/src/pixcomp.c:404: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1402]
leptonica-1.87.0/src/pixcomp.c:405: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1403]
leptonica-1.87.0/src/pixcomp.c:406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1404]
leptonica-1.87.0/src/pixcomp.c:409: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1405]
leptonica-1.87.0/src/pixcomp.c:418: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1406]
leptonica-1.87.0/src/pixcomp.c:419: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixcd
Error: CPPCHECK_WARNING (CWE-476): [#def1407]
leptonica-1.87.0/src/pixcomp.c:600: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixac
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1408]
leptonica-1.87.0/src/pixcomp.c:600:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixac’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def1409]
leptonica-1.87.0/src/pixcomp.c:601: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixac
Error: CPPCHECK_WARNING (CWE-476): [#def1410]
leptonica-1.87.0/src/pixcomp.c:602: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixac
Error: CPPCHECK_WARNING (CWE-476): [#def1411]
leptonica-1.87.0/src/pixcomp.c:603: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixac
Error: CPPCHECK_WARNING (CWE-476): [#def1412]
leptonica-1.87.0/src/pixcomp.c:607: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixac
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1413]
leptonica-1.87.0/src/pixcomp.c:607:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1414]
leptonica-1.87.0/src/pixcomp.c:607:24: warning[-Wanalyzer-malloc-leak]: leak of ‘pixac’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1415]
leptonica-1.87.0/src/pixcomp.c:867:5: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1706:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1706:13: call_function: calling ‘pixacompDestroy’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1416]
leptonica-1.87.0/src/pixcomp.c:867:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixac’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1417]
leptonica-1.87.0/src/pixcomp.c:941:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1418]
leptonica-1.87.0/src/pixcomp.c:941:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1419]
leptonica-1.87.0/src/pixcomp.c:950:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1420]
leptonica-1.87.0/src/pixcomp.c:986:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1421]
leptonica-1.87.0/src/pixcomp.c:986:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1422]
leptonica-1.87.0/src/pixcomp.c:990:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1423]
leptonica-1.87.0/src/pixcomp.c:990:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1424]
leptonica-1.87.0/src/pixcomp.c:992:33: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1425]
leptonica-1.87.0/src/pixcomp.c:992:33: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1426]
leptonica-1.87.0/src/pixcomp.c:994:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1427]
leptonica-1.87.0/src/pixcomp.c:996:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1721:9: call_function: calling ‘pixacompAddPixcomp’ from ‘pixacompReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1428]
leptonica-1.87.0/src/pixcomp.c:1710:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:32: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1710:9: throw: if ‘fgetc’ throws an exception...
leptonica-1.87.0/src/pixcomp.c:1710:9: danger: ‘data’ leaks here; was allocated at [(53)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/52)
Error: CPPCHECK_WARNING (CWE-476): [#def1429]
leptonica-1.87.0/src/pixcomp.c:1712: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1430]
leptonica-1.87.0/src/pixcomp.c:1712:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixc’
leptonica-1.87.0/src/pixcomp.c:1633:1: enter_function: entry to ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1647:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1649:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1649:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1651:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1651:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1653:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1653:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1655:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1657:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1659:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1661:18: call_function: calling ‘pixacompCreate’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1661:18: return_function: returning to ‘pixacompReadStream’ from ‘pixacompCreate’
leptonica-1.87.0/src/pixcomp.c:1661:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1663:17: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1663:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1667:23: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1669:5: call_function: calling ‘pixacompSetOffset’ from ‘pixacompReadStream’
leptonica-1.87.0/src/pixcomp.c:1669:5: return_function: returning to ‘pixacompReadStream’ from ‘pixacompSetOffset’
leptonica-1.87.0/src/pixcomp.c:1671:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixcomp.c:1672:13: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1672:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1677:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1677:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1682:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1682:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1693:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1693:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1697:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1697:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1701:32: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1701:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1705:13: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1705:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixcomp.c:1710:9: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1711:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pixcomp.c:1712:9: danger: ‘pixc’ could be NULL: unchecked value from [(57)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/56)
Error: CPPCHECK_WARNING (CWE-476): [#def1431]
leptonica-1.87.0/src/pixcomp.c:1713: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1432]
leptonica-1.87.0/src/pixcomp.c:1714: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1433]
leptonica-1.87.0/src/pixcomp.c:1715: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1434]
leptonica-1.87.0/src/pixcomp.c:1716: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1435]
leptonica-1.87.0/src/pixcomp.c:1717: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1436]
leptonica-1.87.0/src/pixcomp.c:1718: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1437]
leptonica-1.87.0/src/pixcomp.c:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: CPPCHECK_WARNING (CWE-476): [#def1438]
leptonica-1.87.0/src/pixcomp.c:1720: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixc
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1439]
leptonica-1.87.0/src/pixcomp.c:1818:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pixcomp.c:1849:1: enter_function: entry to ‘pixacompWriteMem’
leptonica-1.87.0/src/pixcomp.c:1857:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1857:16: branch_true: ...to here
leptonica-1.87.0/src/pixcomp.c:1858:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1860:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1860:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1862:8: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1862:8: branch_false: following ‘false’ branch (when ‘pixac’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1866:15: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1866:15: acquire_memory: allocated here
leptonica-1.87.0/src/pixcomp.c:1866:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pixcomp.c:1868:11: branch_false: ...to here
leptonica-1.87.0/src/pixcomp.c:1868:11: call_function: calling ‘pixacompWriteStream’ from ‘pixacompWriteMem’
Error: CPPCHECK_WARNING (CWE-476): [#def1440]
leptonica-1.87.0/src/pixconv.c:408: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: graymap
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1441]
leptonica-1.87.0/src/pixconv.c:408:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘graymap’
leptonica-1.87.0/src/pixconv.c:3970:1: enter_function: entry to ‘pixConvertGrayToSubpixelRGB’
leptonica-1.87.0/src/pixconv.c:3984:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixconv.c:3986:8: branch_false: ...to here
leptonica-1.87.0/src/pixconv.c:3986:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixconv.c:3988:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixconv.c:3993:9: branch_false: ...to here
leptonica-1.87.0/src/pixconv.c:3995:12: call_function: calling ‘pixRemoveColormap’ from ‘pixConvertGrayToSubpixelRGB’
Error: CPPCHECK_WARNING (CWE-682): [#def1442]
leptonica-1.87.0/src/pixconv.c:566: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1443]
leptonica-1.87.0/src/pixconv.c:566:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lut’
leptonica-1.87.0/src/pixconv.c:3248:1: enter_function: entry to ‘pixConvertTo32’
leptonica-1.87.0/src/pixconv.c:3270:16: call_function: calling ‘pixConvert8To32’ from ‘pixConvertTo32’
Error: CPPCHECK_WARNING (CWE-682): [#def1444]
leptonica-1.87.0/src/pixconv.c:568: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1445]
leptonica-1.87.0/src/pixconv.c:584:21: warning[-Wanalyzer-malloc-leak]: leak of ‘lut’
leptonica-1.87.0/src/pixconv.c:3248:1: enter_function: entry to ‘pixConvertTo32’
leptonica-1.87.0/src/pixconv.c:3270:16: call_function: calling ‘pixConvert8To32’ from ‘pixConvertTo32’
Error: CPPCHECK_WARNING (CWE-476): [#def1446]
leptonica-1.87.0/src/pixconv.c:682: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: inta
Error: CPPCHECK_WARNING (CWE-476): [#def1447]
leptonica-1.87.0/src/pixconv.c:688: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: inta
Error: CPPCHECK_WARNING (CWE-476): [#def1448]
leptonica-1.87.0/src/pixconv.c:706: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: revmap
Error: CPPCHECK_WARNING (CWE-476): [#def1449]
leptonica-1.87.0/src/pixconv.c:1061: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: invmax
Error: CPPCHECK_WARNING (CWE-476): [#def1450]
leptonica-1.87.0/src/pixconv.c:1062: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ratio
Error: CPPCHECK_WARNING (CWE-476): [#def1451]
leptonica-1.87.0/src/pixconv.c:1079: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ratio
Error: CPPCHECK_WARNING (CWE-476): [#def1452]
leptonica-1.87.0/src/pixconv.c:1969: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1453]
leptonica-1.87.0/src/pixconv.c:1982: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1454]
leptonica-1.87.0/src/pixconv.c:2144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1455]
leptonica-1.87.0/src/pixconv.c:2163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1456]
leptonica-1.87.0/src/pixconv.c:2261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1457]
leptonica-1.87.0/src/pixconv.c:2280: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1458]
leptonica-1.87.0/src/pixconv.c:2379: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1459]
leptonica-1.87.0/src/pixconv.c:2379:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/pixconv.c:3057:1: enter_function: entry to ‘pixConvertTo8’
leptonica-1.87.0/src/pixconv.c:3067:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixconv.c:3070:8: branch_false: ...to here
leptonica-1.87.0/src/pixconv.c:3070:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixconv.c:3071:12: branch_true: ...to here
leptonica-1.87.0/src/pixconv.c:3071:12: branch_false: following ‘false’ branch (when ‘cmapflag == 0’)...
leptonica-1.87.0/src/pixconv.c:3074:20: branch_false: ...to here
leptonica-1.87.0/src/pixconv.c:3074:20: call_function: calling ‘pixConvert1To8’ from ‘pixConvertTo8’
Error: CPPCHECK_WARNING (CWE-476): [#def1460]
leptonica-1.87.0/src/pixconv.c:2394: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1461]
leptonica-1.87.0/src/pixconv.c:2499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1462]
leptonica-1.87.0/src/pixconv.c:2499:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/pixconv.c:3057:1: enter_function: entry to ‘pixConvertTo8’
leptonica-1.87.0/src/pixconv.c:3070:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixconv.c:3070:8: branch_false: ...to here
leptonica-1.87.0/src/pixconv.c:3076:16: call_function: calling ‘pixConvert2To8’ from ‘pixConvertTo8’
Error: CPPCHECK_WARNING (CWE-476): [#def1463]
leptonica-1.87.0/src/pixconv.c:2510: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1464]
leptonica-1.87.0/src/pixconv.c:3362: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1465]
leptonica-1.87.0/src/pixconv.c:3362:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/pixconv.c:3248:1: enter_function: entry to ‘pixConvertTo32’
leptonica-1.87.0/src/pixconv.c:3270:16: call_function: calling ‘pixConvert8To32’ from ‘pixConvertTo32’
Error: CPPCHECK_WARNING (CWE-476): [#def1466]
leptonica-1.87.0/src/pixconv.c:3370: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: CPPCHECK_WARNING (CWE-476): [#def1467]
leptonica-1.87.0/src/pixlabel.c:528: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: *pneigh
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1468]
leptonica-1.87.0/src/pixlabel.c:528:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*pneigh’
leptonica-1.87.0/src/pixlabel.c:493:8: branch_true: following ‘true’ branch (when ‘pnvals’ is non-NULL)...
leptonica-1.87.0/src/pixlabel.c:493:17: branch_true: ...to here
leptonica-1.87.0/src/pixlabel.c:494:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:496:8: branch_false: ...to here
leptonica-1.87.0/src/pixlabel.c:496:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:500:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:504:12: branch_false: ...to here
leptonica-1.87.0/src/pixlabel.c:520:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pixlabel.c:521:19: branch_true: ...to here
leptonica-1.87.0/src/pixlabel.c:525:8: branch_true: following ‘true’ branch (when ‘index != 0’)...
leptonica-1.87.0/src/pixlabel.c:526:30: branch_true: ...to here
leptonica-1.87.0/src/pixlabel.c:526:30: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pixlabel.c:527:21: branch_true: following ‘true’ branch (when ‘i < index’)...
leptonica-1.87.0/src/pixlabel.c:528:22: branch_true: ...to here
leptonica-1.87.0/src/pixlabel.c:528:13: danger: ‘calloc((long unsigned int)index, 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1469]
leptonica-1.87.0/src/pixlabel.c:528:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘neigh’
leptonica-1.87.0/src/pixlabel.c:348:1: enter_function: entry to ‘pixConnCompIncrAdd’
leptonica-1.87.0/src/pixlabel.c:360:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:362:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/pixlabel.c:364:8: branch_false: ...to here
leptonica-1.87.0/src/pixlabel.c:364:8: branch_false: following ‘false’ branch (when ‘pncc’ is non-NULL)...
leptonica-1.87.0/src/pixlabel.c:366:5: branch_false: ...to here
leptonica-1.87.0/src/pixlabel.c:367:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:369:5: branch_false: ...to here
leptonica-1.87.0/src/pixlabel.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:372:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:376:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixlabel.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/pixlabel.c:384:5: call_function: calling ‘pixGetSortedNeighborValues’ from ‘pixConnCompIncrAdd’
Error: CPPCHECK_WARNING (CWE-476): [#def1470]
leptonica-1.87.0/src/pixtiling.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1471]
leptonica-1.87.0/src/pixtiling.c:159:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pt’
leptonica-1.87.0/src/pixtiling.c:135:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pixtiling.c:137:9: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixtiling.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixtiling.c:146:5: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:153:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixtiling.c:158:23: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:158:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pixtiling.c:159:5: danger: ‘pt’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1472]
leptonica-1.87.0/src/pixtiling.c:159:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pt’
leptonica-1.87.0/src/pixtiling.c:135:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/pixtiling.c:137:9: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixtiling.c:139:9: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:139:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixtiling.c:146:5: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:153:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pixtiling.c:158:23: branch_false: ...to here
leptonica-1.87.0/src/pixtiling.c:158:23: acquire_memory: allocated here
leptonica-1.87.0/src/pixtiling.c:159:15: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/pixtiling.c:159:15: danger: ‘pt’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def1473]
leptonica-1.87.0/src/pixtiling.c:160: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: CPPCHECK_WARNING (CWE-476): [#def1474]
leptonica-1.87.0/src/pixtiling.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: CPPCHECK_WARNING (CWE-476): [#def1475]
leptonica-1.87.0/src/pixtiling.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: CPPCHECK_WARNING (CWE-476): [#def1476]
leptonica-1.87.0/src/pixtiling.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: CPPCHECK_WARNING (CWE-476): [#def1477]
leptonica-1.87.0/src/pixtiling.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: CPPCHECK_WARNING (CWE-476): [#def1478]
leptonica-1.87.0/src/pixtiling.c:165: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: CPPCHECK_WARNING (CWE-476): [#def1479]
leptonica-1.87.0/src/pixtiling.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pt
Error: COMPILER_WARNING: [#def1480]
leptonica-1.87.0/src/pngio.c: scope_hint: In function ‘pixReadStreamPng’
leptonica-1.87.0/src/pngio.c:191:30: warning[-Wunused-but-set-variable=]: variable ‘ncolors’ set but not used
Error: CPPCHECK_WARNING (CWE-476): [#def1481]
leptonica-1.87.0/src/pngio.c:1238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: row_pointers
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1482]
leptonica-1.87.0/src/pngio.c:1263:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rowbuffer’
leptonica-1.87.0/src/pngio.c:1074:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1076:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1076:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1079:9: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1110:8: branch_false: following ‘false’ branch (when ‘cmflag == 0’)...
leptonica-1.87.0/src/pngio.c:1119:20: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1119:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1122:21: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1122:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1128:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1130:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/pngio.c:1130:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1137:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1215:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1251:12: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1253:8: branch_false: following ‘false’ branch (when ‘d != 24’)...
leptonica-1.87.0/src/pngio.c:1259:32: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1259:32: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pngio.c:1260:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:1261:29: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1262:29: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:1263:34: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1263:17: danger: ‘rowbuffer + (sizetype)k’ could be NULL: unchecked value from [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1483]
leptonica-1.87.0/src/pngio.c:1271:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/pngio.c:1074:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1076:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1076:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1079:9: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1110:8: branch_false: following ‘false’ branch (when ‘cmflag == 0’)...
leptonica-1.87.0/src/pngio.c:1119:20: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1119:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1122:21: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1122:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1128:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1130:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/pngio.c:1130:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1137:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1215:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1251:12: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1253:8: branch_false: following ‘false’ branch (when ‘d != 24’)...
leptonica-1.87.0/src/pngio.c:1259:32: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1259:32: acquire_memory: allocated here
leptonica-1.87.0/src/pngio.c:1260:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:1261:29: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1262:29: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1271:13: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1271:13: throw: if ‘png_write_rows’ throws an exception...
leptonica-1.87.0/src/pngio.c:1271:13: danger: ‘rowbuffer’ leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1484]
leptonica-1.87.0/src/pngio.c:1394:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*((struct MemIOData *)last).m_Buffer’ where non-null expected
leptonica-1.87.0/src/pngio.c:1391:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:1392:12: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1392:12: branch_true: following ‘true’ branch (when ‘len > 8192’)...
leptonica-1.87.0/src/pngio.c:1393:38: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1393:38: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pngio.c:1394:13: danger: argument 1 (‘malloc(len)’) from [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def1485]
leptonica-1.87.0/src/pngio.c:1406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: next
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1486]
leptonica-1.87.0/src/pngio.c:1406:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘next’
leptonica-1.87.0/src/pngio.c:1391:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1391:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1403:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:1404:13: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1404:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:1405:44: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1405:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pngio.c:1406:13: danger: ‘next’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1487]
leptonica-1.87.0/src/pngio.c:1407: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: next
Error: CPPCHECK_WARNING (CWE-476): [#def1488]
leptonica-1.87.0/src/pngio.c:1408: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: next
Error: CPPCHECK_WARNING (CWE-476): [#def1489]
leptonica-1.87.0/src/pngio.c:1413: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: last
Error: CPPCHECK_WARNING (CWE-476): [#def1490]
leptonica-1.87.0/src/pngio.c:1414: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: last
Error: CPPCHECK_WARNING (CWE-476): [#def1491]
leptonica-1.87.0/src/pngio.c:1417: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: last
Error: CPPCHECK_WARNING (CWE-476): [#def1492]
leptonica-1.87.0/src/pngio.c:1467: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1493]
leptonica-1.87.0/src/pngio.c:1467:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
leptonica-1.87.0/src/pngio.c:1454:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:1458:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1460:12: branch_true: following ‘true’ branch (when ‘buffer’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1461:19: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1466:20: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pngio.c:1467:5: danger: argument 1 (‘data’) from [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-682): [#def1494]
leptonica-1.87.0/src/pngio.c:1478: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: COMPILER_WARNING: [#def1495]
leptonica-1.87.0/src/pngio.c: scope_hint: In function ‘pixReadMemPng’
leptonica-1.87.0/src/pngio.c:1576:30: warning[-Wunused-but-set-variable=]: variable ‘ncolors’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1496]
leptonica-1.87.0/src/pngio.c:2175:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rowbuffer’
leptonica-1.87.0/src/pngio.c:1983:8: branch_true: following ‘true’ branch (when ‘pfilesize’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1983:20: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1984:8: branch_false: following ‘false’ branch (when ‘pfiledata’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1986:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1986:8: branch_false: following ‘false’ branch (when ‘pfilesize’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1988:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1988:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1991:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2028:8: branch_false: following ‘false’ branch (when ‘cmflag == 0’)...
leptonica-1.87.0/src/pngio.c:2037:20: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2037:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2041:21: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2041:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2047:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2048:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/pngio.c:2048:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2054:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2126:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2163:12: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2165:8: branch_false: following ‘false’ branch (when ‘d != 24’)...
leptonica-1.87.0/src/pngio.c:2171:32: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2171:32: acquire_memory: this call could return NULL
leptonica-1.87.0/src/pngio.c:2172:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:2173:29: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:2174:29: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:2175:34: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:2175:17: danger: ‘rowbuffer + (sizetype)k’ could be NULL: unchecked value from [(22)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1497]
leptonica-1.87.0/src/pngio.c:2183:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rowbuffer’
leptonica-1.87.0/src/pngio.c:1983:8: branch_true: following ‘true’ branch (when ‘pfilesize’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1983:20: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:1984:8: branch_false: following ‘false’ branch (when ‘pfiledata’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1986:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1986:8: branch_false: following ‘false’ branch (when ‘pfilesize’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1988:8: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:1988:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pngio.c:1991:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2028:8: branch_false: following ‘false’ branch (when ‘cmflag == 0’)...
leptonica-1.87.0/src/pngio.c:2037:20: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2037:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2041:21: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2041:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2047:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2048:9: setjmp: ‘setjmp’ called here
leptonica-1.87.0/src/pngio.c:2048:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2054:5: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2126:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2163:12: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2165:8: branch_false: following ‘false’ branch (when ‘d != 24’)...
leptonica-1.87.0/src/pngio.c:2171:32: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2171:32: acquire_memory: allocated here
leptonica-1.87.0/src/pngio.c:2172:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/pngio.c:2173:29: branch_true: ...to here
leptonica-1.87.0/src/pngio.c:2174:29: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/pngio.c:2183:13: branch_false: ...to here
leptonica-1.87.0/src/pngio.c:2183:13: throw: if ‘png_write_rows’ throws an exception...
leptonica-1.87.0/src/pngio.c:2183:13: danger: ‘rowbuffer’ leaks here; was allocated at [(22)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1498]
leptonica-1.87.0/src/pnmio.c:751:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1218:1: enter_function: entry to ‘pixWriteMemPnm’
leptonica-1.87.0/src/pnmio.c:1226:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1226:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1227:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1229:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1229:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1231:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1231:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1235:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1235:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1235:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1237:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1237:11: call_function: calling ‘pixWriteStreamPnm’ from ‘pixWriteMemPnm’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1499]
leptonica-1.87.0/src/pnmio.c:753:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1218:1: enter_function: entry to ‘pixWriteMemPnm’
leptonica-1.87.0/src/pnmio.c:1226:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1226:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1227:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1229:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1229:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1231:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1231:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1235:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1235:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1235:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1237:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1237:11: call_function: calling ‘pixWriteStreamPnm’ from ‘pixWriteMemPnm’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1500]
leptonica-1.87.0/src/pnmio.c:754:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1218:1: enter_function: entry to ‘pixWriteMemPnm’
leptonica-1.87.0/src/pnmio.c:1226:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1226:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1227:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1229:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1229:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1231:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1231:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1235:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1235:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1235:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1237:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1237:11: call_function: calling ‘pixWriteStreamPnm’ from ‘pixWriteMemPnm’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1501]
leptonica-1.87.0/src/pnmio.c:989:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1502]
leptonica-1.87.0/src/pnmio.c:991:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1503]
leptonica-1.87.0/src/pnmio.c:994:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1504]
leptonica-1.87.0/src/pnmio.c:995:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1505]
leptonica-1.87.0/src/pnmio.c:997:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1506]
leptonica-1.87.0/src/pnmio.c:998:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1507]
leptonica-1.87.0/src/pnmio.c:999:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1508]
leptonica-1.87.0/src/pnmio.c:1000:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/pnmio.c:1274:1: enter_function: entry to ‘pixWriteMemPam’
leptonica-1.87.0/src/pnmio.c:1282:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1282:16: branch_true: ...to here
leptonica-1.87.0/src/pnmio.c:1283:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1285:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1287:8: branch_false: following ‘false’ branch (when ‘pix’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1291:15: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1291:15: acquire_memory: allocated here
leptonica-1.87.0/src/pnmio.c:1291:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/pnmio.c:1293:11: branch_false: ...to here
leptonica-1.87.0/src/pnmio.c:1293:11: call_function: calling ‘pixWriteStreamPam’ from ‘pixWriteMemPam’
Error: COMPILER_WARNING (CWE-563): [#def1509]
leptonica-1.87.0/src/pnmio.c: scope_hint: In function ‘pnmReadNextAsciiValue’
leptonica-1.87.0/src/pnmio.c:1330:10: warning[-Wunused-variable]: unused variable ‘ignore’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1510]
leptonica-1.87.0/src/projective.c:778:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/projective.c:504:1: enter_function: entry to ‘pixProjectivePtaGray’
leptonica-1.87.0/src/projective.c:512:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/projective.c:514:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:514:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/projective.c:516:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:516:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/projective.c:518:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:518:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:520:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:520:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:522:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:526:5: branch_false: ...to here
leptonica-1.87.0/src/projective.c:526:5: call_function: calling ‘getProjectiveXformCoeffs’ from ‘pixProjectivePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1511]
leptonica-1.87.0/src/projective.c:779:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/projective.c:504:1: enter_function: entry to ‘pixProjectivePtaGray’
leptonica-1.87.0/src/projective.c:512:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/projective.c:514:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:514:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/projective.c:516:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:516:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/projective.c:518:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:518:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:520:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:520:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:522:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:526:5: branch_false: ...to here
leptonica-1.87.0/src/projective.c:526:5: call_function: calling ‘getProjectiveXformCoeffs’ from ‘pixProjectivePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1512]
leptonica-1.87.0/src/projective.c:780:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/projective.c:504:1: enter_function: entry to ‘pixProjectivePtaGray’
leptonica-1.87.0/src/projective.c:512:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/projective.c:514:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:514:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/projective.c:516:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:516:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/projective.c:518:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:518:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:520:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:520:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:522:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:526:5: branch_false: ...to here
leptonica-1.87.0/src/projective.c:526:5: call_function: calling ‘getProjectiveXformCoeffs’ from ‘pixProjectivePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1513]
leptonica-1.87.0/src/projective.c:781:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/projective.c:504:1: enter_function: entry to ‘pixProjectivePtaGray’
leptonica-1.87.0/src/projective.c:512:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/projective.c:514:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:514:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/projective.c:516:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:516:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/projective.c:518:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:518:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:520:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:520:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:522:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:526:5: branch_false: ...to here
leptonica-1.87.0/src/projective.c:526:5: call_function: calling ‘getProjectiveXformCoeffs’ from ‘pixProjectivePtaGray’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1514]
leptonica-1.87.0/src/projective.c:782:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vc’
leptonica-1.87.0/src/projective.c:504:1: enter_function: entry to ‘pixProjectivePtaGray’
leptonica-1.87.0/src/projective.c:512:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/projective.c:514:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:514:8: branch_false: following ‘false’ branch (when ‘ptas’ is non-NULL)...
leptonica-1.87.0/src/projective.c:516:8: branch_false: ...to here
leptonica-1.87.0/src/projective.c:516:8: branch_false: following ‘false’ branch (when ‘ptad’ is non-NULL)...
leptonica-1.87.0/src/projective.c:518:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:518:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:520:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:520:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:522:9: branch_false: ...to here
leptonica-1.87.0/src/projective.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/projective.c:526:5: branch_false: ...to here
leptonica-1.87.0/src/projective.c:526:5: call_function: calling ‘getProjectiveXformCoeffs’ from ‘pixProjectivePtaGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1515]
leptonica-1.87.0/src/projective.c:792: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1516]
leptonica-1.87.0/src/projective.c:793: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1517]
leptonica-1.87.0/src/projective.c:797: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1518]
leptonica-1.87.0/src/projective.c:798: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1519]
leptonica-1.87.0/src/projective.c:802: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1520]
leptonica-1.87.0/src/projective.c:803: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1521]
leptonica-1.87.0/src/projective.c:807: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1522]
leptonica-1.87.0/src/projective.c:808: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1523]
leptonica-1.87.0/src/projective.c:812: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1524]
leptonica-1.87.0/src/projective.c:813: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1525]
leptonica-1.87.0/src/projective.c:817: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1526]
leptonica-1.87.0/src/projective.c:818: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1527]
leptonica-1.87.0/src/projective.c:822: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1528]
leptonica-1.87.0/src/projective.c:823: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1529]
leptonica-1.87.0/src/projective.c:827: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: CPPCHECK_WARNING (CWE-476): [#def1530]
leptonica-1.87.0/src/projective.c:828: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: b
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1531]
leptonica-1.87.0/src/psio1.c:666:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
leptonica-1.87.0/src/psio1.c:591:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/psio1.c:593:8: branch_false: ...to here
leptonica-1.87.0/src/psio1.c:593:8: branch_false: following ‘false’ branch (when ‘fileout’ is non-NULL)...
leptonica-1.87.0/src/psio1.c:595:8: branch_false: ...to here
leptonica-1.87.0/src/psio1.c:595:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio1.c:606:8: branch_true: following ‘true’ branch (when ‘pixm’ is non-NULL)...
leptonica-1.87.0/src/psio1.c:607:9: branch_true: ...to here
leptonica-1.87.0/src/psio1.c:608:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio1.c:611:21: branch_false: ...to here
leptonica-1.87.0/src/psio1.c:618:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio1.c:622:16: branch_false: ...to here
leptonica-1.87.0/src/psio1.c:627:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio1.c:647:9: branch_false: ...to here
leptonica-1.87.0/src/psio1.c:648:12: branch_true: following ‘true’ branch (when ‘pixm’ is non-NULL)...
leptonica-1.87.0/src/psio1.c:649:16: branch_true: ...to here
leptonica-1.87.0/src/psio1.c:663:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/psio1.c:664:26: branch_true: ...to here
leptonica-1.87.0/src/psio1.c:666:23: danger: use of uninitialized value ‘d’ here
Error: COMPILER_WARNING (CWE-457): [#def1532]
leptonica-1.87.0/src/psio1.c: scope_hint: In function ‘pixWriteSegmentedPageToPS’
leptonica-1.87.0/src/psio1.c:666:39: warning[-Wmaybe-uninitialized]: ‘d’ may be used uninitialized
leptonica-1.87.0/src/psio1.c:586:29: note: ‘d’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1533]
leptonica-1.87.0/src/psio2.c:464:10: warning[-Wanalyzer-malloc-leak]: leak of ‘hexdata’
leptonica-1.87.0/src/psio2.c:337:1: enter_function: entry to ‘pixWriteStringPS’
leptonica-1.87.0/src/psio2.c:354:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio2.c:356:5: branch_false: ...to here
leptonica-1.87.0/src/psio2.c:382:28: acquire_memory: allocated here
leptonica-1.87.0/src/psio2.c:382:8: branch_false: following ‘false’ branch (when ‘hexdata’ is non-NULL)...
leptonica-1.87.0/src/psio2.c:384:9: branch_false: ...to here
leptonica-1.87.0/src/psio2.c:415:14: call_function: calling ‘generateUncompressedPS’ from ‘pixWriteStringPS’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1534]
leptonica-1.87.0/src/psio2.c:465:5: warning[-Wanalyzer-malloc-leak]: leak of ‘hexdata’
leptonica-1.87.0/src/psio2.c:337:1: enter_function: entry to ‘pixWriteStringPS’
leptonica-1.87.0/src/psio2.c:354:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio2.c:356:5: branch_false: ...to here
leptonica-1.87.0/src/psio2.c:382:28: acquire_memory: allocated here
leptonica-1.87.0/src/psio2.c:382:8: branch_false: following ‘false’ branch (when ‘hexdata’ is non-NULL)...
leptonica-1.87.0/src/psio2.c:384:9: branch_false: ...to here
leptonica-1.87.0/src/psio2.c:415:14: call_function: calling ‘generateUncompressedPS’ from ‘pixWriteStringPS’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1535]
leptonica-1.87.0/src/psio2.c:470:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hexdata’
leptonica-1.87.0/src/psio2.c:337:1: enter_function: entry to ‘pixWriteStringPS’
leptonica-1.87.0/src/psio2.c:354:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/psio2.c:356:5: branch_false: ...to here
leptonica-1.87.0/src/psio2.c:382:28: acquire_memory: allocated here
leptonica-1.87.0/src/psio2.c:382:8: branch_false: following ‘false’ branch (when ‘hexdata’ is non-NULL)...
leptonica-1.87.0/src/psio2.c:384:9: branch_false: ...to here
leptonica-1.87.0/src/psio2.c:415:14: call_function: calling ‘generateUncompressedPS’ from ‘pixWriteStringPS’
Error: CPPCHECK_WARNING (CWE-476): [#def1536]
leptonica-1.87.0/src/ptabasic.c:128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pta
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1537]
leptonica-1.87.0/src/ptabasic.c:128:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pta’
leptonica-1.87.0/src/ptabasic.c:219:1: enter_function: entry to ‘ptaCopy’
leptonica-1.87.0/src/ptabasic.c:228:17: call_function: calling ‘ptaCreate’ from ‘ptaCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def1538]
leptonica-1.87.0/src/ptabasic.c:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pta
Error: CPPCHECK_WARNING (CWE-476): [#def1539]
leptonica-1.87.0/src/ptabasic.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pta
Error: CPPCHECK_WARNING (CWE-476): [#def1540]
leptonica-1.87.0/src/ptabasic.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pta
Error: CPPCHECK_WARNING (CWE-476): [#def1541]
leptonica-1.87.0/src/ptabasic.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pta
Error: CPPCHECK_WARNING (CWE-476): [#def1542]
leptonica-1.87.0/src/ptabasic.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pta
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1543]
leptonica-1.87.0/src/ptabasic.c:289:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/ptabasic.c:1472:1: enter_function: entry to ‘ptaaWriteMem’
leptonica-1.87.0/src/ptabasic.c:1481:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1481:16: branch_true: ...to here
leptonica-1.87.0/src/ptabasic.c:1482:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1484:8: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1484:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1486:8: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1486:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1490:15: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1490:15: acquire_memory: allocated here
leptonica-1.87.0/src/ptabasic.c:1490:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1492:11: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1492:11: call_function: calling ‘ptaaWriteStream’ from ‘ptaaWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1544]
leptonica-1.87.0/src/ptabasic.c:817:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/ptabasic.c:1472:1: enter_function: entry to ‘ptaaWriteMem’
leptonica-1.87.0/src/ptabasic.c:1481:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1481:16: branch_true: ...to here
leptonica-1.87.0/src/ptabasic.c:1482:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1484:8: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1484:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1486:8: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1486:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1490:15: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1490:15: acquire_memory: allocated here
leptonica-1.87.0/src/ptabasic.c:1490:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/ptabasic.c:1492:11: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1492:11: call_function: calling ‘ptaaWriteStream’ from ‘ptaaWriteMem’
Error: CPPCHECK_WARNING (CWE-476): [#def1545]
leptonica-1.87.0/src/ptabasic.c:914: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ptaa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1546]
leptonica-1.87.0/src/ptabasic.c:914:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ptaa’
leptonica-1.87.0/src/ptabasic.c:1300:1: enter_function: entry to ‘ptaaReadStream’
leptonica-1.87.0/src/ptabasic.c:1309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptabasic.c:1311:9: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1311:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptabasic.c:1313:9: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1313:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptabasic.c:1315:9: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1315:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptabasic.c:1317:8: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1317:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptabasic.c:1319:8: branch_false: ...to here
leptonica-1.87.0/src/ptabasic.c:1321:17: call_function: calling ‘ptaaCreate’ from ‘ptaaReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def1547]
leptonica-1.87.0/src/ptabasic.c:915: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ptaa
Error: CPPCHECK_WARNING (CWE-476): [#def1548]
leptonica-1.87.0/src/ptabasic.c:916: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ptaa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1549]
leptonica-1.87.0/src/ptafunc1.c:1208:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘f[0]’
leptonica-1.87.0/src/ptafunc1.c:1626:1: enter_function: entry to ‘ptaNoisyQuadraticLSF’
leptonica-1.87.0/src/ptafunc1.c:1640:8: branch_true: following ‘true’ branch (when ‘pptad’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1640:16: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1641:8: branch_false: following ‘false’ branch (when ‘pa’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: following ‘false’ branch (when ‘pb’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: following ‘false’ branch (when ‘pc’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: following ‘false’ branch (when ‘pmederr’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_true: following ‘true’ branch (when ‘pnafit’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:17: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1646:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: following ‘false’ branch (when ‘factor > 0.0f’)...
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1652:14: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1652:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1655:9: call_function: calling ‘ptaGetQuadraticLSF’ from ‘ptaNoisyQuadraticLSF’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1550]
leptonica-1.87.0/src/ptafunc1.c:1211:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘f[1]’
leptonica-1.87.0/src/ptafunc1.c:1626:1: enter_function: entry to ‘ptaNoisyQuadraticLSF’
leptonica-1.87.0/src/ptafunc1.c:1640:8: branch_true: following ‘true’ branch (when ‘pptad’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1640:16: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1641:8: branch_false: following ‘false’ branch (when ‘pa’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: following ‘false’ branch (when ‘pb’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: following ‘false’ branch (when ‘pc’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: following ‘false’ branch (when ‘pmederr’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_true: following ‘true’ branch (when ‘pnafit’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:17: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1646:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: following ‘false’ branch (when ‘factor > 0.0f’)...
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1652:14: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1652:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1655:9: call_function: calling ‘ptaGetQuadraticLSF’ from ‘ptaNoisyQuadraticLSF’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1551]
leptonica-1.87.0/src/ptafunc1.c:1214:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘f[2]’
leptonica-1.87.0/src/ptafunc1.c:1626:1: enter_function: entry to ‘ptaNoisyQuadraticLSF’
leptonica-1.87.0/src/ptafunc1.c:1640:8: branch_true: following ‘true’ branch (when ‘pptad’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1640:16: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1641:8: branch_false: following ‘false’ branch (when ‘pa’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: following ‘false’ branch (when ‘pb’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: following ‘false’ branch (when ‘pc’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: following ‘false’ branch (when ‘pmederr’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_true: following ‘true’ branch (when ‘pnafit’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:17: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1646:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: following ‘false’ branch (when ‘factor > 0.0f’)...
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1652:14: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1652:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1655:9: call_function: calling ‘ptaGetQuadraticLSF’ from ‘ptaNoisyQuadraticLSF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1552]
leptonica-1.87.0/src/ptafunc1.c:1222:11: warning[-Wanalyzer-malloc-leak]: leak of ‘f[0]’
leptonica-1.87.0/src/ptafunc1.c:1626:1: enter_function: entry to ‘ptaNoisyQuadraticLSF’
leptonica-1.87.0/src/ptafunc1.c:1640:8: branch_true: following ‘true’ branch (when ‘pptad’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1640:16: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1641:8: branch_false: following ‘false’ branch (when ‘pa’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: following ‘false’ branch (when ‘pb’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: following ‘false’ branch (when ‘pc’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: following ‘false’ branch (when ‘pmederr’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_true: following ‘true’ branch (when ‘pnafit’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:17: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1646:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: following ‘false’ branch (when ‘factor > 0.0f’)...
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1652:14: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1652:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1655:9: call_function: calling ‘ptaGetQuadraticLSF’ from ‘ptaNoisyQuadraticLSF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1553]
leptonica-1.87.0/src/ptafunc1.c:1222:11: warning[-Wanalyzer-malloc-leak]: leak of ‘f[1]’
leptonica-1.87.0/src/ptafunc1.c:1626:1: enter_function: entry to ‘ptaNoisyQuadraticLSF’
leptonica-1.87.0/src/ptafunc1.c:1640:8: branch_true: following ‘true’ branch (when ‘pptad’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1640:16: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1641:8: branch_false: following ‘false’ branch (when ‘pa’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: following ‘false’ branch (when ‘pb’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: following ‘false’ branch (when ‘pc’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: following ‘false’ branch (when ‘pmederr’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_true: following ‘true’ branch (when ‘pnafit’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:17: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1646:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: following ‘false’ branch (when ‘factor > 0.0f’)...
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1652:14: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1652:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1655:9: call_function: calling ‘ptaGetQuadraticLSF’ from ‘ptaNoisyQuadraticLSF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1554]
leptonica-1.87.0/src/ptafunc1.c:1222:11: warning[-Wanalyzer-malloc-leak]: leak of ‘f[2]’
leptonica-1.87.0/src/ptafunc1.c:1626:1: enter_function: entry to ‘ptaNoisyQuadraticLSF’
leptonica-1.87.0/src/ptafunc1.c:1640:8: branch_true: following ‘true’ branch (when ‘pptad’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1640:16: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1641:8: branch_false: following ‘false’ branch (when ‘pa’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1642:8: branch_false: following ‘false’ branch (when ‘pb’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1643:8: branch_false: following ‘false’ branch (when ‘pc’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1644:8: branch_false: following ‘false’ branch (when ‘pmederr’ is NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1645:8: branch_true: following ‘true’ branch (when ‘pnafit’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1645:17: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:1646:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1648:8: branch_false: following ‘false’ branch (when ‘factor > 0.0f’)...
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1650:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:1652:14: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1652:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:1655:9: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:1655:9: call_function: calling ‘ptaGetQuadraticLSF’ from ‘ptaNoisyQuadraticLSF’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1555]
leptonica-1.87.0/src/ptafunc1.c:2613:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2613:11: throw: if ‘numaPseudorandomSequence’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2613:11: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1556]
leptonica-1.87.0/src/ptafunc1.c:2614:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2614:11: throw: if ‘numaPseudorandomSequence’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2614:11: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1557]
leptonica-1.87.0/src/ptafunc1.c:2615:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2615:11: throw: if ‘numaPseudorandomSequence’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2615:11: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1558]
leptonica-1.87.0/src/ptafunc1.c:2617:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ptafunc1.c:2617:28: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:2617:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2617:9: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1559]
leptonica-1.87.0/src/ptafunc1.c:2618:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ptafunc1.c:2617:28: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:2618:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2618:9: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1560]
leptonica-1.87.0/src/ptafunc1.c:2619:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ptafunc1.c:2617:28: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:2619:9: throw: if ‘numaGetIValue’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2619:9: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1561]
leptonica-1.87.0/src/ptafunc1.c:2620:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/ptafunc1.c:2617:28: branch_true: ...to here
leptonica-1.87.0/src/ptafunc1.c:2620:9: throw: if ‘composeRGBPixel’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2620:9: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1562]
leptonica-1.87.0/src/ptafunc1.c:2622:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2622:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2622:5: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2622:5: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1563]
leptonica-1.87.0/src/ptafunc1.c:2623:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2622:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2623:5: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2623:5: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1564]
leptonica-1.87.0/src/ptafunc1.c:2624:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pixela’
leptonica-1.87.0/src/ptafunc1.c:2596:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2598:8: branch_false: following ‘false’ branch (when ‘ptaa’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2600:12: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2601:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2604:17: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2604:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2606:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2609:31: acquire_memory: allocated here
leptonica-1.87.0/src/ptafunc1.c:2609:8: branch_false: following ‘false’ branch (when ‘pixela’ is non-NULL)...
leptonica-1.87.0/src/ptafunc1.c:2613:11: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2616:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/ptafunc1.c:2622:5: branch_false: ...to here
leptonica-1.87.0/src/ptafunc1.c:2624:5: throw: if ‘numaDestroy’ throws an exception...
leptonica-1.87.0/src/ptafunc1.c:2624:5: danger: ‘pixela’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def1565]
leptonica-1.87.0/src/ptra.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1566]
leptonica-1.87.0/src/ptra.c:155:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pa’
leptonica-1.87.0/src/ptra.c:950:1: enter_function: entry to ‘ptraaFlattenToPtra’
leptonica-1.87.0/src/ptra.c:955:8: branch_false: following ‘false’ branch (when ‘paa’ is non-NULL)...
leptonica-1.87.0/src/ptra.c:958:11: branch_false: ...to here
leptonica-1.87.0/src/ptra.c:958:11: call_function: calling ‘ptraCreate’ from ‘ptraaFlattenToPtra’
Error: CPPCHECK_WARNING (CWE-476): [#def1567]
leptonica-1.87.0/src/ptra.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pa
Error: CPPCHECK_WARNING (CWE-476): [#def1568]
leptonica-1.87.0/src/ptra.c:160: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pa
Error: CPPCHECK_WARNING (CWE-476): [#def1569]
leptonica-1.87.0/src/ptra.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pa
Error: CPPCHECK_WARNING (CWE-476): [#def1570]
leptonica-1.87.0/src/ptra.c:776: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: paa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1571]
leptonica-1.87.0/src/ptra.c:776:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘paa’
leptonica-1.87.0/src/ptra.c:772:8: branch_false: following ‘false’ branch (when ‘n > 0’)...
leptonica-1.87.0/src/ptra.c:775:22: branch_false: ...to here
leptonica-1.87.0/src/ptra.c:775:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/ptra.c:776:9: danger: ‘calloc(1, 16)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1572]
leptonica-1.87.0/src/ptra.c:780: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: paa
Error: CPPCHECK_WARNING (CWE-476): [#def1573]
leptonica-1.87.0/src/quadtree.c:471: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xstart
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1574]
leptonica-1.87.0/src/quadtree.c:471:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xstart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:464:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:471:13: danger: ‘xstart + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1575]
leptonica-1.87.0/src/quadtree.c:473: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xend
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1576]
leptonica-1.87.0/src/quadtree.c:473:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:465:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:473:13: danger: ‘xend + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1577]
leptonica-1.87.0/src/quadtree.c:474: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ystart
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1578]
leptonica-1.87.0/src/quadtree.c:474:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ystart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:466:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:474:13: danger: ‘ystart + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1579]
leptonica-1.87.0/src/quadtree.c:476: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: yend
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1580]
leptonica-1.87.0/src/quadtree.c:476:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘yend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:467:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:476:13: danger: ‘yend + (long unsigned int)i * 4’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1581]
leptonica-1.87.0/src/quadtree.c:484:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:465:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:484:16: throw: if ‘boxaCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:484:16: danger: ‘xend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1582]
leptonica-1.87.0/src/quadtree.c:484:16: warning[-Wanalyzer-malloc-leak]: leak of ‘xstart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:464:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:484:16: throw: if ‘boxaCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:484:16: danger: ‘xstart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1583]
leptonica-1.87.0/src/quadtree.c:484:16: warning[-Wanalyzer-malloc-leak]: leak of ‘yend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:467:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:484:16: throw: if ‘boxaCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:484:16: danger: ‘yend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1584]
leptonica-1.87.0/src/quadtree.c:484:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ystart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:466:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:484:16: throw: if ‘boxaCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:484:16: danger: ‘ystart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1585]
leptonica-1.87.0/src/quadtree.c:489:23: warning[-Wanalyzer-malloc-leak]: leak of ‘xend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:465:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:489:23: throw: if ‘boxCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:489:23: danger: ‘xend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1586]
leptonica-1.87.0/src/quadtree.c:489:23: warning[-Wanalyzer-malloc-leak]: leak of ‘xstart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:464:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:489:23: throw: if ‘boxCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:489:23: danger: ‘xstart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1587]
leptonica-1.87.0/src/quadtree.c:489:23: warning[-Wanalyzer-malloc-leak]: leak of ‘yend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:467:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:489:23: throw: if ‘boxCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:489:23: danger: ‘yend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1588]
leptonica-1.87.0/src/quadtree.c:489:23: warning[-Wanalyzer-malloc-leak]: leak of ‘ystart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:466:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:489:23: throw: if ‘boxCreate’ throws an exception...
leptonica-1.87.0/src/quadtree.c:489:23: danger: ‘ystart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1589]
leptonica-1.87.0/src/quadtree.c:490:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:465:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:490:17: throw: if ‘boxaAddBox’ throws an exception...
leptonica-1.87.0/src/quadtree.c:490:17: danger: ‘xend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1590]
leptonica-1.87.0/src/quadtree.c:490:17: warning[-Wanalyzer-malloc-leak]: leak of ‘xstart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:464:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:490:17: throw: if ‘boxaAddBox’ throws an exception...
leptonica-1.87.0/src/quadtree.c:490:17: danger: ‘xstart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1591]
leptonica-1.87.0/src/quadtree.c:490:17: warning[-Wanalyzer-malloc-leak]: leak of ‘yend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:467:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:490:17: throw: if ‘boxaAddBox’ throws an exception...
leptonica-1.87.0/src/quadtree.c:490:17: danger: ‘yend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1592]
leptonica-1.87.0/src/quadtree.c:490:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ystart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:466:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:490:17: throw: if ‘boxaAddBox’ throws an exception...
leptonica-1.87.0/src/quadtree.c:490:17: danger: ‘ystart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1593]
leptonica-1.87.0/src/quadtree.c:493:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:465:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_false: following ‘false’ branch (when ‘j >= nside’)...
leptonica-1.87.0/src/quadtree.c:485:32: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:493:9: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:493:9: throw: if ‘boxaaAddBoxa’ throws an exception...
leptonica-1.87.0/src/quadtree.c:493:9: danger: ‘xend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1594]
leptonica-1.87.0/src/quadtree.c:493:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xstart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:464:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_false: following ‘false’ branch (when ‘j >= nside’)...
leptonica-1.87.0/src/quadtree.c:485:32: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:493:9: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:493:9: throw: if ‘boxaaAddBoxa’ throws an exception...
leptonica-1.87.0/src/quadtree.c:493:9: danger: ‘xstart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1595]
leptonica-1.87.0/src/quadtree.c:493:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yend’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:467:23: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_false: following ‘false’ branch (when ‘j >= nside’)...
leptonica-1.87.0/src/quadtree.c:485:32: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:493:9: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:493:9: throw: if ‘boxaaAddBoxa’ throws an exception...
leptonica-1.87.0/src/quadtree.c:493:9: danger: ‘yend’ leaks here; was allocated at [(7)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1596]
leptonica-1.87.0/src/quadtree.c:493:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ystart’
leptonica-1.87.0/src/quadtree.c:455:8: branch_false: following ‘false’ branch (when ‘nlevels > 0’)...
leptonica-1.87.0/src/quadtree.c:457:19: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:457:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:459:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/quadtree.c:462:11: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:466:25: acquire_memory: allocated here
leptonica-1.87.0/src/quadtree.c:468:17: branch_true: following ‘true’ branch (when ‘k < nlevels’)...
leptonica-1.87.0/src/quadtree.c:469:9: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:471:25: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:472:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:473:33: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:475:16: branch_false: following ‘false’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/quadtree.c:476:23: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:470:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:483:21: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_true: following ‘true’ branch (when ‘i < nside’)...
leptonica-1.87.0/src/quadtree.c:486:22: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_true: following ‘true’ branch (when ‘j < nside’)...
leptonica-1.87.0/src/quadtree.c:488:26: branch_true: ...to here
leptonica-1.87.0/src/quadtree.c:487:25: branch_false: following ‘false’ branch (when ‘j >= nside’)...
leptonica-1.87.0/src/quadtree.c:485:32: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:485:21: branch_false: following ‘false’ branch (when ‘i >= nside’)...
leptonica-1.87.0/src/quadtree.c:493:9: branch_false: ...to here
leptonica-1.87.0/src/quadtree.c:493:9: throw: if ‘boxaaAddBoxa’ throws an exception...
leptonica-1.87.0/src/quadtree.c:493:9: danger: ‘ystart’ leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1597]
leptonica-1.87.0/src/queue.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lq
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1598]
leptonica-1.87.0/src/queue.c:101:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lq’
leptonica-1.87.0/src/queue.c:100:21: acquire_memory: this call could return NULL
leptonica-1.87.0/src/queue.c:101:9: danger: ‘calloc(1, 32)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1599]
leptonica-1.87.0/src/queue.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lq
Error: CPPCHECK_WARNING (CWE-476): [#def1600]
leptonica-1.87.0/src/queue.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lq
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1601]
leptonica-1.87.0/src/rank.c:321:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo16’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:315:26: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:321:12: throw: if ‘pixCreateTemplate’ throws an exception...
leptonica-1.87.0/src/rank.c:321:12: danger: ‘histo16’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1602]
leptonica-1.87.0/src/rank.c:321:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:321:12: throw: if ‘pixCreateTemplate’ throws an exception...
leptonica-1.87.0/src/rank.c:321:12: danger: ‘histo’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1603]
leptonica-1.87.0/src/rank.c:322:13: warning[-Wanalyzer-malloc-leak]: leak of ‘histo16’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:315:26: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:322:13: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/rank.c:322:13: danger: ‘histo16’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1604]
leptonica-1.87.0/src/rank.c:322:13: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:322:13: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/rank.c:322:13: danger: ‘histo’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1605]
leptonica-1.87.0/src/rank.c:323:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo16’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:315:26: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:323:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/rank.c:323:12: danger: ‘histo16’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1606]
leptonica-1.87.0/src/rank.c:323:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:323:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/rank.c:323:12: danger: ‘histo’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1607]
leptonica-1.87.0/src/rank.c:324:13: warning[-Wanalyzer-malloc-leak]: leak of ‘histo16’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:315:26: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:324:13: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/rank.c:324:13: danger: ‘histo16’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1608]
leptonica-1.87.0/src/rank.c:324:13: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:324:13: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/rank.c:324:13: danger: ‘histo’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1609]
leptonica-1.87.0/src/rank.c:325:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo16’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:315:26: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:325:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/rank.c:325:12: danger: ‘histo16’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1610]
leptonica-1.87.0/src/rank.c:325:12: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:325:12: throw: if ‘pixGetWpl’ throws an exception...
leptonica-1.87.0/src/rank.c:325:12: danger: ‘histo’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1611]
leptonica-1.87.0/src/rank.c:333:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/rank.c:329:8: branch_true: following ‘true’ branch (when ‘wf < hf’)...
leptonica-1.87.0/src/rank.c:329:8: branch_true: ...to here
leptonica-1.87.0/src/rank.c:330:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rank.c:330:21: branch_true: ...to here
leptonica-1.87.0/src/rank.c:332:25: branch_true: following ‘true’ branch (when ‘n != 256’)...
leptonica-1.87.0/src/rank.c:333:22: branch_true: ...to here
leptonica-1.87.0/src/rank.c:333:17: danger: ‘histo + (long unsigned int)n * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1612]
leptonica-1.87.0/src/rank.c:393:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/rank.c:329:8: branch_false: following ‘false’ branch (when ‘wf >= hf’)...
leptonica-1.87.0/src/rank.c:329:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:390:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rank.c:390:21: branch_true: ...to here
leptonica-1.87.0/src/rank.c:392:25: branch_true: following ‘true’ branch (when ‘n != 256’)...
leptonica-1.87.0/src/rank.c:393:22: branch_true: ...to here
leptonica-1.87.0/src/rank.c:393:17: danger: ‘histo + (long unsigned int)n * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1613]
leptonica-1.87.0/src/rank.c:447:5: warning[-Wanalyzer-malloc-leak]: leak of ‘histo16’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:315:26: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:390:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:447:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:447:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/rank.c:447:5: danger: ‘histo16’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1614]
leptonica-1.87.0/src/rank.c:447:5: warning[-Wanalyzer-malloc-leak]: leak of ‘histo’
leptonica-1.87.0/src/rank.c:279:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:281:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:282:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:284:9: branch_false: ...to here
leptonica-1.87.0/src/rank.c:284:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:286:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:286:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:288:8: branch_false: ...to here
leptonica-1.87.0/src/rank.c:309:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:314:24: branch_false: ...to here
leptonica-1.87.0/src/rank.c:314:24: acquire_memory: allocated here
leptonica-1.87.0/src/rank.c:390:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rank.c:447:5: branch_false: ...to here
leptonica-1.87.0/src/rank.c:447:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/rank.c:447:5: danger: ‘histo’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1615]
leptonica-1.87.0/src/rbtree.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
Error: CPPCHECK_WARNING (CWE-476): [#def1616]
leptonica-1.87.0/src/rbtree.c:609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1617]
leptonica-1.87.0/src/rbtree.c:610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1618]
leptonica-1.87.0/src/rbtree.c:611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1619]
leptonica-1.87.0/src/rbtree.c:612: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1620]
leptonica-1.87.0/src/rbtree.c:613: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def1621]
leptonica-1.87.0/src/rbtree.c:616: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1622]
leptonica-1.87.0/src/rbtree.c:636:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘n’
leptonica-1.87.0/src/rbtree.c:773:13: enter_function: entry to ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:781:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:782:16: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:782:16: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:782:16: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:783:27: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:783:27: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:783:16: call_function: inlined call to ‘node_color’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:781:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:784:27: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:784:27: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:784:27: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:785:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:785:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:786:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:786:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:787:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:787:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:787:9: call_function: calling ‘rotate_left’ from ‘delete_case5’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1623]
leptonica-1.87.0/src/rbtree.c:647:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘n’
leptonica-1.87.0/src/rbtree.c:773:13: enter_function: entry to ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:774:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:775:9: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:775:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:775:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:776:20: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:776:20: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:776:9: call_function: inlined call to ‘node_color’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:774:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:777:20: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:777:20: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:777:20: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:778:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:778:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:779:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:779:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:780:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:780:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:780:9: call_function: calling ‘rotate_right’ from ‘delete_case5’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1624]
leptonica-1.87.0/src/rbtree.c:752:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/rbtree.c:749:13: enter_function: entry to ‘delete_case3’
leptonica-1.87.0/src/rbtree.c:751:9: call_function: calling ‘sibling’ from ‘delete_case3’
leptonica-1.87.0/src/rbtree.c:751:9: return_function: returning to ‘delete_case3’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:751:9: call_function: inlined call to ‘node_color’ from ‘delete_case3’
leptonica-1.87.0/src/rbtree.c:752:20: branch_false: ...to here
leptonica-1.87.0/src/rbtree.c:752:20: call_function: calling ‘sibling’ from ‘delete_case3’
leptonica-1.87.0/src/rbtree.c:752:20: return_function: returning to ‘delete_case3’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:752:20: danger: dereference of NULL ‘sibling(n)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1625]
leptonica-1.87.0/src/rbtree.c:779:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/rbtree.c:773:13: enter_function: entry to ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:774:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:775:9: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:775:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:775:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:776:20: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:776:20: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:776:9: call_function: inlined call to ‘node_color’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:774:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:777:20: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:777:20: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:777:20: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:778:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:778:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:779:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:779:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:779:9: danger: dereference of NULL ‘sibling(n)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1626]
leptonica-1.87.0/src/rbtree.c:786:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/rbtree.c:773:13: enter_function: entry to ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:781:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:782:16: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:782:16: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:782:16: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:783:27: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:783:27: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:783:16: call_function: inlined call to ‘node_color’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:781:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:784:27: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:784:27: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:784:27: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:785:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:785:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:786:9: call_function: calling ‘sibling’ from ‘delete_case5’
leptonica-1.87.0/src/rbtree.c:786:9: return_function: returning to ‘delete_case5’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:786:9: danger: dereference of NULL ‘sibling(n)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1627]
leptonica-1.87.0/src/rbtree.c:793:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/rbtree.c:792:13: enter_function: entry to ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: call_function: calling ‘sibling’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: return_function: returning to ‘delete_case6’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:793:25: call_function: inlined call to ‘node_color’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: branch_false: ...to here
leptonica-1.87.0/src/rbtree.c:793:5: danger: dereference of NULL ‘sibling(n)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1628]
leptonica-1.87.0/src/rbtree.c:796:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/rbtree.c:792:13: enter_function: entry to ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: call_function: calling ‘sibling’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: return_function: returning to ‘delete_case6’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:793:25: call_function: inlined call to ‘node_color’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:795:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rbtree.c:796:24: branch_true: ...to here
leptonica-1.87.0/src/rbtree.c:796:24: call_function: calling ‘sibling’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:796:24: return_function: returning to ‘delete_case6’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:796:24: danger: dereference of NULL ‘sibling(n)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1629]
leptonica-1.87.0/src/rbtree.c:803:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
leptonica-1.87.0/src/rbtree.c:792:13: enter_function: entry to ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: call_function: calling ‘sibling’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:793:5: return_function: returning to ‘delete_case6’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:793:25: call_function: inlined call to ‘node_color’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:795:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rbtree.c:803:24: branch_false: ...to here
leptonica-1.87.0/src/rbtree.c:803:24: call_function: calling ‘sibling’ from ‘delete_case6’
leptonica-1.87.0/src/rbtree.c:803:24: return_function: returning to ‘delete_case6’ from ‘sibling’
leptonica-1.87.0/src/rbtree.c:803:24: danger: dereference of NULL ‘sibling(n)’
Error: CPPCHECK_WARNING (CWE-476): [#def1630]
leptonica-1.87.0/src/readbarcode.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: barstr
Error: COMPILER_WARNING (CWE-563): [#def1631]
leptonica-1.87.0/src/readbarcode.h:78:21: warning[-Wunused-variable]: ‘SupportedBarcodeFormatName’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1632]
leptonica-1.87.0/src/readbarcode.h:93:20: warning[-Wunused-variable]: ‘Code2of5’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1633]
leptonica-1.87.0/src/readbarcode.h:107:20: warning[-Wunused-variable]: ‘CodeI2of5’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1634]
leptonica-1.87.0/src/readbarcode.h:120:20: warning[-Wunused-variable]: ‘Code93’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1635]
leptonica-1.87.0/src/readbarcode.h:144:20: warning[-Wunused-variable]: ‘Code39’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1636]
leptonica-1.87.0/src/readbarcode.h:169:20: warning[-Wunused-variable]: ‘Codabar’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1637]
leptonica-1.87.0/src/readbarcode.h:184:20: warning[-Wunused-variable]: ‘Upca’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1638]
leptonica-1.87.0/src/bardecode.c:68: included_from: Included from here.
leptonica-1.87.0/src/readbarcode.h:198:20: warning[-Wunused-variable]: ‘Code128’ defined but not used
Error: COMPILER_WARNING (CWE-563): [#def1639]
leptonica-1.87.0/src/readfile.c:96:20: warning[-Wunused-variable]: ‘FILE_JP2K’ defined but not used
Error: CPPCHECK_WARNING (CWE-457): [#def1640]
leptonica-1.87.0/src/readfile.c:671: error[uninitvar]: Uninitialized variable: twobytepw
Error: CPPCHECK_WARNING (CWE-476): [#def1641]
leptonica-1.87.0/src/recogbasic.c:433: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1642]
leptonica-1.87.0/src/recogbasic.c:434: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1643]
leptonica-1.87.0/src/recogbasic.c:434:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘recog’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogbasic.c:434:5: danger: ‘recog’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1644]
leptonica-1.87.0/src/recogbasic.c:435: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1645]
leptonica-1.87.0/src/recogbasic.c:436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1646]
leptonica-1.87.0/src/recogbasic.c:437: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1647]
leptonica-1.87.0/src/recogbasic.c:438: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1648]
leptonica-1.87.0/src/recogbasic.c:440: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1649]
leptonica-1.87.0/src/recogbasic.c:440:18: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:440:18: throw: if ‘bmfCreate’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:440:18: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1650]
leptonica-1.87.0/src/recogbasic.c:441: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1651]
leptonica-1.87.0/src/recogbasic.c:442: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1652]
leptonica-1.87.0/src/recogbasic.c:445: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1653]
leptonica-1.87.0/src/recogbasic.c:445:22: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:445:22: throw: if ‘makePixelCentroidTab8’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:445:22: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1654]
leptonica-1.87.0/src/recogbasic.c:446: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1655]
leptonica-1.87.0/src/recogbasic.c:446:21: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:446:21: throw: if ‘makePixelSumTab8’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:446:21: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1656]
leptonica-1.87.0/src/recogbasic.c:447: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1657]
leptonica-1.87.0/src/recogbasic.c:447:22: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:447:22: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:447:22: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1658]
leptonica-1.87.0/src/recogbasic.c:448: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1659]
leptonica-1.87.0/src/recogbasic.c:448:25: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:448:25: throw: if ‘l_dnaCreate’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:448:25: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1660]
leptonica-1.87.0/src/recogbasic.c:452: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1661]
leptonica-1.87.0/src/recogbasic.c:453: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: CPPCHECK_WARNING (CWE-476): [#def1662]
leptonica-1.87.0/src/recogbasic.c:456: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1663]
leptonica-1.87.0/src/recogbasic.c:456:22: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:456:22: throw: if ‘pixaaCreate’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:456:22: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1664]
leptonica-1.87.0/src/recogbasic.c:459: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1665]
leptonica-1.87.0/src/recogbasic.c:459:26: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:459:26: throw: if ‘pixaCreate’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:459:26: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def1666]
leptonica-1.87.0/src/recogbasic.c:460: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: recog
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1667]
leptonica-1.87.0/src/recogbasic.c:460:27: warning[-Wanalyzer-malloc-leak]: leak of ‘recog’
leptonica-1.87.0/src/recogbasic.c:405:1: enter_function: entry to ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:415:8: branch_false: following ‘false’ branch (when ‘linew <= 10’)...
leptonica-1.87.0/src/recogbasic.c:417:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:432:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:439:5: call_function: calling ‘recogSetParams’ from ‘recogCreate’
leptonica-1.87.0/src/recogbasic.c:439:5: return_function: returning to ‘recogCreate’ from ‘recogSetParams’
leptonica-1.87.0/src/recogbasic.c:460:27: throw: if ‘pixaCreate’ throws an exception...
leptonica-1.87.0/src/recogbasic.c:460:27: danger: ‘recog’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1668]
leptonica-1.87.0/src/recogbasic.c:1011:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
leptonica-1.87.0/src/recogbasic.c:1034:1: enter_function: entry to ‘recogWriteMem’
leptonica-1.87.0/src/recogbasic.c:1042:8: branch_true: following ‘true’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/recogbasic.c:1042:16: branch_true: ...to here
leptonica-1.87.0/src/recogbasic.c:1043:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/recogbasic.c:1045:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:1045:8: branch_false: following ‘false’ branch (when ‘psize’ is non-NULL)...
leptonica-1.87.0/src/recogbasic.c:1047:8: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:1047:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogbasic.c:1051:15: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:1051:15: acquire_memory: allocated here
leptonica-1.87.0/src/recogbasic.c:1051:8: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
leptonica-1.87.0/src/recogbasic.c:1053:11: branch_false: ...to here
leptonica-1.87.0/src/recogbasic.c:1053:11: call_function: calling ‘recogWriteStream’ from ‘recogWriteMem’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1669]
leptonica-1.87.0/src/recogdid.c:395:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:395:16: throw: if ‘numaGetIArray’ throws an exception...
leptonica-1.87.0/src/recogdid.c:395:16: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1670]
leptonica-1.87.0/src/recogdid.c:396:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:396:19: throw: if ‘numaGetIArray’ throws an exception...
leptonica-1.87.0/src/recogdid.c:396:19: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def1671]
leptonica-1.87.0/src/recogdid.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ycent1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1672]
leptonica-1.87.0/src/recogdid.c:402:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogdid.c:401:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogdid.c:402:9: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:402:9: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogdid.c:402:9: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:402:9: danger: ‘ycent1 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def1673]
leptonica-1.87.0/src/recogdid.c:406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ycent1
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1674]
leptonica-1.87.0/src/recogdid.c:416:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:401:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:406:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:416:12: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/recogdid.c:416:12: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def1675]
leptonica-1.87.0/src/recogdid.c:418: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ycent1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1676]
leptonica-1.87.0/src/recogdid.c:418:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogdid.c:401:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:406:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:417:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogdid.c:418:34: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:418:28: danger: ‘ycent1 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1677]
leptonica-1.87.0/src/recogdid.c:422:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:417:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogdid.c:418:34: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:421:30: branch_true: following ‘true’ branch (when ‘j != 2’)...
leptonica-1.87.0/src/recogdid.c:422:13: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:422:13: throw: if ‘pixClearAll’ throws an exception...
leptonica-1.87.0/src/recogdid.c:422:13: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1678]
leptonica-1.87.0/src/recogdid.c:424:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:417:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogdid.c:418:34: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:421:30: branch_true: following ‘true’ branch (when ‘j != 2’)...
leptonica-1.87.0/src/recogdid.c:422:13: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:424:13: throw: if ‘pixRasterop’ throws an exception...
leptonica-1.87.0/src/recogdid.c:424:13: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1679]
leptonica-1.87.0/src/recogdid.c:425:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:417:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogdid.c:418:34: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:421:30: branch_true: following ‘true’ branch (when ‘j != 2’)...
leptonica-1.87.0/src/recogdid.c:422:13: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:425:13: throw: if ‘pixRasterop’ throws an exception...
leptonica-1.87.0/src/recogdid.c:425:13: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1680]
leptonica-1.87.0/src/recogdid.c:426:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:417:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogdid.c:418:34: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:421:30: branch_true: following ‘true’ branch (when ‘j != 2’)...
leptonica-1.87.0/src/recogdid.c:422:13: branch_true: ...to here
leptonica-1.87.0/src/recogdid.c:426:13: throw: if ‘pixCountPixels’ throws an exception...
leptonica-1.87.0/src/recogdid.c:426:13: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1681]
leptonica-1.87.0/src/recogdid.c:437:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:401:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:406:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:417:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogdid.c:435:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:437:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/recogdid.c:437:5: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1682]
leptonica-1.87.0/src/recogdid.c:438:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogdid.c:355:1: enter_function: entry to ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:366:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogdid.c:368:16: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:368:16: call_function: calling ‘recogGetDid’ from ‘recogMakeDecodingArray’
leptonica-1.87.0/src/recogdid.c:368:16: return_function: returning to ‘recogMakeDecodingArray’ from ‘recogGetDid’
leptonica-1.87.0/src/recogdid.c:368:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:370:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:378:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:384:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:394:25: acquire_memory: allocated here
leptonica-1.87.0/src/recogdid.c:401:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogdid.c:406:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:417:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogdid.c:435:5: branch_false: ...to here
leptonica-1.87.0/src/recogdid.c:438:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/recogdid.c:438:5: danger: ‘ycent1’ leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-476): [#def1683]
leptonica-1.87.0/src/recogdid.c:758: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1684]
leptonica-1.87.0/src/recogdid.c:759: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1685]
leptonica-1.87.0/src/recogdid.c:760: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1686]
leptonica-1.87.0/src/recogdid.c:761: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1687]
leptonica-1.87.0/src/recogdid.c:762: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1688]
leptonica-1.87.0/src/recogdid.c:763: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1689]
leptonica-1.87.0/src/recogdid.c:764: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1690]
leptonica-1.87.0/src/recogdid.c:765: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1691]
leptonica-1.87.0/src/recogdid.c:766: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1692]
leptonica-1.87.0/src/recogdid.c:767: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1693]
leptonica-1.87.0/src/recogdid.c:768: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1694]
leptonica-1.87.0/src/recogdid.c:769: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1695]
leptonica-1.87.0/src/recogdid.c:770: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1696]
leptonica-1.87.0/src/recogdid.c:771: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1697]
leptonica-1.87.0/src/recogdid.c:772: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1698]
leptonica-1.87.0/src/recogdid.c:775: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1699]
leptonica-1.87.0/src/recogdid.c:776: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1700]
leptonica-1.87.0/src/recogdid.c:777: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1701]
leptonica-1.87.0/src/recogdid.c:778: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1702]
leptonica-1.87.0/src/recogdid.c:779: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1703]
leptonica-1.87.0/src/recogdid.c:780: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1704]
leptonica-1.87.0/src/recogdid.c:781: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1705]
leptonica-1.87.0/src/recogdid.c:782: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1706]
leptonica-1.87.0/src/recogdid.c:783: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1707]
leptonica-1.87.0/src/recogdid.c:784: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1708]
leptonica-1.87.0/src/recogdid.c:788: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: CPPCHECK_WARNING (CWE-476): [#def1709]
leptonica-1.87.0/src/recogdid.c:790: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: did
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1710]
leptonica-1.87.0/src/recogident.c:780:16: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:780:16: throw: if ‘numaGetIArray’ throws an exception...
leptonica-1.87.0/src/recogident.c:780:16: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1711]
leptonica-1.87.0/src/recogident.c:780:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:780:16: throw: if ‘numaGetIArray’ throws an exception...
leptonica-1.87.0/src/recogident.c:780:16: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1712]
leptonica-1.87.0/src/recogident.c:781:19: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:781:19: throw: if ‘numaGetIArray’ throws an exception...
leptonica-1.87.0/src/recogident.c:781:19: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1713]
leptonica-1.87.0/src/recogident.c:781:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:781:19: throw: if ‘numaGetIArray’ throws an exception...
leptonica-1.87.0/src/recogident.c:781:19: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1714]
leptonica-1.87.0/src/recogident.c:787: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: area1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1715]
leptonica-1.87.0/src/recogident.c:787:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:787:9: danger: ‘area1 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1716]
leptonica-1.87.0/src/recogident.c:788: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ycent1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1717]
leptonica-1.87.0/src/recogident.c:788:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:9: danger: ‘ycent1 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1718]
leptonica-1.87.0/src/recogident.c:792: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: area1
Error: CPPCHECK_WARNING (CWE-476): [#def1719]
leptonica-1.87.0/src/recogident.c:793: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ycent1
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1720]
leptonica-1.87.0/src/recogident.c:802:12: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:802:12: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:802:12: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1721]
leptonica-1.87.0/src/recogident.c:802:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:802:12: throw: if ‘pixCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:802:12: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1722]
leptonica-1.87.0/src/recogident.c:807: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ycent1
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1723]
leptonica-1.87.0/src/recogident.c:807:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:807:28: danger: ‘ycent1 + (long unsigned int)i * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1724]
leptonica-1.87.0/src/recogident.c:809:13: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:809:13: throw: if ‘pixClearAll’ throws an exception...
leptonica-1.87.0/src/recogident.c:809:13: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1725]
leptonica-1.87.0/src/recogident.c:809:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:809:13: throw: if ‘pixClearAll’ throws an exception...
leptonica-1.87.0/src/recogident.c:809:13: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1726]
leptonica-1.87.0/src/recogident.c:810:13: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:810:13: throw: if ‘pixRasterop’ throws an exception...
leptonica-1.87.0/src/recogident.c:810:13: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1727]
leptonica-1.87.0/src/recogident.c:810:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:810:13: throw: if ‘pixRasterop’ throws an exception...
leptonica-1.87.0/src/recogident.c:810:13: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1728]
leptonica-1.87.0/src/recogident.c:811:13: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:811:13: throw: if ‘pixRasterop’ throws an exception...
leptonica-1.87.0/src/recogident.c:811:13: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1729]
leptonica-1.87.0/src/recogident.c:811:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:811:13: throw: if ‘pixRasterop’ throws an exception...
leptonica-1.87.0/src/recogident.c:811:13: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1730]
leptonica-1.87.0/src/recogident.c:812:13: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:812:13: throw: if ‘pixCountPixels’ throws an exception...
leptonica-1.87.0/src/recogident.c:812:13: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1731]
leptonica-1.87.0/src/recogident.c:812:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_false: following ‘false’ branch (when ‘debugflag <= 0’)...
leptonica-1.87.0/src/recogident.c:771:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:808:30: branch_true: following ‘true’ branch (when ‘j <= maxyshift’)...
leptonica-1.87.0/src/recogident.c:809:13: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:812:13: throw: if ‘pixCountPixels’ throws an exception...
leptonica-1.87.0/src/recogident.c:812:13: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1732]
leptonica-1.87.0/src/recogident.c:814: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: area1
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1733]
leptonica-1.87.0/src/recogident.c:822:17: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:815:16: branch_true: following ‘true’ branch (when ‘maxscore < score’)...
leptonica-1.87.0/src/recogident.c:815:16: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:821:16: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:822:17: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:822:17: throw: if ‘fpixSetPixel’ throws an exception...
leptonica-1.87.0/src/recogident.c:822:17: danger: ‘area1’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1734]
leptonica-1.87.0/src/recogident.c:822:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/recogident.c:787:14: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:788:21: branch_true: following ‘true’ branch (when ‘sum == 0’)...
leptonica-1.87.0/src/recogident.c:788:21: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_true: following ‘true’ branch (when ‘i < nx’)...
leptonica-1.87.0/src/recogident.c:807:34: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:815:16: branch_true: following ‘true’ branch (when ‘maxscore < score’)...
leptonica-1.87.0/src/recogident.c:815:16: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:821:16: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:822:17: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:822:17: throw: if ‘fpixSetPixel’ throws an exception...
leptonica-1.87.0/src/recogident.c:822:17: danger: ‘ycent1’ leaks here; was allocated at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1735]
leptonica-1.87.0/src/recogident.c:828:9: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:828:9: throw: if ‘lept_mkdir’ throws an exception...
leptonica-1.87.0/src/recogident.c:828:9: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1736]
leptonica-1.87.0/src/recogident.c:828:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:828:9: throw: if ‘lept_mkdir’ throws an exception...
leptonica-1.87.0/src/recogident.c:828:9: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1737]
leptonica-1.87.0/src/recogident.c:829:17: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:829:17: throw: if ‘fpixDisplayMaxDynamicRange’ throws an exception...
leptonica-1.87.0/src/recogident.c:829:17: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1738]
leptonica-1.87.0/src/recogident.c:829:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:829:17: throw: if ‘fpixDisplayMaxDynamicRange’ throws an exception...
leptonica-1.87.0/src/recogident.c:829:17: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1739]
leptonica-1.87.0/src/recogident.c:830:17: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:830:17: throw: if ‘pixExpandReplicate’ throws an exception...
leptonica-1.87.0/src/recogident.c:830:17: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1740]
leptonica-1.87.0/src/recogident.c:830:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:830:17: throw: if ‘pixExpandReplicate’ throws an exception...
leptonica-1.87.0/src/recogident.c:830:17: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1741]
leptonica-1.87.0/src/recogident.c:832:9: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:832:9: throw: if ‘pixWrite’ throws an exception...
leptonica-1.87.0/src/recogident.c:832:9: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1742]
leptonica-1.87.0/src/recogident.c:832:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:832:9: throw: if ‘pixWrite’ throws an exception...
leptonica-1.87.0/src/recogident.c:832:9: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1743]
leptonica-1.87.0/src/recogident.c:833:9: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:833:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/recogident.c:833:9: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1744]
leptonica-1.87.0/src/recogident.c:833:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:833:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/recogident.c:833:9: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1745]
leptonica-1.87.0/src/recogident.c:834:9: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:834:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/recogident.c:834:9: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1746]
leptonica-1.87.0/src/recogident.c:834:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:834:9: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/recogident.c:834:9: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1747]
leptonica-1.87.0/src/recogident.c:835:9: warning[-Wanalyzer-malloc-leak]: leak of ‘area1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:778:24: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:835:9: throw: if ‘fpixDestroy’ throws an exception...
leptonica-1.87.0/src/recogident.c:835:9: danger: ‘area1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1748]
leptonica-1.87.0/src/recogident.c:835:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ycent1’
leptonica-1.87.0/src/recogident.c:746:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:748:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:750:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:752:9: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:752:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:758:5: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:760:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:767:10: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:769:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:770:31: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:779:27: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:786:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/recogident.c:786:17: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:806:17: branch_false: following ‘false’ branch (when ‘i >= nx’)...
leptonica-1.87.0/src/recogident.c:826:8: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:826:8: branch_true: following ‘true’ branch (when ‘debugflag > 0’)...
leptonica-1.87.0/src/recogident.c:828:9: branch_true: ...to here
leptonica-1.87.0/src/recogident.c:835:9: throw: if ‘fpixDestroy’ throws an exception...
leptonica-1.87.0/src/recogident.c:835:9: danger: ‘ycent1’ leaks here; was allocated at [(13)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1749]
leptonica-1.87.0/src/recogident.c:1140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1750]
leptonica-1.87.0/src/recogident.c:1140:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/recogident.c:1140:5: danger: ‘rcha’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1751]
leptonica-1.87.0/src/recogident.c:1140:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1140:21: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1140:21: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1752]
leptonica-1.87.0/src/recogident.c:1141: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1753]
leptonica-1.87.0/src/recogident.c:1141:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1141:21: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1141:21: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1754]
leptonica-1.87.0/src/recogident.c:1142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1755]
leptonica-1.87.0/src/recogident.c:1142:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1142:20: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1142:20: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1756]
leptonica-1.87.0/src/recogident.c:1143: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1757]
leptonica-1.87.0/src/recogident.c:1143:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1143:22: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1143:22: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1758]
leptonica-1.87.0/src/recogident.c:1144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1759]
leptonica-1.87.0/src/recogident.c:1144:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1144:20: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1144:20: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1760]
leptonica-1.87.0/src/recogident.c:1145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1761]
leptonica-1.87.0/src/recogident.c:1145:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1145:20: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1145:20: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1762]
leptonica-1.87.0/src/recogident.c:1146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rcha
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1763]
leptonica-1.87.0/src/recogident.c:1146:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rcha’
leptonica-1.87.0/src/recogident.c:1139:22: acquire_memory: allocated here
leptonica-1.87.0/src/recogident.c:1146:21: throw: if ‘numaCreate’ throws an exception...
leptonica-1.87.0/src/recogident.c:1146:21: danger: ‘rcha’ leaks here; was allocated at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1764]
leptonica-1.87.0/src/recogident.c:1211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: CPPCHECK_WARNING (CWE-476): [#def1765]
leptonica-1.87.0/src/recogident.c:1212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1766]
leptonica-1.87.0/src/recogident.c:1212:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rch’
leptonica-1.87.0/src/recogident.c:1111:1: enter_function: entry to ‘recogSkipIdentify’
leptonica-1.87.0/src/recogident.c:1113:8: branch_false: following ‘false’ branch (when ‘recog’ is non-NULL)...
leptonica-1.87.0/src/recogident.c:1117:16: branch_false: ...to here
leptonica-1.87.0/src/recogident.c:1117:5: call_function: calling ‘rchDestroy’ from ‘recogSkipIdentify’
leptonica-1.87.0/src/recogident.c:1117:5: return_function: returning to ‘recogSkipIdentify’ from ‘rchDestroy’
leptonica-1.87.0/src/recogident.c:1118:18: call_function: inlined call to ‘rchCreate’ from ‘recogSkipIdentify’
Error: CPPCHECK_WARNING (CWE-476): [#def1767]
leptonica-1.87.0/src/recogident.c:1213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: CPPCHECK_WARNING (CWE-476): [#def1768]
leptonica-1.87.0/src/recogident.c:1214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: CPPCHECK_WARNING (CWE-476): [#def1769]
leptonica-1.87.0/src/recogident.c:1215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: CPPCHECK_WARNING (CWE-476): [#def1770]
leptonica-1.87.0/src/recogident.c:1216: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: CPPCHECK_WARNING (CWE-476): [#def1771]
leptonica-1.87.0/src/recogident.c:1217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rch
Error: CPPCHECK_WARNING (CWE-476): [#def1772]
leptonica-1.87.0/src/recogident.c:1783: warning[nullPointer]: Possible null pointer dereference: scorestr
Error: CPPCHECK_WARNING (CWE-476): [#def1773]
leptonica-1.87.0/src/regutils.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1774]
leptonica-1.87.0/src/regutils.c:144:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rp’
leptonica-1.87.0/src/regutils.c:123:1: enter_function: entry to ‘regTestSetup’
leptonica-1.87.0/src/regutils.c:131:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/regutils.c:137:21: branch_false: ...to here
leptonica-1.87.0/src/regutils.c:137:21: call_function: calling ‘getRootNameFromArgv0’ from ‘regTestSetup’
leptonica-1.87.0/src/regutils.c:137:21: return_function: returning to ‘regTestSetup’ from ‘getRootNameFromArgv0’
leptonica-1.87.0/src/regutils.c:137:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/regutils.c:140:5: branch_false: ...to here
leptonica-1.87.0/src/regutils.c:142:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/regutils.c:144:5: danger: ‘rp’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def1775]
leptonica-1.87.0/src/regutils.c:145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rp
Error: CPPCHECK_WARNING (CWE-476): [#def1776]
leptonica-1.87.0/src/regutils.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rp
Error: COMPILER_WARNING (CWE-1164): [#def1777]
leptonica-1.87.0/src/rop.c:541:1: warning[-Wunused-function]: ‘checkRasteropCrop’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1778]
leptonica-1.87.0/src/roplow.c:2251:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fwmask’
leptonica-1.87.0/src/roplow.c:2220:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/roplow.c:2223:9: branch_false: ...to here
leptonica-1.87.0/src/roplow.c:2230:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/roplow.c:2247:8: branch_true: ...to here
leptonica-1.87.0/src/roplow.c:2247:8: branch_false: following ‘false’ branch (when ‘w < fwbits’)...
leptonica-1.87.0/src/roplow.c:2251:27: branch_false: ...to here
leptonica-1.87.0/src/roplow.c:2251:9: danger: use of uninitialized value ‘fwmask’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1779]
leptonica-1.87.0/src/rotateorth.c:554:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/rotateorth.c:430:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/rotateorth.c:432:5: branch_false: ...to here
leptonica-1.87.0/src/rotateorth.c:438:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rotateorth.c:441:12: branch_false: ...to here
leptonica-1.87.0/src/rotateorth.c:460:31: acquire_memory: allocated here
leptonica-1.87.0/src/rotateorth.c:460:8: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
leptonica-1.87.0/src/rotateorth.c:465:5: branch_false: ...to here
leptonica-1.87.0/src/rotateorth.c:554:13: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/rotateorth.c:554:13: danger: ‘buffer’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1780]
leptonica-1.87.0/src/rotateorth.c:555:13: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/rotateorth.c:430:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/rotateorth.c:432:5: branch_false: ...to here
leptonica-1.87.0/src/rotateorth.c:438:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/rotateorth.c:441:12: branch_false: ...to here
leptonica-1.87.0/src/rotateorth.c:460:31: acquire_memory: allocated here
leptonica-1.87.0/src/rotateorth.c:460:8: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
leptonica-1.87.0/src/rotateorth.c:465:5: branch_false: ...to here
leptonica-1.87.0/src/rotateorth.c:555:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/rotateorth.c:555:13: branch_true: ...to here
leptonica-1.87.0/src/rotateorth.c:555:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/rotateorth.c:555:13: danger: ‘buffer’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def1781]
leptonica-1.87.0/src/rotateorth.c:653: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1782]
leptonica-1.87.0/src/rotateorth.c:653:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/rotateorth.c:651:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/rotateorth.c:652:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/rotateorth.c:653:18: branch_true: ...to here
leptonica-1.87.0/src/rotateorth.c:653:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1783]
leptonica-1.87.0/src/rotateorth.c:680: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1784]
leptonica-1.87.0/src/rotateorth.c:680:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/rotateorth.c:678:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/rotateorth.c:679:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/rotateorth.c:680:18: branch_true: ...to here
leptonica-1.87.0/src/rotateorth.c:680:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1785]
leptonica-1.87.0/src/rotateorth.c:703: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1786]
leptonica-1.87.0/src/rotateorth.c:703:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/rotateorth.c:701:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/rotateorth.c:702:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/rotateorth.c:703:18: branch_true: ...to here
leptonica-1.87.0/src/rotateorth.c:703:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1787]
leptonica-1.87.0/src/runlength.c:302:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:301:8: branch_true: following ‘true’ branch (when ‘color == 0’)...
leptonica-1.87.0/src/runlength.c:302:16: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:302:16: throw: if ‘pixInvert’ throws an exception...
leptonica-1.87.0/src/runlength.c:302:16: danger: ‘buffer’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1788]
leptonica-1.87.0/src/runlength.c:302:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:301:8: branch_true: following ‘true’ branch (when ‘color == 0’)...
leptonica-1.87.0/src/runlength.c:302:16: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:302:16: throw: if ‘pixInvert’ throws an exception...
leptonica-1.87.0/src/runlength.c:302:16: danger: ‘end’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1789]
leptonica-1.87.0/src/runlength.c:302:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:301:8: branch_true: following ‘true’ branch (when ‘color == 0’)...
leptonica-1.87.0/src/runlength.c:302:16: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:302:16: throw: if ‘pixInvert’ throws an exception...
leptonica-1.87.0/src/runlength.c:302:16: danger: ‘start’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1790]
leptonica-1.87.0/src/runlength.c:304:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:301:8: branch_false: following ‘false’ branch (when ‘color != 0’)...
leptonica-1.87.0/src/runlength.c:304:16: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:304:16: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/runlength.c:304:16: danger: ‘buffer’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1791]
leptonica-1.87.0/src/runlength.c:304:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:301:8: branch_false: following ‘false’ branch (when ‘color != 0’)...
leptonica-1.87.0/src/runlength.c:304:16: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:304:16: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/runlength.c:304:16: danger: ‘end’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1792]
leptonica-1.87.0/src/runlength.c:304:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:301:8: branch_false: following ‘false’ branch (when ‘color != 0’)...
leptonica-1.87.0/src/runlength.c:304:16: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:304:16: throw: if ‘pixClone’ throws an exception...
leptonica-1.87.0/src/runlength.c:304:16: danger: ‘start’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1793]
leptonica-1.87.0/src/runlength.c:337:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:307:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:337:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:337:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/runlength.c:337:5: danger: ‘buffer’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1794]
leptonica-1.87.0/src/runlength.c:337:5: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:307:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:337:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:337:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/runlength.c:337:5: danger: ‘end’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1795]
leptonica-1.87.0/src/runlength.c:337:5: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:307:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:337:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:337:5: throw: if ‘pixDestroy’ throws an exception...
leptonica-1.87.0/src/runlength.c:337:5: danger: ‘start’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1796]
leptonica-1.87.0/src/runlength.c:383:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1797]
leptonica-1.87.0/src/runlength.c:383:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1798]
leptonica-1.87.0/src/runlength.c:383:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1799]
leptonica-1.87.0/src/runlength.c:384:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1800]
leptonica-1.87.0/src/runlength.c:384:5: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1801]
leptonica-1.87.0/src/runlength.c:384:5: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1802]
leptonica-1.87.0/src/runlength.c:386:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1803]
leptonica-1.87.0/src/runlength.c:386:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1804]
leptonica-1.87.0/src/runlength.c:386:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1805]
leptonica-1.87.0/src/runlength.c:388:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1806]
leptonica-1.87.0/src/runlength.c:388:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1807]
leptonica-1.87.0/src/runlength.c:388:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1808]
leptonica-1.87.0/src/runlength.c:390:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1809]
leptonica-1.87.0/src/runlength.c:390:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1810]
leptonica-1.87.0/src/runlength.c:392:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1811]
leptonica-1.87.0/src/runlength.c:392:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1812]
leptonica-1.87.0/src/runlength.c:394:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1813]
leptonica-1.87.0/src/runlength.c:394:11: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1814]
leptonica-1.87.0/src/runlength.c:394:11: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1815]
leptonica-1.87.0/src/runlength.c:395:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1816]
leptonica-1.87.0/src/runlength.c:395:12: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1817]
leptonica-1.87.0/src/runlength.c:395:12: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_true: following ‘true’ branch (when ‘direction == 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:307:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:308:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:308:13: call_function: calling ‘pixFindHorizontalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1818]
leptonica-1.87.0/src/runlength.c:458:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1819]
leptonica-1.87.0/src/runlength.c:458:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1820]
leptonica-1.87.0/src/runlength.c:458:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1821]
leptonica-1.87.0/src/runlength.c:459:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1822]
leptonica-1.87.0/src/runlength.c:459:5: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1823]
leptonica-1.87.0/src/runlength.c:459:5: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1824]
leptonica-1.87.0/src/runlength.c:461:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1825]
leptonica-1.87.0/src/runlength.c:461:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1826]
leptonica-1.87.0/src/runlength.c:461:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1827]
leptonica-1.87.0/src/runlength.c:463:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1828]
leptonica-1.87.0/src/runlength.c:463:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1829]
leptonica-1.87.0/src/runlength.c:463:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1830]
leptonica-1.87.0/src/runlength.c:465:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1831]
leptonica-1.87.0/src/runlength.c:465:16: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1832]
leptonica-1.87.0/src/runlength.c:467:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1833]
leptonica-1.87.0/src/runlength.c:467:16: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1834]
leptonica-1.87.0/src/runlength.c:469:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1835]
leptonica-1.87.0/src/runlength.c:469:11: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1836]
leptonica-1.87.0/src/runlength.c:469:11: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1837]
leptonica-1.87.0/src/runlength.c:470:12: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:298:25: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1838]
leptonica-1.87.0/src/runlength.c:470:12: warning[-Wanalyzer-malloc-leak]: leak of ‘end’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:297:22: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1839]
leptonica-1.87.0/src/runlength.c:470:12: warning[-Wanalyzer-malloc-leak]: leak of ‘start’
leptonica-1.87.0/src/runlength.c:261:1: enter_function: entry to ‘pixRunlengthTransform’
leptonica-1.87.0/src/runlength.c:273:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:275:9: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:275:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:278:5: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:281:13: branch_true: following ‘true’ branch (when ‘direction == 1’)...
leptonica-1.87.0/src/runlength.c:282:23: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:286:8: branch_false: following ‘false’ branch (when ‘bufsize <= 1000000’)...
leptonica-1.87.0/src/runlength.c:291:17: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:291:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/runlength.c:293:13: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:296:24: acquire_memory: allocated here
leptonica-1.87.0/src/runlength.c:306:8: branch_false: following ‘false’ branch (when ‘direction != 0’)...
leptonica-1.87.0/src/runlength.c:306:8: branch_false: ...to here
leptonica-1.87.0/src/runlength.c:320:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/runlength.c:321:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:321:13: call_function: calling ‘pixFindVerticalRuns’ from ‘pixRunlengthTransform’
Error: CPPCHECK_WARNING (CWE-476): [#def1840]
leptonica-1.87.0/src/runlength.c:785: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1841]
leptonica-1.87.0/src/runlength.c:785:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/runlength.c:780:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/runlength.c:781:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/runlength.c:782:9: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:783:12: branch_true: following ‘true’ branch (when ‘bitval == 0’)...
leptonica-1.87.0/src/runlength.c:784:13: branch_true: ...to here
leptonica-1.87.0/src/runlength.c:785:9: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1842]
leptonica-1.87.0/src/sarray1.c:173:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(realdir)’
leptonica-1.87.0/src/sarray1.c:1881:1: enter_function: entry to ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1891:8: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1893:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1893:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1906:14: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1909:8: branch_false: following ‘false’ branch (when ‘realdir’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1911:17: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1911:17: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1911:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1916:15: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1916:15: call_function: calling ‘sarrayCreate’ from ‘getFilenamesInDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1843]
leptonica-1.87.0/src/sarray1.c:173:9: warning[-Wanalyzer-malloc-leak]: leak of ‘sarrayCreate(0)’
leptonica-1.87.0/src/sarray1.c:1881:1: enter_function: entry to ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1891:8: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1893:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1893:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1906:14: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1909:8: branch_false: following ‘false’ branch (when ‘realdir’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1911:17: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1911:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1916:15: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1916:15: call_function: calling ‘sarrayCreate’ from ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1916:15: return_function: returning to ‘getFilenamesInDirectory’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1917:25: throw: if ‘readdir’ throws an exception...
leptonica-1.87.0/src/sarray1.c:173:9: danger: ‘sarrayCreate(0)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-476): [#def1844]
leptonica-1.87.0/src/sarray1.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1845]
leptonica-1.87.0/src/sarray1.c:177:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sa’
leptonica-1.87.0/src/sarray1.c:386:1: enter_function: entry to ‘sarrayCopy’
leptonica-1.87.0/src/sarray1.c:394:16: call_function: calling ‘sarrayCreate’ from ‘sarrayCopy’
Error: CPPCHECK_WARNING (CWE-476): [#def1846]
leptonica-1.87.0/src/sarray1.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sa
Error: CPPCHECK_WARNING (CWE-476): [#def1847]
leptonica-1.87.0/src/sarray1.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sa
Error: CPPCHECK_WARNING (CWE-476): [#def1848]
leptonica-1.87.0/src/sarray1.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sa
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1849]
leptonica-1.87.0/src/sarray1.c:376:1: warning[-Wanalyzer-malloc-leak]: leak of ‘sa’
leptonica-1.87.0/src/sarray1.c:386:1: enter_function: entry to ‘sarrayCopy’
leptonica-1.87.0/src/sarray1.c:394:16: call_function: calling ‘sarrayCreate’ from ‘sarrayCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1850]
leptonica-1.87.0/src/sarray1.c:451:20: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1423:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1425:33: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1436:9: call_function: calling ‘sarrayAddString’ from ‘sarrayReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1851]
leptonica-1.87.0/src/sarray1.c:455:24: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1423:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1425:33: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1436:9: call_function: calling ‘sarrayAddString’ from ‘sarrayReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1852]
leptonica-1.87.0/src/sarray1.c:483:16: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1423:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1425:33: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1436:9: call_function: calling ‘sarrayAddString’ from ‘sarrayReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1853]
leptonica-1.87.0/src/sarray1.c:492:31: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1423:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1425:33: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1436:9: call_function: calling ‘sarrayAddString’ from ‘sarrayReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1854]
leptonica-1.87.0/src/sarray1.c:494:16: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1423:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1425:33: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:12: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1436:9: call_function: calling ‘sarrayAddString’ from ‘sarrayReadStream’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1855]
leptonica-1.87.0/src/sarray1.c:1173:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
leptonica-1.87.0/src/sarray1.c:1156:1: enter_function: entry to ‘sarraySelectBySubstring’
leptonica-1.87.0/src/sarray1.c:1167:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1170:13: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1170:13: call_function: calling ‘sarrayCreate’ from ‘sarraySelectBySubstring’
leptonica-1.87.0/src/sarray1.c:1170:13: return_function: returning to ‘sarraySelectBySubstring’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1171:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1172:15: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1172:15: call_function: calling ‘sarrayGetString’ from ‘sarraySelectBySubstring’
leptonica-1.87.0/src/sarray1.c:1172:15: return_function: returning to ‘sarraySelectBySubstring’ from ‘sarrayGetString’
leptonica-1.87.0/src/sarray1.c:1173:9: danger: argument 1 (‘sarrayGetString(sain, i, 0)’) NULL where non-null expected
Error: COMPILER_WARNING: [#def1856]
leptonica-1.87.0/src/sarray1.c: scope_hint: In function ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1390:47: warning[-Wunused-but-set-variable=]: variable ‘ignore’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1857]
leptonica-1.87.0/src/sarray1.c:1418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1418:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1418:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1418:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1418:13: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1858]
leptonica-1.87.0/src/sarray1.c:1418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sa’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1418:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1418:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1418:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1418:13: danger: ‘sa’ leaks here; was allocated at [(14)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1859]
leptonica-1.87.0/src/sarray1.c:1418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1418:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1418:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1418:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1418:13: danger: ‘stringbuf’ leaks here; was allocated at [(19)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING: [#def1860]
leptonica-1.87.0/src/sarray1.c:1425:33: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1423:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1425:33: danger: operand ‘1.5e+0’ is of type ‘double’
Error: CPPCHECK_WARNING (CWE-476): [#def1861]
leptonica-1.87.0/src/sarray1.c:1428: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stringbuf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1862]
leptonica-1.87.0/src/sarray1.c:1430:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:33: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1430:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1430:13: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1863]
leptonica-1.87.0/src/sarray1.c:1430:13: warning[-Wanalyzer-malloc-leak]: leak of ‘sa’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:33: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1430:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1430:13: danger: ‘sa’ leaks here; was allocated at [(14)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1864]
leptonica-1.87.0/src/sarray1.c:1430:13: warning[-Wanalyzer-malloc-leak]: leak of ‘stringbuf’
leptonica-1.87.0/src/sarray1.c:1387:1: enter_function: entry to ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1396:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1398:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1398:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1400:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1400:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1402:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1402:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1404:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1406:8: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1409:15: call_function: calling ‘sarrayCreate’ from ‘sarrayReadStream’
leptonica-1.87.0/src/sarray1.c:1409:15: return_function: returning to ‘sarrayReadStream’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1409:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1412:25: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1412:25: acquire_memory: allocated here
leptonica-1.87.0/src/sarray1.c:1414:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1416:14: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1416:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1422:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1428:33: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1428:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sarray1.c:1430:13: branch_true: ...to here
leptonica-1.87.0/src/sarray1.c:1430:13: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1430:13: danger: ‘stringbuf’ leaks here; was allocated at [(19)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/18)
Error: COMPILER_WARNING (CWE-563): [#def1865]
leptonica-1.87.0/src/sarray1.c: scope_hint: In function ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1888:17: warning[-Wunused-variable]: unused variable ‘dfd’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1866]
leptonica-1.87.0/src/sarray1.c:1917:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sarray1.c:1881:1: enter_function: entry to ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1891:8: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1893:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1893:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1906:14: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1909:8: branch_false: following ‘false’ branch (when ‘realdir’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1911:17: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1911:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1916:15: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1916:15: call_function: calling ‘sarrayCreate’ from ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1916:15: return_function: returning to ‘getFilenamesInDirectory’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1917:25: throw: if ‘readdir’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1917:25: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-476): [#def1867]
leptonica-1.87.0/src/sarray1.c:1926: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stat_path
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1868]
leptonica-1.87.0/src/sarray1.c:1934:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sarray1.c:1881:1: enter_function: entry to ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1891:8: branch_false: following ‘false’ branch (when ‘dirname’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1893:9: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1893:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1906:14: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1909:8: branch_false: following ‘false’ branch (when ‘realdir’ is non-NULL)...
leptonica-1.87.0/src/sarray1.c:1911:17: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1911:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1916:15: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1916:15: call_function: calling ‘sarrayCreate’ from ‘getFilenamesInDirectory’
leptonica-1.87.0/src/sarray1.c:1916:15: return_function: returning to ‘getFilenamesInDirectory’ from ‘sarrayCreate’
leptonica-1.87.0/src/sarray1.c:1917:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sarray1.c:1934:5: branch_false: ...to here
leptonica-1.87.0/src/sarray1.c:1934:5: throw: if ‘closedir’ throws an exception...
leptonica-1.87.0/src/sarray1.c:1934:5: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING: [#def1869]
leptonica-1.87.0/src/scale1.c:3254:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/scale1.c:1910:1: enter_function: entry to ‘pixScaleAreaMap’
leptonica-1.87.0/src/scale1.c:1926:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale1.c:1927:9: branch_true: ...to here
leptonica-1.87.0/src/scale1.c:1928:16: call_function: calling ‘pixScaleSmooth’ from ‘pixScaleAreaMap’
Error: GCC_ANALYZER_WARNING: [#def1870]
leptonica-1.87.0/src/scale1.c:3256:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/scale1.c:1910:1: enter_function: entry to ‘pixScaleAreaMap’
leptonica-1.87.0/src/scale1.c:1926:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale1.c:1927:9: branch_true: ...to here
leptonica-1.87.0/src/scale1.c:1928:16: call_function: calling ‘pixScaleSmooth’ from ‘pixScaleAreaMap’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1871]
leptonica-1.87.0/src/scale1.c:3306:17: warning[-Wanalyzer-malloc-leak]: leak of ‘scol’
leptonica-1.87.0/src/scale1.c:1910:1: enter_function: entry to ‘pixScaleAreaMap’
leptonica-1.87.0/src/scale1.c:1926:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale1.c:1927:9: branch_true: ...to here
leptonica-1.87.0/src/scale1.c:1928:16: call_function: calling ‘pixScaleSmooth’ from ‘pixScaleAreaMap’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1872]
leptonica-1.87.0/src/scale1.c:3306:17: warning[-Wanalyzer-malloc-leak]: leak of ‘srow’
leptonica-1.87.0/src/scale1.c:1910:1: enter_function: entry to ‘pixScaleAreaMap’
leptonica-1.87.0/src/scale1.c:1926:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale1.c:1927:9: branch_true: ...to here
leptonica-1.87.0/src/scale1.c:1928:16: call_function: calling ‘pixScaleSmooth’ from ‘pixScaleAreaMap’
Error: GCC_ANALYZER_WARNING: [#def1873]
leptonica-1.87.0/src/scale1.c:3751:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/scale1.c:1910:1: enter_function: entry to ‘pixScaleAreaMap’
leptonica-1.87.0/src/scale1.c:1926:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale1.c:1927:9: branch_true: ...to here
leptonica-1.87.0/src/scale1.c:1928:16: call_function: calling ‘pixScaleSmooth’ from ‘pixScaleAreaMap’
Error: GCC_ANALYZER_WARNING: [#def1874]
leptonica-1.87.0/src/scale1.c:3753:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/scale1.c:1910:1: enter_function: entry to ‘pixScaleAreaMap’
leptonica-1.87.0/src/scale1.c:1926:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale1.c:1927:9: branch_true: ...to here
leptonica-1.87.0/src/scale1.c:1928:16: call_function: calling ‘pixScaleSmooth’ from ‘pixScaleAreaMap’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1875]
leptonica-1.87.0/src/scale2.c:1067:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘minval’
leptonica-1.87.0/src/scale2.c:1007:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1011:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1014:9: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1014:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1017:9: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1017:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1020:10: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1030:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1032:5: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1037:17: branch_true: following ‘true’ branch (when ‘hd > i’)...
leptonica-1.87.0/src/scale2.c:1038:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1040:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1051:17: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1051:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale2.c:1051:16: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1062:16: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/scale2.c:1064:21: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1064:21: branch_false: following ‘false’ branch (when ‘type != 2’)...
leptonica-1.87.0/src/scale2.c:1067:17: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1067:17: danger: use of uninitialized value ‘minval’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1876]
leptonica-1.87.0/src/scale2.c:1157:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘minval’
leptonica-1.87.0/src/scale2.c:1111:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1115:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1117:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1121:5: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1123:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1125:5: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1130:17: branch_true: following ‘true’ branch (when ‘i < hd’)...
leptonica-1.87.0/src/scale2.c:1131:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1138:16: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:1145:17: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1145:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/scale2.c:1145:16: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1147:29: branch_true: following ‘true’ branch (when ‘k != 4’)...
leptonica-1.87.0/src/scale2.c:1148:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1152:16: branch_false: following ‘false’ branch (when ‘type != 1’)...
leptonica-1.87.0/src/scale2.c:1154:21: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1154:21: branch_false: following ‘false’ branch (when ‘type != 2’)...
leptonica-1.87.0/src/scale2.c:1157:17: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:1157:17: danger: use of uninitialized value ‘minval’ here
Error: CPPCHECK_WARNING (CWE-476): [#def1877]
leptonica-1.87.0/src/scale2.c:1580: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1878]
leptonica-1.87.0/src/scale2.c:1580:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:1578:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:1579:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/scale2.c:1580:23: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1580:9: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1879]
leptonica-1.87.0/src/scale2.c:1606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1880]
leptonica-1.87.0/src/scale2.c:1606:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:1604:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:1605:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
leptonica-1.87.0/src/scale2.c:1606:24: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1606:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1881]
leptonica-1.87.0/src/scale2.c:1735: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1882]
leptonica-1.87.0/src/scale2.c:1735:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:1733:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:1734:17: branch_true: following ‘true’ branch (when ‘i != 64’)...
leptonica-1.87.0/src/scale2.c:1735:23: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1735:9: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1883]
leptonica-1.87.0/src/scale2.c:1760: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1884]
leptonica-1.87.0/src/scale2.c:1760:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:1758:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:1759:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
leptonica-1.87.0/src/scale2.c:1760:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1760:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1885]
leptonica-1.87.0/src/scale2.c:1852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1886]
leptonica-1.87.0/src/scale2.c:1852:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:1850:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:1851:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
leptonica-1.87.0/src/scale2.c:1852:23: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1852:9: danger: ‘tab + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1887]
leptonica-1.87.0/src/scale2.c:1877: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1888]
leptonica-1.87.0/src/scale2.c:1877:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:1875:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:1876:17: branch_true: following ‘true’ branch (when ‘i != 17’)...
leptonica-1.87.0/src/scale2.c:1877:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:1877:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1889]
leptonica-1.87.0/src/scale2.c:2022: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1890]
leptonica-1.87.0/src/scale2.c:2022:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:2020:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:2021:17: branch_true: following ‘true’ branch (when ‘i != 37’)...
leptonica-1.87.0/src/scale2.c:2022:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:2022:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1891]
leptonica-1.87.0/src/scale2.c:2114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tab
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1892]
leptonica-1.87.0/src/scale2.c:2114:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tab’
leptonica-1.87.0/src/scale2.c:2112:22: acquire_memory: this call could return NULL
leptonica-1.87.0/src/scale2.c:2113:17: branch_true: following ‘true’ branch (when ‘i != 65’)...
leptonica-1.87.0/src/scale2.c:2114:25: branch_true: ...to here
leptonica-1.87.0/src/scale2.c:2114:9: danger: ‘tab + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING: [#def1893]
leptonica-1.87.0/src/scale2.c:2248:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/scale2.c:797:1: enter_function: entry to ‘pixScaleMipmap’
leptonica-1.87.0/src/scale2.c:805:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:808:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:813:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:815:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:817:15: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:817:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:822:14: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:828:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:830:5: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:836:5: call_function: calling ‘scaleMipmapLow’ from ‘pixScaleMipmap’
Error: GCC_ANALYZER_WARNING: [#def1894]
leptonica-1.87.0/src/scale2.c:2250:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
leptonica-1.87.0/src/scale2.c:797:1: enter_function: entry to ‘pixScaleMipmap’
leptonica-1.87.0/src/scale2.c:805:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:808:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:813:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:815:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:817:15: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:817:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:822:14: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:828:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/scale2.c:830:5: branch_false: ...to here
leptonica-1.87.0/src/scale2.c:836:5: call_function: calling ‘scaleMipmapLow’ from ‘pixScaleMipmap’
Error: CPPCHECK_WARNING (CWE-476): [#def1895]
leptonica-1.87.0/src/seedfill.c:1144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1896]
leptonica-1.87.0/src/seedfill.c:1145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1897]
leptonica-1.87.0/src/seedfill.c:1178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1898]
leptonica-1.87.0/src/seedfill.c:1178:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1899]
leptonica-1.87.0/src/seedfill.c:1179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1900]
leptonica-1.87.0/src/seedfill.c:1180:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1901]
leptonica-1.87.0/src/seedfill.c:1190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1902]
leptonica-1.87.0/src/seedfill.c:1190:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1903]
leptonica-1.87.0/src/seedfill.c:1191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1904]
leptonica-1.87.0/src/seedfill.c:1192:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1905]
leptonica-1.87.0/src/seedfill.c:1201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1906]
leptonica-1.87.0/src/seedfill.c:1201:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1907]
leptonica-1.87.0/src/seedfill.c:1202: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1908]
leptonica-1.87.0/src/seedfill.c:1203:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1909]
leptonica-1.87.0/src/seedfill.c:1212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1910]
leptonica-1.87.0/src/seedfill.c:1212:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1911]
leptonica-1.87.0/src/seedfill.c:1213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1912]
leptonica-1.87.0/src/seedfill.c:1214:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1913]
leptonica-1.87.0/src/seedfill.c:1323: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1914]
leptonica-1.87.0/src/seedfill.c:1324: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1915]
leptonica-1.87.0/src/seedfill.c:1359: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1916]
leptonica-1.87.0/src/seedfill.c:1359:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1917]
leptonica-1.87.0/src/seedfill.c:1360: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1918]
leptonica-1.87.0/src/seedfill.c:1361:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1919]
leptonica-1.87.0/src/seedfill.c:1371: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1920]
leptonica-1.87.0/src/seedfill.c:1371:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1921]
leptonica-1.87.0/src/seedfill.c:1372: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1922]
leptonica-1.87.0/src/seedfill.c:1373:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1923]
leptonica-1.87.0/src/seedfill.c:1381: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1924]
leptonica-1.87.0/src/seedfill.c:1381:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1925]
leptonica-1.87.0/src/seedfill.c:1382: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1926]
leptonica-1.87.0/src/seedfill.c:1383:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1927]
leptonica-1.87.0/src/seedfill.c:1393: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1928]
leptonica-1.87.0/src/seedfill.c:1393:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1929]
leptonica-1.87.0/src/seedfill.c:1394: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1930]
leptonica-1.87.0/src/seedfill.c:1395:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1931]
leptonica-1.87.0/src/seedfill.c:1406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1932]
leptonica-1.87.0/src/seedfill.c:1406:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1933]
leptonica-1.87.0/src/seedfill.c:1407: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1934]
leptonica-1.87.0/src/seedfill.c:1408:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1935]
leptonica-1.87.0/src/seedfill.c:1418: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1936]
leptonica-1.87.0/src/seedfill.c:1418:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1937]
leptonica-1.87.0/src/seedfill.c:1419: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1938]
leptonica-1.87.0/src/seedfill.c:1420:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1939]
leptonica-1.87.0/src/seedfill.c:1428: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1940]
leptonica-1.87.0/src/seedfill.c:1428:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1941]
leptonica-1.87.0/src/seedfill.c:1429: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1942]
leptonica-1.87.0/src/seedfill.c:1430:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:911:1: enter_function: entry to ‘pixSeedfillGray’
leptonica-1.87.0/src/seedfill.c:920:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:922:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:926:9: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:926:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:929:13: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:934:5: call_function: calling ‘seedfillGrayLow’ from ‘pixSeedfillGray’
Error: CPPCHECK_WARNING (CWE-476): [#def1943]
leptonica-1.87.0/src/seedfill.c:1439: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1944]
leptonica-1.87.0/src/seedfill.c:1440: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1945]
leptonica-1.87.0/src/seedfill.c:1600: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1946]
leptonica-1.87.0/src/seedfill.c:1601: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1947]
leptonica-1.87.0/src/seedfill.c:1634: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1948]
leptonica-1.87.0/src/seedfill.c:1634:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1629:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1631:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1632:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1633:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1634:25: danger: ‘pixel’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1949]
leptonica-1.87.0/src/seedfill.c:1635: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1950]
leptonica-1.87.0/src/seedfill.c:1636:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1629:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1631:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1632:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1633:44: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1636:25: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1636:25: danger: ‘pixel’ leaks here; was allocated at [(13)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1951]
leptonica-1.87.0/src/seedfill.c:1646: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1952]
leptonica-1.87.0/src/seedfill.c:1646:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1640:20: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1641:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1643:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1644:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1645:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1646:25: danger: ‘pixel’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1953]
leptonica-1.87.0/src/seedfill.c:1647: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1954]
leptonica-1.87.0/src/seedfill.c:1648:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1640:20: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1641:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1643:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1644:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1645:44: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1648:25: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1648:25: danger: ‘pixel’ leaks here; was allocated at [(13)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1955]
leptonica-1.87.0/src/seedfill.c:1657: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1956]
leptonica-1.87.0/src/seedfill.c:1657:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1651:20: branch_true: following ‘true’ branch (when ‘imax > i’)...
leptonica-1.87.0/src/seedfill.c:1652:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1654:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1655:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1656:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1657:25: danger: ‘pixel’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1957]
leptonica-1.87.0/src/seedfill.c:1658: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1958]
leptonica-1.87.0/src/seedfill.c:1659:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1651:20: branch_true: following ‘true’ branch (when ‘imax > i’)...
leptonica-1.87.0/src/seedfill.c:1652:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1654:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1655:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1656:44: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1659:25: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1659:25: danger: ‘pixel’ leaks here; was allocated at [(13)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1959]
leptonica-1.87.0/src/seedfill.c:1668: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1960]
leptonica-1.87.0/src/seedfill.c:1668:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1662:20: branch_true: following ‘true’ branch (when ‘jmax > j’)...
leptonica-1.87.0/src/seedfill.c:1663:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1665:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1666:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1667:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1668:25: danger: ‘pixel’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1961]
leptonica-1.87.0/src/seedfill.c:1669: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1962]
leptonica-1.87.0/src/seedfill.c:1670:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: following ‘false’ branch (when ‘connectivity != 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1619:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1620:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1627:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1628:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1662:20: branch_true: following ‘true’ branch (when ‘jmax > j’)...
leptonica-1.87.0/src/seedfill.c:1663:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1665:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1666:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1667:44: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1670:25: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1670:25: danger: ‘pixel’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1963]
leptonica-1.87.0/src/seedfill.c:1786: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1964]
leptonica-1.87.0/src/seedfill.c:1787: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1965]
leptonica-1.87.0/src/seedfill.c:1821: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1966]
leptonica-1.87.0/src/seedfill.c:1821:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1816:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1818:28: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1819:29: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1820:48: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1821:29: danger: ‘pixel’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def1967]
leptonica-1.87.0/src/seedfill.c:1822: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1968]
leptonica-1.87.0/src/seedfill.c:1823:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1816:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1818:28: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1819:29: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1820:48: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1823:29: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1823:29: danger: ‘pixel’ leaks here; was allocated at [(15)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def1969]
leptonica-1.87.0/src/seedfill.c:1832: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1970]
leptonica-1.87.0/src/seedfill.c:1832:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1826:24: branch_true: following ‘true’ branch (when ‘jmax > j’)...
leptonica-1.87.0/src/seedfill.c:1827:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1829:28: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1830:29: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1831:48: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1832:29: danger: ‘pixel’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def1971]
leptonica-1.87.0/src/seedfill.c:1833: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1972]
leptonica-1.87.0/src/seedfill.c:1834:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1826:24: branch_true: following ‘true’ branch (when ‘jmax > j’)...
leptonica-1.87.0/src/seedfill.c:1827:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1829:28: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1830:29: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1831:48: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1834:29: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1834:29: danger: ‘pixel’ leaks here; was allocated at [(15)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def1973]
leptonica-1.87.0/src/seedfill.c:1842: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1974]
leptonica-1.87.0/src/seedfill.c:1842:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1839:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1840:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1841:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1842:25: danger: ‘pixel’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1975]
leptonica-1.87.0/src/seedfill.c:1843: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1976]
leptonica-1.87.0/src/seedfill.c:1844:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: following ‘true’ branch (when ‘i > 0’)...
leptonica-1.87.0/src/seedfill.c:1815:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1839:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1840:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1841:44: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1844:25: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1844:25: danger: ‘pixel’ leaks here; was allocated at [(13)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1977]
leptonica-1.87.0/src/seedfill.c:1854: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1978]
leptonica-1.87.0/src/seedfill.c:1854:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1848:20: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1849:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1851:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1852:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1853:44: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1854:25: danger: ‘pixel’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1979]
leptonica-1.87.0/src/seedfill.c:1855: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1980]
leptonica-1.87.0/src/seedfill.c:1856:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1848:20: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1849:28: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1851:24: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1852:25: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1853:44: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1856:25: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1856:25: danger: ‘pixel’ leaks here; was allocated at [(13)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1981]
leptonica-1.87.0/src/seedfill.c:1866: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1982]
leptonica-1.87.0/src/seedfill.c:1866:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1859:20: branch_true: following ‘true’ branch (when ‘imax > i’)...
leptonica-1.87.0/src/seedfill.c:1860:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1860:24: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1861:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1863:28: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1864:29: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1865:48: acquire_memory: this call could return NULL
leptonica-1.87.0/src/seedfill.c:1866:29: danger: ‘pixel’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def1983]
leptonica-1.87.0/src/seedfill.c:1867: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1984]
leptonica-1.87.0/src/seedfill.c:1868:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pixel’
leptonica-1.87.0/src/seedfill.c:1507:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/seedfill.c:1512:5: branch_false: ...to here
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: following ‘true’ branch (when ‘connectivity == 8’)...
leptonica-1.87.0/src/seedfill.c:1521:5: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1805:16: branch_true: following ‘true’ branch (when ‘queue_size != 0’)...
leptonica-1.87.0/src/seedfill.c:1806:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1813:16: branch_true: following ‘true’ branch (when ‘val != 0’)...
leptonica-1.87.0/src/seedfill.c:1814:20: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1859:20: branch_true: following ‘true’ branch (when ‘imax > i’)...
leptonica-1.87.0/src/seedfill.c:1860:24: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1860:24: branch_true: following ‘true’ branch (when ‘j > 0’)...
leptonica-1.87.0/src/seedfill.c:1861:32: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1863:28: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/seedfill.c:1864:29: branch_true: ...to here
leptonica-1.87.0/src/seedfill.c:1865:48: acquire_memory: allocated here
leptonica-1.87.0/src/seedfill.c:1868:29: throw: if ‘lqueueAdd’ throws an exception...
leptonica-1.87.0/src/seedfill.c:1868:29: danger: ‘pixel’ leaks here; was allocated at [(15)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def1985]
leptonica-1.87.0/src/seedfill.c:1877: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1986]
leptonica-1.87.0/src/seedfill.c:1878: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1987]
leptonica-1.87.0/src/seedfill.c:1887: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1988]
leptonica-1.87.0/src/seedfill.c:1888: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1989]
leptonica-1.87.0/src/seedfill.c:1898: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: CPPCHECK_WARNING (CWE-476): [#def1990]
leptonica-1.87.0/src/seedfill.c:1899: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pixel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1991]
leptonica-1.87.0/src/sel1.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘selaCreate(pixaGetCount(pixa))’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2143:15: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/sel1.c:255:9: danger: ‘selaCreate(pixaGetCount(pixa))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def1992]
leptonica-1.87.0/src/sel1.c:260: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sela
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1993]
leptonica-1.87.0/src/sel1.c:260:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sela’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
Error: CPPCHECK_WARNING (CWE-476): [#def1994]
leptonica-1.87.0/src/sel1.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sela
Error: CPPCHECK_WARNING (CWE-476): [#def1995]
leptonica-1.87.0/src/sel1.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sela
Error: CPPCHECK_WARNING (CWE-476): [#def1996]
leptonica-1.87.0/src/sel1.c:316: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1997]
leptonica-1.87.0/src/sel1.c:316:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sel’
leptonica-1.87.0/src/sel1.c:1350:1: enter_function: entry to ‘selReadStream’
leptonica-1.87.0/src/sel1.c:1360:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1362:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1362:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1365:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1367:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1369:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1373:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1373:16: call_function: calling ‘selCreate’ from ‘selReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1998]
leptonica-1.87.0/src/sel1.c:316:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1999]
leptonica-1.87.0/src/sel1.c:316:21: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2000]
leptonica-1.87.0/src/sel1.c:316:21: warning[-Wanalyzer-malloc-leak]: leak of ‘sel’
leptonica-1.87.0/src/sel1.c:1350:1: enter_function: entry to ‘selReadStream’
leptonica-1.87.0/src/sel1.c:1360:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1362:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1362:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1365:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1365:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1367:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1369:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1373:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1373:16: call_function: calling ‘selCreate’ from ‘selReadStream’
Error: CPPCHECK_WARNING (CWE-476): [#def2001]
leptonica-1.87.0/src/sel1.c:317: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2002]
leptonica-1.87.0/src/sel1.c:317:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sel’
leptonica-1.87.0/src/sel1.c:410:1: enter_function: entry to ‘selCreateBrick’
leptonica-1.87.0/src/sel1.c:421:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:424:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:424:16: call_function: calling ‘selCreate’ from ‘selCreateBrick’
Error: CPPCHECK_WARNING (CWE-476): [#def2003]
leptonica-1.87.0/src/sel1.c:318: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sel
Error: CPPCHECK_WARNING (CWE-476): [#def2004]
leptonica-1.87.0/src/sel1.c:319: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2005]
leptonica-1.87.0/src/sel1.c:322:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: CPPCHECK_WARNING (CWE-476): [#def2006]
leptonica-1.87.0/src/sel1.c:375: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2007]
leptonica-1.87.0/src/sel1.c:375:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘csel’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:373:19: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: return_function: returning to ‘selCopy’ from ‘selGetParameters’
leptonica-1.87.0/src/sel1.c:375:5: danger: ‘csel’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def2008]
leptonica-1.87.0/src/sel1.c:376: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csel
Error: CPPCHECK_WARNING (CWE-476): [#def2009]
leptonica-1.87.0/src/sel1.c:377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csel
Error: CPPCHECK_WARNING (CWE-476): [#def2010]
leptonica-1.87.0/src/sel1.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csel
Error: CPPCHECK_WARNING (CWE-476): [#def2011]
leptonica-1.87.0/src/sel1.c:380: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2012]
leptonica-1.87.0/src/sel1.c:387:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown> + (long unsigned int)j * 4’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: return_function: returning to ‘selCopy’ from ‘selGetParameters’
leptonica-1.87.0/src/sel1.c:380:23: call_function: calling ‘create2dIntArray’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:380:23: return_function: returning to ‘selCopy’ from ‘create2dIntArray’
leptonica-1.87.0/src/sel1.c:380:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:380:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:385:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:385:17: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:386:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:387:32: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:387:13: danger: ‘*<unknown> + (long unsigned int)j * 4’ could be NULL: unchecked value from [(31)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2013]
leptonica-1.87.0/src/sel1.c:390:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: return_function: returning to ‘selCopy’ from ‘selGetParameters’
leptonica-1.87.0/src/sel1.c:380:23: call_function: calling ‘create2dIntArray’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:380:23: return_function: returning to ‘selCopy’ from ‘create2dIntArray’
leptonica-1.87.0/src/sel1.c:380:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:380:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:389:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:390:22: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:390:22: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/sel1.c:390:22: danger: ‘<unknown>’ leaks here; was allocated at [(29)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/28)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2014]
leptonica-1.87.0/src/sel1.c:390:22: warning[-Wanalyzer-malloc-leak]: leak of ‘csel’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:373:19: acquire_memory: allocated here
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: return_function: returning to ‘selCopy’ from ‘selGetParameters’
leptonica-1.87.0/src/sel1.c:380:23: call_function: calling ‘create2dIntArray’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:380:23: return_function: returning to ‘selCopy’ from ‘create2dIntArray’
leptonica-1.87.0/src/sel1.c:380:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:380:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:389:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:390:22: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:390:22: throw: if ‘stringNew’ throws an exception...
leptonica-1.87.0/src/sel1.c:390:22: danger: ‘csel’ leaks here; was allocated at [(2)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2015]
leptonica-1.87.0/src/sel1.c:511:9: warning[-Wanalyzer-malloc-leak]: leak of ‘selCreate(y + h, x + w, name)’
leptonica-1.87.0/src/sel1.c:1882:1: enter_function: entry to ‘selCreateFromPta’
leptonica-1.87.0/src/sel1.c:1891:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:1893:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1893:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1895:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1896:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1899:11: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1902:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1905:11: call_function: calling ‘selCreate’ from ‘selCreateFromPta’
leptonica-1.87.0/src/sel1.c:1905:11: return_function: returning to ‘selCreateFromPta’ from ‘selCreate’
leptonica-1.87.0/src/sel1.c:1906:5: call_function: calling ‘selSetOrigin’ from ‘selCreateFromPta’
leptonica-1.87.0/src/sel1.c:1906:5: return_function: returning to ‘selCreateFromPta’ from ‘selSetOrigin’
leptonica-1.87.0/src/sel1.c:1907:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1908:9: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1908:9: throw: if ‘ptaGetIPt’ throws an exception...
leptonica-1.87.0/src/sel1.c:511:9: danger: ‘selCreate(y + h, x + w, name)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2016]
leptonica-1.87.0/src/sel1.c:512:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2017]
leptonica-1.87.0/src/sel1.c:512:28: warning[-Wanalyzer-malloc-leak]: leak of ‘csel’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:373:19: acquire_memory: allocated here
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: return_function: returning to ‘selCopy’ from ‘selGetParameters’
leptonica-1.87.0/src/sel1.c:380:23: call_function: calling ‘create2dIntArray’ from ‘selCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2018]
leptonica-1.87.0/src/sel1.c:512:28: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2019]
leptonica-1.87.0/src/sel1.c:512:28: warning[-Wanalyzer-malloc-leak]: leak of ‘sel’
leptonica-1.87.0/src/sel1.c:410:1: enter_function: entry to ‘selCreateBrick’
leptonica-1.87.0/src/sel1.c:421:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:424:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:424:16: call_function: calling ‘selCreate’ from ‘selCreateBrick’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2020]
leptonica-1.87.0/src/sel1.c:514:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2021]
leptonica-1.87.0/src/sel1.c:514:28: warning[-Wanalyzer-malloc-leak]: leak of ‘csel’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:373:19: acquire_memory: allocated here
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
leptonica-1.87.0/src/sel1.c:374:5: return_function: returning to ‘selCopy’ from ‘selGetParameters’
leptonica-1.87.0/src/sel1.c:380:23: call_function: calling ‘create2dIntArray’ from ‘selCopy’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2022]
leptonica-1.87.0/src/sel1.c:514:28: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2023]
leptonica-1.87.0/src/sel1.c:514:28: warning[-Wanalyzer-malloc-leak]: leak of ‘sel’
leptonica-1.87.0/src/sel1.c:410:1: enter_function: entry to ‘selCreateBrick’
leptonica-1.87.0/src/sel1.c:421:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:424:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:424:16: call_function: calling ‘selCreate’ from ‘selCreateBrick’
Error: CPPCHECK_WARNING (CWE-476): [#def2024]
leptonica-1.87.0/src/sel1.c:518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: array
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2025]
leptonica-1.87.0/src/sel1.c:518:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘array’
leptonica-1.87.0/src/sel1.c:513:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:516:25: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:516:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sel1.c:517:17: branch_true: following ‘true’ branch (when ‘sy > i’)...
leptonica-1.87.0/src/sel1.c:518:31: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:518:9: danger: ‘array + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2026]
leptonica-1.87.0/src/sel1.c:690:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2041:1: enter_function: entry to ‘selCreateFromColorPix’
leptonica-1.87.0/src/sel1.c:2058:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2061:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2061:16: call_function: calling ‘selCreate’ from ‘selCreateFromColorPix’
leptonica-1.87.0/src/sel1.c:2061:16: return_function: returning to ‘selCreateFromColorPix’ from ‘selCreate’
leptonica-1.87.0/src/sel1.c:2061:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2063:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2063:5: call_function: calling ‘selSetOrigin’ from ‘selCreateFromColorPix’
leptonica-1.87.0/src/sel1.c:2063:5: return_function: returning to ‘selCreateFromColorPix’ from ‘selSetOrigin’
leptonica-1.87.0/src/sel1.c:2064:5: call_function: calling ‘selSetName’ from ‘selCreateFromColorPix’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2027]
leptonica-1.87.0/src/sel1.c:690:12: warning[-Wanalyzer-malloc-leak]: leak of ‘sel’
leptonica-1.87.0/src/sel1.c:2041:1: enter_function: entry to ‘selCreateFromColorPix’
leptonica-1.87.0/src/sel1.c:2058:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2061:16: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2061:16: call_function: calling ‘selCreate’ from ‘selCreateFromColorPix’
leptonica-1.87.0/src/sel1.c:2061:16: return_function: returning to ‘selCreateFromColorPix’ from ‘selCreate’
leptonica-1.87.0/src/sel1.c:2061:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2063:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2063:5: call_function: calling ‘selSetOrigin’ from ‘selCreateFromColorPix’
leptonica-1.87.0/src/sel1.c:2063:5: return_function: returning to ‘selCreateFromColorPix’ from ‘selSetOrigin’
leptonica-1.87.0/src/sel1.c:2064:5: call_function: calling ‘selSetName’ from ‘selCreateFromColorPix’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2028]
leptonica-1.87.0/src/sel1.c:827:16: warning[-Wanalyzer-malloc-leak]: leak of ‘csel’
leptonica-1.87.0/src/sel1.c:365:1: enter_function: entry to ‘selCopy’
leptonica-1.87.0/src/sel1.c:373:19: acquire_memory: allocated here
leptonica-1.87.0/src/sel1.c:374:5: call_function: calling ‘selGetParameters’ from ‘selCopy’
Error: COMPILER_WARNING: [#def2029]
leptonica-1.87.0/src/sel1.c: scope_hint: In function ‘selReadStream’
leptonica-1.87.0/src/sel1.c:1354:41: warning[-Wunused-but-set-variable=]: variable ‘ignore’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2030]
leptonica-1.87.0/src/sel1.c:1358:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2031]
leptonica-1.87.0/src/sel1.c:1358:23: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2032]
leptonica-1.87.0/src/sel1.c:1361:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2033]
leptonica-1.87.0/src/sel1.c:1361:23: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2034]
leptonica-1.87.0/src/sel1.c:1363:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2035]
leptonica-1.87.0/src/sel1.c:1363:23: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2036]
leptonica-1.87.0/src/sel1.c:1366:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2037]
leptonica-1.87.0/src/sel1.c:1366:23: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2038]
leptonica-1.87.0/src/sel1.c:1371:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2039]
leptonica-1.87.0/src/sel1.c:1371:23: warning[-Wanalyzer-malloc-leak]: leak of ‘sela’
leptonica-1.87.0/src/sel1.c:1284:1: enter_function: entry to ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1293:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1295:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1295:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1297:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1297:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1300:17: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1300:17: call_function: calling ‘selaCreate’ from ‘selaReadStream’
leptonica-1.87.0/src/sel1.c:1300:17: return_function: returning to ‘selaReadStream’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:1300:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1302:5: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1304:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1305:20: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1305:20: call_function: calling ‘selReadStream’ from ‘selaReadStream’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2040]
leptonica-1.87.0/src/sel1.c:1908:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:1882:1: enter_function: entry to ‘selCreateFromPta’
leptonica-1.87.0/src/sel1.c:1891:8: branch_false: following ‘false’ branch (when ‘pta’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:1893:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1893:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1895:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1896:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1899:11: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:1902:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:1905:11: call_function: calling ‘selCreate’ from ‘selCreateFromPta’
leptonica-1.87.0/src/sel1.c:1905:11: return_function: returning to ‘selCreateFromPta’ from ‘selCreate’
leptonica-1.87.0/src/sel1.c:1906:5: call_function: calling ‘selSetOrigin’ from ‘selCreateFromPta’
leptonica-1.87.0/src/sel1.c:1906:5: return_function: returning to ‘selCreateFromPta’ from ‘selSetOrigin’
leptonica-1.87.0/src/sel1.c:1907:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:1908:9: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:1908:9: throw: if ‘ptaGetIPt’ throws an exception...
leptonica-1.87.0/src/sel1.c:1908:9: danger: ‘<unknown>’ leaks here; was allocated at [(22)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2041]
leptonica-1.87.0/src/sel1.c:2051:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2042]
leptonica-1.87.0/src/sel1.c:2054:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2043]
leptonica-1.87.0/src/sel1.c:2056:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2044]
leptonica-1.87.0/src/sel1.c:2057:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2045]
leptonica-1.87.0/src/sel1.c:2059:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2145:15: call_function: calling ‘selCreateFromColorPix’ from ‘selaCreateFromColorPixa’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2046]
leptonica-1.87.0/src/sel1.c:2143:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2143:15: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/sel1.c:2143:15: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2047]
leptonica-1.87.0/src/sel1.c:2144:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/sel1.c:2125:1: enter_function: entry to ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2134:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2136:8: branch_false: following ‘false’ branch (when ‘sa’ is non-NULL)...
leptonica-1.87.0/src/sel1.c:2139:9: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2140:17: call_function: calling ‘selaCreate’ from ‘selaCreateFromColorPixa’
leptonica-1.87.0/src/sel1.c:2140:17: return_function: returning to ‘selaCreateFromColorPixa’ from ‘selaCreate’
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sel1.c:2140:8: branch_false: ...to here
leptonica-1.87.0/src/sel1.c:2142:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sel1.c:2143:15: branch_true: ...to here
leptonica-1.87.0/src/sel1.c:2144:15: throw: if ‘sarrayGetString’ throws an exception...
leptonica-1.87.0/src/sel1.c:2144:15: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-457): [#def2048]
leptonica-1.87.0/src/selgen.c:766: warning[uninitvar]: Uninitialized variable: runlen
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2049]
leptonica-1.87.0/src/selgen.c:766:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘runlen’
leptonica-1.87.0/src/selgen.c:719:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/selgen.c:721:9: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:721:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:724:9: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:726:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:728:9: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:728:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:730:9: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:730:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:732:9: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:732:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:735:16: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:735:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:737:17: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:737:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:741:17: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:741:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:741:8: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:746:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/selgen.c:766:5: branch_false: ...to here
leptonica-1.87.0/src/selgen.c:766:5: danger: use of uninitialized value ‘runlen’ here
Error: COMPILER_WARNING (CWE-457): [#def2050]
leptonica-1.87.0/src/selgen.c: scope_hint: In function ‘pixGetRunsOnLine’
leptonica-1.87.0/src/selgen.c:766:5: warning[-Wmaybe-uninitialized]: ‘runlen’ may be used uninitialized
leptonica-1.87.0/src/selgen.c:714:14: note: ‘runlen’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def2051]
leptonica-1.87.0/src/stack.c:90: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lstack
Error: CPPCHECK_WARNING (CWE-476): [#def2052]
leptonica-1.87.0/src/stack.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lstack
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2053]
leptonica-1.87.0/src/stringcode.c:169:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strcode’
leptonica-1.87.0/src/stringcode.c:165:33: acquire_memory: allocated here
leptonica-1.87.0/src/stringcode.c:165:8: branch_false: following ‘false’ branch (when ‘strcode’ is non-NULL)...
leptonica-1.87.0/src/stringcode.c:168:5: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:169:25: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/stringcode.c:169:25: danger: ‘strcode’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2054]
leptonica-1.87.0/src/stringcode.c:170:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strcode’
leptonica-1.87.0/src/stringcode.c:165:33: acquire_memory: allocated here
leptonica-1.87.0/src/stringcode.c:165:8: branch_false: following ‘false’ branch (when ‘strcode’ is non-NULL)...
leptonica-1.87.0/src/stringcode.c:168:5: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:170:21: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/stringcode.c:170:21: danger: ‘strcode’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2055]
leptonica-1.87.0/src/stringcode.c:171:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strcode’
leptonica-1.87.0/src/stringcode.c:165:33: acquire_memory: allocated here
leptonica-1.87.0/src/stringcode.c:165:8: branch_false: following ‘false’ branch (when ‘strcode’ is non-NULL)...
leptonica-1.87.0/src/stringcode.c:168:5: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:171:22: throw: if ‘sarrayCreate’ throws an exception...
leptonica-1.87.0/src/stringcode.c:171:22: danger: ‘strcode’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2056]
leptonica-1.87.0/src/stringcode.c:250:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strcode’
leptonica-1.87.0/src/stringcode.c:221:1: enter_function: entry to ‘strcodeCreateFromFile’
leptonica-1.87.0/src/stringcode.c:233:8: branch_false: following ‘false’ branch (when ‘filein’ is non-NULL)...
leptonica-1.87.0/src/stringcode.c:236:17: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:236:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/stringcode.c:238:10: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:240:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/stringcode.c:242:14: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:242:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/stringcode.c:247:15: branch_false: ...to here
leptonica-1.87.0/src/stringcode.c:247:15: call_function: calling ‘strcodeCreate’ from ‘strcodeCreateFromFile’
leptonica-1.87.0/src/stringcode.c:247:15: return_function: returning to ‘strcodeCreateFromFile’ from ‘strcodeCreate’
leptonica-1.87.0/src/stringcode.c:249:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/stringcode.c:250:17: branch_true: ...to here
leptonica-1.87.0/src/stringcode.c:250:17: throw: if ‘sarrayGetString’ throws an exception...
leptonica-1.87.0/src/stringcode.c:250:17: danger: ‘strcode’ leaks here; was allocated at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
Error: CPPCHECK_WARNING (CWE-457): [#def2057]
leptonica-1.87.0/src/strokes.c:177: warning[uninitvar]: Uninitialized variable: ratio
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2058]
leptonica-1.87.0/src/strokes.c:177:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ratio’
leptonica-1.87.0/src/strokes.c:125:1: enter_function: entry to ‘pixFindStrokeWidth’
leptonica-1.87.0/src/strokes.c:138:8: branch_false: following ‘false’ branch (when ‘pwidth’ is non-NULL)...
leptonica-1.87.0/src/strokes.c:140:5: branch_false: ...to here
leptonica-1.87.0/src/strokes.c:141:8: branch_false: following ‘false’ branch (when ‘pixs’ is non-NULL)...
leptonica-1.87.0/src/strokes.c:144:11: branch_false: ...to here
leptonica-1.87.0/src/strokes.c:151:5: call_function: calling ‘pixFindStrokeLength’ from ‘pixFindStrokeWidth’
leptonica-1.87.0/src/strokes.c:151:5: return_function: returning to ‘pixFindStrokeWidth’ from ‘pixFindStrokeLength’
leptonica-1.87.0/src/strokes.c:168:21: branch_false: following ‘false’ branch (when ‘i <= 0’)...
leptonica-1.87.0/src/strokes.c:176:13: branch_false: ...to here
leptonica-1.87.0/src/strokes.c:176:13: branch_false: following ‘false’ branch (when ‘i >= i’)...
leptonica-1.87.0/src/strokes.c:177:22: branch_false: ...to here
leptonica-1.87.0/src/strokes.c:177:22: danger: use of uninitialized value ‘ratio’ here
Error: COMPILER_WARNING (CWE-457): [#def2059]
leptonica-1.87.0/src/strokes.c: scope_hint: In function ‘pixFindStrokeWidth’
leptonica-1.87.0/src/strokes.c:177:31: warning[-Wmaybe-uninitialized]: ‘ratio’ may be used uninitialized
leptonica-1.87.0/src/strokes.c:133:29: note: ‘ratio’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2060]
leptonica-1.87.0/src/sudoku.c:223:15: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:223:15: throw: if ‘sarrayGetString’ throws an exception...
leptonica-1.87.0/src/sudoku.c:223:15: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2061]
leptonica-1.87.0/src/sudoku.c:224:18: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:224:18: throw: if ‘sarrayCreateWordsFromString’ throws an exception...
leptonica-1.87.0/src/sudoku.c:224:18: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2062]
leptonica-1.87.0/src/sudoku.c:225:13: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:225:13: throw: if ‘sarrayGetCount’ throws an exception...
leptonica-1.87.0/src/sudoku.c:225:13: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2063]
leptonica-1.87.0/src/sudoku.c:227:13: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:225:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sudoku.c:227:13: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:227:13: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/sudoku.c:227:13: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2064]
leptonica-1.87.0/src/sudoku.c:231:20: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:225:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:225:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:230:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/sudoku.c:231:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:231:20: throw: if ‘sarrayGetString’ throws an exception...
leptonica-1.87.0/src/sudoku.c:231:20: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2065]
leptonica-1.87.0/src/sudoku.c:235:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:225:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:225:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:230:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/sudoku.c:231:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:235:17: danger: ‘array + (long unsigned int)index * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2066]
leptonica-1.87.0/src/sudoku.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:225:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:225:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:230:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/sudoku.c:231:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:232:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sudoku.c:230:28: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:230:21: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/sudoku.c:231:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:232:16: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/sudoku.c:230:28: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:230:21: branch_false: following ‘false’ branch (when ‘j == 9’)...
leptonica-1.87.0/src/sudoku.c:237:9: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:237:9: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/sudoku.c:237:9: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2067]
leptonica-1.87.0/src/sudoku.c:240:5: warning[-Wanalyzer-malloc-leak]: leak of ‘array’
leptonica-1.87.0/src/sudoku.c:196:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:198:12: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:212:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:221:24: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:221:24: acquire_memory: allocated here
leptonica-1.87.0/src/sudoku.c:222:28: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:223:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:240:5: throw: if ‘sarrayDestroy’ throws an exception...
leptonica-1.87.0/src/sudoku.c:240:5: danger: ‘array’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def2068]
leptonica-1.87.0/src/sudoku.c:313: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2069]
leptonica-1.87.0/src/sudoku.c:313:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sud’
leptonica-1.87.0/src/sudoku.c:312:23: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:313:5: danger: ‘sud’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def2070]
leptonica-1.87.0/src/sudoku.c:314: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: CPPCHECK_WARNING (CWE-476): [#def2071]
leptonica-1.87.0/src/sudoku.c:315: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: CPPCHECK_WARNING (CWE-476): [#def2072]
leptonica-1.87.0/src/sudoku.c:318: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2073]
leptonica-1.87.0/src/sudoku.c:318:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(81, 4)’
leptonica-1.87.0/src/sudoku.c:314:28: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:316:17: branch_true: following ‘true’ branch (when ‘i != 81’)...
leptonica-1.87.0/src/sudoku.c:317:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:318:9: danger: ‘calloc(81, 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def2074]
leptonica-1.87.0/src/sudoku.c:319: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2075]
leptonica-1.87.0/src/sudoku.c:319:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(81, 4)’
leptonica-1.87.0/src/sudoku.c:315:29: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:316:17: branch_true: following ‘true’ branch (when ‘i != 81’)...
leptonica-1.87.0/src/sudoku.c:317:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:319:9: danger: ‘calloc(81, 4) + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2076]
leptonica-1.87.0/src/sudoku.c:321:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(81, 4)’
leptonica-1.87.0/src/sudoku.c:313:28: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:316:17: branch_true: following ‘true’ branch (when ‘i != 81’)...
leptonica-1.87.0/src/sudoku.c:317:20: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:320:12: branch_true: following ‘true’ branch (when ‘val == 0’)...
leptonica-1.87.0/src/sudoku.c:321:23: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:321:13: danger: ‘calloc(81, 4) + (long unsigned int)locs_index * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def2077]
leptonica-1.87.0/src/sudoku.c:323: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: CPPCHECK_WARNING (CWE-476): [#def2078]
leptonica-1.87.0/src/sudoku.c:324: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: CPPCHECK_WARNING (CWE-476): [#def2079]
leptonica-1.87.0/src/sudoku.c:325: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sud
Error: CPPCHECK_WARNING (CWE-476): [#def2080]
leptonica-1.87.0/src/sudoku.c:670: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rarray
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2081]
leptonica-1.87.0/src/sudoku.c:670:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rarray’
leptonica-1.87.0/src/sudoku.c:660:8: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:662:9: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:662:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:665:25: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:665:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:666:8: branch_true: following ‘true’ branch (when ‘quads == 1’)...
leptonica-1.87.0/src/sudoku.c:666:8: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:667:33: branch_true: following ‘true’ branch (when ‘j != 9’)...
leptonica-1.87.0/src/sudoku.c:667:33: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:668:26: branch_true: following ‘true’ branch (when ‘i != -1’)...
leptonica-1.87.0/src/sudoku.c:669:27: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:670:18: danger: ‘rarray + (long unsigned int)dindex * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def2082]
leptonica-1.87.0/src/sudoku.c:677: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rarray
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2083]
leptonica-1.87.0/src/sudoku.c:677:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rarray’
leptonica-1.87.0/src/sudoku.c:660:8: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:662:9: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:662:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:665:25: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:665:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:666:8: branch_false: following ‘false’ branch (when ‘quads != 1’)...
leptonica-1.87.0/src/sudoku.c:673:15: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:673:15: branch_true: following ‘true’ branch (when ‘quads == 2’)...
leptonica-1.87.0/src/sudoku.c:673:15: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:674:33: branch_true: following ‘true’ branch (when ‘i != -1’)...
leptonica-1.87.0/src/sudoku.c:674:33: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:675:26: branch_true: following ‘true’ branch (when ‘j != -1’)...
leptonica-1.87.0/src/sudoku.c:676:27: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:677:18: danger: ‘rarray + (long unsigned int)dindex * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def2084]
leptonica-1.87.0/src/sudoku.c:684: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rarray
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2085]
leptonica-1.87.0/src/sudoku.c:684:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rarray’
leptonica-1.87.0/src/sudoku.c:660:8: branch_false: following ‘false’ branch (when ‘array’ is non-NULL)...
leptonica-1.87.0/src/sudoku.c:662:9: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:662:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/sudoku.c:665:25: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:665:25: acquire_memory: this call could return NULL
leptonica-1.87.0/src/sudoku.c:666:8: branch_false: following ‘false’ branch (when ‘quads != 1’)...
leptonica-1.87.0/src/sudoku.c:673:15: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:673:15: branch_false: following ‘false’ branch (when ‘quads != 2’)...
leptonica-1.87.0/src/sudoku.c:673:15: branch_false: ...to here
leptonica-1.87.0/src/sudoku.c:681:33: branch_true: following ‘true’ branch (when ‘j != -1’)...
leptonica-1.87.0/src/sudoku.c:681:33: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:682:26: branch_true: following ‘true’ branch (when ‘i != 9’)...
leptonica-1.87.0/src/sudoku.c:683:27: branch_true: ...to here
leptonica-1.87.0/src/sudoku.c:684:18: danger: ‘rarray + (long unsigned int)dindex * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-457): [#def2086]
leptonica-1.87.0/src/textops.c:1036:41: warning[-Wmaybe-uninitialized]: ‘allwhite’ may be used uninitialized
leptonica-1.87.0/src/textops.c: scope_hint: In function ‘splitStringToParagraphs’
leptonica-1.87.0/src/textops.c:1016:21: note: ‘allwhite’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def2087]
leptonica-1.87.0/src/textops.c:1036:54: warning[-Wmaybe-uninitialized]: ‘leadwhite’ may be used uninitialized
leptonica-1.87.0/src/textops.c: scope_hint: In function ‘splitStringToParagraphs’
leptonica-1.87.0/src/textops.c:1016:31: note: ‘leadwhite’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2088]
leptonica-1.87.0/src/tiffio.c:635:17: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:532:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:532:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:559:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:570:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:577:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:579:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:586:5: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:592:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:592:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:603:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:626:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:628:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:632:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:633:30: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:633:30: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:634:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:635:17: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:635:17: throw: if ‘TIFFReadScanline’ throws an exception...
leptonica-1.87.0/src/tiffio.c:635:17: danger: ‘linebuf’ leaks here; was allocated at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2089]
leptonica-1.87.0/src/tiffio.c:645:13: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:532:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:532:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:559:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:570:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:577:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:579:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:586:5: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:592:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:592:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:603:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:626:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:628:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:632:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:633:30: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:633:30: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:634:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:644:13: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:644:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:645:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:645:13: throw: if ‘pixEndianByteSwap’ throws an exception...
leptonica-1.87.0/src/tiffio.c:645:13: danger: ‘linebuf’ leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2090]
leptonica-1.87.0/src/tiffio.c:647:13: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:532:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:532:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:559:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:570:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:577:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:579:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:586:5: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:592:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:592:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:603:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:626:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:628:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:632:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:633:30: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:633:30: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:634:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:644:13: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:644:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:647:13: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:647:13: throw: if ‘pixEndianTwoByteSwap’ throws an exception...
leptonica-1.87.0/src/tiffio.c:647:13: danger: ‘linebuf’ leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2091]
leptonica-1.87.0/src/tiffio.c:653:19: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:532:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:532:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:559:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:570:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:577:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:579:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:586:5: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:592:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:592:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:603:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:626:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:628:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:632:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:649:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:649:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:652:30: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:653:19: throw: if ‘pixGetData’ throws an exception...
leptonica-1.87.0/src/tiffio.c:653:19: danger: ‘linebuf’ leaks here; was allocated at [(25)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2092]
leptonica-1.87.0/src/tiffio.c:655:17: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:532:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:532:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:559:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:570:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:577:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:579:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:586:5: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:592:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:592:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:603:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:626:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:628:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:632:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:649:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:649:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:652:30: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:654:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:655:17: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:655:17: throw: if ‘TIFFReadScanline’ throws an exception...
leptonica-1.87.0/src/tiffio.c:655:17: danger: ‘linebuf’ leaks here; was allocated at [(25)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2093]
leptonica-1.87.0/src/tiffio.c:680:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tiffdata’
leptonica-1.87.0/src/tiffio.c:522:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:532:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:532:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:544:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:545:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:552:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:559:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:570:9: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:575:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:577:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:579:15: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:586:5: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:588:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:592:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:592:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:603:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:626:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:628:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:632:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:649:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:674:37: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:674:12: branch_false: following ‘false’ branch (when ‘tiffdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:680:14: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:680:14: throw: if ‘TIFFReadRGBAImageOriented’ throws an exception...
leptonica-1.87.0/src/tiffio.c:680:14: danger: ‘tiffdata’ leaks here; was allocated at [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2094]
leptonica-1.87.0/src/tiffio.c:1162:5: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2095]
leptonica-1.87.0/src/tiffio.c:1166:20: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2096]
leptonica-1.87.0/src/tiffio.c:1168:20: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2097]
leptonica-1.87.0/src/tiffio.c:1169:27: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2098]
leptonica-1.87.0/src/tiffio.c:1172:17: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2099]
leptonica-1.87.0/src/tiffio.c:1175:9: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2100]
leptonica-1.87.0/src/tiffio.c:1178:20: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2101]
leptonica-1.87.0/src/tiffio.c:1179:17: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2102]
leptonica-1.87.0/src/tiffio.c:1184:20: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2103]
leptonica-1.87.0/src/tiffio.c:1193:17: warning[-Wanalyzer-malloc-leak]: leak of ‘linebuf’
leptonica-1.87.0/src/tiffio.c:1469:1: enter_function: entry to ‘pixaWriteMultipageTiff’
leptonica-1.87.0/src/tiffio.c:1476:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1478:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:1481:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:1482:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1483:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:1484:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1485:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:1486:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:1486:13: call_function: calling ‘pixWriteTiff’ from ‘pixaWriteMultipageTiff’
Error: CPPCHECK_WARNING (CWE-476): [#def2104]
leptonica-1.87.0/src/tiffio.c:2364: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2105]
leptonica-1.87.0/src/tiffio.c:2364:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mstream’
leptonica-1.87.0/src/tiffio.c:2363:30: acquire_memory: this call could return NULL
leptonica-1.87.0/src/tiffio.c:2364:5: danger: ‘mstream’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def2106]
leptonica-1.87.0/src/tiffio.c:2365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: CPPCHECK_WARNING (CWE-476): [#def2107]
leptonica-1.87.0/src/tiffio.c:2366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: CPPCHECK_WARNING (CWE-476): [#def2108]
leptonica-1.87.0/src/tiffio.c:2367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: CPPCHECK_WARNING (CWE-476): [#def2109]
leptonica-1.87.0/src/tiffio.c:2379: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2110]
leptonica-1.87.0/src/tiffio.c:2379:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mstream’
leptonica-1.87.0/src/tiffio.c:2378:30: acquire_memory: this call could return NULL
leptonica-1.87.0/src/tiffio.c:2379:5: danger: ‘mstream’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def2111]
leptonica-1.87.0/src/tiffio.c:2380: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: CPPCHECK_WARNING (CWE-476): [#def2112]
leptonica-1.87.0/src/tiffio.c:2381: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: CPPCHECK_WARNING (CWE-476): [#def2113]
leptonica-1.87.0/src/tiffio.c:2382: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: CPPCHECK_WARNING (CWE-476): [#def2114]
leptonica-1.87.0/src/tiffio.c:2383: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mstream
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2115]
leptonica-1.87.0/src/tiffio.c:2568:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/tiffio.c:2542:1: enter_function: entry to ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2550:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: following ‘false’ branch (when ‘operation’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: following ‘false’ branch (when ‘pdatasize’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: following ‘false’ branch (when the strings are equal)...
leptonica-1.87.0/src/tiffio.c:2561:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2561:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
leptonica-1.87.0/src/tiffio.c:2564:19: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2564:19: call_function: calling ‘memstreamCreateForWrite’ from ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2564:19: return_function: returning to ‘fopenTiffMemstream’ from ‘memstreamCreateForWrite’
leptonica-1.87.0/src/tiffio.c:2568:5: throw: if ‘TIFFSetWarningHandler’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2568:5: danger: ‘<unknown>’ leaks here; was allocated at [(16)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2116]
leptonica-1.87.0/src/tiffio.c:2568:5: warning[-Wanalyzer-malloc-leak]: leak of ‘mstream’
leptonica-1.87.0/src/tiffio.c:2542:1: enter_function: entry to ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2550:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: following ‘false’ branch (when ‘operation’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: following ‘false’ branch (when ‘pdatasize’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2561:8: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/tiffio.c:2562:19: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2562:19: call_function: calling ‘memstreamCreateForRead’ from ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2562:19: return_function: returning to ‘fopenTiffMemstream’ from ‘memstreamCreateForRead’
leptonica-1.87.0/src/tiffio.c:2568:5: throw: if ‘TIFFSetWarningHandler’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2568:5: danger: ‘mstream’ leaks here; was allocated at [(14)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2117]
leptonica-1.87.0/src/tiffio.c:2569:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/tiffio.c:2542:1: enter_function: entry to ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2550:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: following ‘false’ branch (when ‘operation’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: following ‘false’ branch (when ‘pdatasize’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: following ‘false’ branch (when the strings are equal)...
leptonica-1.87.0/src/tiffio.c:2561:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2561:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
leptonica-1.87.0/src/tiffio.c:2564:19: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2564:19: call_function: calling ‘memstreamCreateForWrite’ from ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2564:19: return_function: returning to ‘fopenTiffMemstream’ from ‘memstreamCreateForWrite’
leptonica-1.87.0/src/tiffio.c:2569:5: throw: if ‘TIFFSetErrorHandler’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2569:5: danger: ‘<unknown>’ leaks here; was allocated at [(16)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2118]
leptonica-1.87.0/src/tiffio.c:2569:5: warning[-Wanalyzer-malloc-leak]: leak of ‘mstream’
leptonica-1.87.0/src/tiffio.c:2542:1: enter_function: entry to ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2550:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: following ‘false’ branch (when ‘operation’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: following ‘false’ branch (when ‘pdatasize’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2561:8: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/tiffio.c:2562:19: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2562:19: call_function: calling ‘memstreamCreateForRead’ from ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2562:19: return_function: returning to ‘fopenTiffMemstream’ from ‘memstreamCreateForRead’
leptonica-1.87.0/src/tiffio.c:2569:5: throw: if ‘TIFFSetErrorHandler’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2569:5: danger: ‘mstream’ leaks here; was allocated at [(14)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2119]
leptonica-1.87.0/src/tiffio.c:2571:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
leptonica-1.87.0/src/tiffio.c:2542:1: enter_function: entry to ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2550:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: following ‘false’ branch (when ‘operation’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: following ‘false’ branch (when ‘pdatasize’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: following ‘false’ branch (when the strings are equal)...
leptonica-1.87.0/src/tiffio.c:2561:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2561:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
leptonica-1.87.0/src/tiffio.c:2564:19: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2564:19: call_function: calling ‘memstreamCreateForWrite’ from ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2564:19: return_function: returning to ‘fopenTiffMemstream’ from ‘memstreamCreateForWrite’
leptonica-1.87.0/src/tiffio.c:2571:11: throw: if ‘TIFFClientOpen’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2571:11: danger: ‘<unknown>’ leaks here; was allocated at [(16)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2120]
leptonica-1.87.0/src/tiffio.c:2571:11: warning[-Wanalyzer-malloc-leak]: leak of ‘mstream’
leptonica-1.87.0/src/tiffio.c:2542:1: enter_function: entry to ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2550:8: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2552:8: branch_false: following ‘false’ branch (when ‘operation’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2554:8: branch_false: following ‘false’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2556:8: branch_false: following ‘false’ branch (when ‘pdatasize’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2558:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2561:8: branch_true: following ‘true’ branch (when the strings are equal)...
leptonica-1.87.0/src/tiffio.c:2562:19: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2562:19: call_function: calling ‘memstreamCreateForRead’ from ‘fopenTiffMemstream’
leptonica-1.87.0/src/tiffio.c:2562:19: return_function: returning to ‘fopenTiffMemstream’ from ‘memstreamCreateForRead’
leptonica-1.87.0/src/tiffio.c:2571:11: throw: if ‘TIFFClientOpen’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2571:11: danger: ‘mstream’ leaks here; was allocated at [(14)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2121]
leptonica-1.87.0/src/tiffio.c:2781:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2781:9: throw: if ‘pixaGetCount’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2781:9: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2122]
leptonica-1.87.0/src/tiffio.c:2784:16: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2782:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:2784:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2784:16: throw: if ‘pixaGetPix’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2784:16: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2123]
leptonica-1.87.0/src/tiffio.c:2785:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2782:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:2784:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2785:13: throw: if ‘pixGetDepth’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2785:13: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2124]
leptonica-1.87.0/src/tiffio.c:2786:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2758:1: enter_function: entry to ‘pixaWriteMemMultipageTiff’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2782:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:2784:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2785:12: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:2786:13: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2786:13: call_function: calling ‘pixWriteStreamTiffWA’ from ‘pixaWriteMemMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2125]
leptonica-1.87.0/src/tiffio.c:2788:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2758:1: enter_function: entry to ‘pixaWriteMemMultipageTiff’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2782:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2783:9: branch_true: following ‘true’ branch (when ‘i == 0’)...
leptonica-1.87.0/src/tiffio.c:2784:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2785:12: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2788:13: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2788:13: call_function: calling ‘pixWriteStreamTiffWA’ from ‘pixaWriteMemMultipageTiff’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2126]
leptonica-1.87.0/src/tiffio.c:2792:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2782:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2792:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2792:5: throw: if ‘rewind’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2792:5: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2127]
leptonica-1.87.0/src/tiffio.c:2793:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
leptonica-1.87.0/src/tiffio.c:2767:8: branch_true: following ‘true’ branch (when ‘pdata’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2767:16: branch_true: ...to here
leptonica-1.87.0/src/tiffio.c:2770:8: branch_false: following ‘false’ branch (when ‘pixa’ is non-NULL)...
leptonica-1.87.0/src/tiffio.c:2777:15: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2777:15: acquire_memory: allocated here
leptonica-1.87.0/src/tiffio.c:2777:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2781:9: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2782:17: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/tiffio.c:2792:5: branch_false: ...to here
leptonica-1.87.0/src/tiffio.c:2793:14: throw: if ‘l_binaryReadStream’ throws an exception...
leptonica-1.87.0/src/tiffio.c:2793:14: danger: ‘tmpfile()’ leaks here; was allocated at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def2128]
leptonica-1.87.0/src/utils1.c:577: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dataout
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2129]
leptonica-1.87.0/src/utils1.c:577:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dataout’
leptonica-1.87.0/src/utils1.c:556:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:558:8: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:558:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:560:8: branch_false: following ‘false’ branch (when ‘size > 0.0f’)...
leptonica-1.87.0/src/utils1.c:562:9: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:575:26: acquire_memory: this call could return NULL
leptonica-1.87.0/src/utils1.c:576:17: branch_true: following ‘true’ branch (when ‘i < locb’)...
leptonica-1.87.0/src/utils1.c:577:28: branch_true: ...to here
leptonica-1.87.0/src/utils1.c:577:9: danger: ‘dataout + (sizetype)i’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def2130]
leptonica-1.87.0/src/utils1.c:579: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dataout
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2131]
leptonica-1.87.0/src/utils1.c:580:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dataout’
leptonica-1.87.0/src/utils1.c:556:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:558:8: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:558:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:560:8: branch_false: following ‘false’ branch (when ‘size > 0.0f’)...
leptonica-1.87.0/src/utils1.c:562:9: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:575:26: acquire_memory: allocated here
leptonica-1.87.0/src/utils1.c:576:17: branch_false: following ‘false’ branch (when ‘i >= locb’)...
leptonica-1.87.0/src/utils1.c:576:17: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:578:17: branch_false: following ‘false’ branch (when ‘i >= rembytes’)...
leptonica-1.87.0/src/utils1.c:580:5: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:580:5: throw: if ‘l_binaryWrite’ throws an exception...
leptonica-1.87.0/src/utils1.c:580:5: danger: ‘dataout’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2132]
leptonica-1.87.0/src/utils1.c:701:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dataout’
leptonica-1.87.0/src/utils1.c:679:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:682:14: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:688:31: acquire_memory: allocated here
leptonica-1.87.0/src/utils1.c:688:8: branch_false: following ‘false’ branch (when ‘dataout’ is non-NULL)...
leptonica-1.87.0/src/utils1.c:688:8: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:693:17: branch_false: following ‘false’ branch (when ‘i >= start’)...
leptonica-1.87.0/src/utils1.c:693:17: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:695:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:698:11: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:699:21: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils1.c:701:5: branch_false: ...to here
leptonica-1.87.0/src/utils1.c:701:5: throw: if ‘l_binaryWrite’ throws an exception...
leptonica-1.87.0/src/utils1.c:701:5: danger: ‘dataout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def2133]
leptonica-1.87.0/src/utils1.c:1096: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: version
Error: GCC_ANALYZER_WARNING (CWE-121): [#def2134]
leptonica-1.87.0/src/utils1.c:1452:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2135]
leptonica-1.87.0/src/utils2.c:238:25: warning[-Wanalyzer-malloc-leak]: leak of ‘stringNew(pathname)’
leptonica-1.87.0/src/utils2.c:2746:1: enter_function: entry to ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:2754:8: branch_true: following ‘true’ branch (when ‘pdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2754:15: branch_true: ...to here
leptonica-1.87.0/src/utils2.c:2755:8: branch_false: following ‘false’ branch (when ‘ptail’ is NULL)...
leptonica-1.87.0/src/utils2.c:2756:8: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2756:8: branch_false: following ‘false’ branch (when ‘pathname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2759:17: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2759:17: call_function: calling ‘stringNew’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:2759:17: return_function: returning to ‘splitPathAtDirectory’ from ‘stringNew’
leptonica-1.87.0/src/utils2.c:2760:5: call_function: calling ‘convertSepCharsInPath’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:2760:5: return_function: returning to ‘splitPathAtDirectory’ from ‘convertSepCharsInPath’
leptonica-1.87.0/src/utils2.c:2762:8: branch_false: following ‘false’ branch (when ‘lastslash’ is NULL)...
leptonica-1.87.0/src/utils2.c:2772:12: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2772:12: branch_true: following ‘true’ branch (when ‘pdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2773:21: branch_true: ...to here
leptonica-1.87.0/src/utils2.c:2773:21: call_function: calling ‘stringNew’ from ‘splitPathAtDirectory’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2136]
leptonica-1.87.0/src/utils2.c:239:24: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3366:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:3367:5: call_function: calling ‘splitPathAtExtension’ from ‘extractNumberFromFilename’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2137]
leptonica-1.87.0/src/utils2.c:239:24: warning[-Wanalyzer-malloc-leak]: leak of ‘tail’
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3366:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:3367:5: call_function: calling ‘splitPathAtExtension’ from ‘extractNumberFromFilename’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2138]
leptonica-1.87.0/src/utils2.c:394:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dest’
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3366:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:3367:5: call_function: calling ‘splitPathAtExtension’ from ‘extractNumberFromFilename’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2139]
leptonica-1.87.0/src/utils2.c:394:5: warning[-Wanalyzer-malloc-leak]: leak of ‘newdir’
leptonica-1.87.0/src/utils2.c:2968:1: enter_function: entry to ‘appendSubdirs’
leptonica-1.87.0/src/utils2.c:2974:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2978:12: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2981:27: acquire_memory: allocated here
leptonica-1.87.0/src/utils2.c:2981:8: branch_false: following ‘false’ branch (when ‘newdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2983:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2983:5: call_function: calling ‘stringCat’ from ‘appendSubdirs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2140]
leptonica-1.87.0/src/utils2.c:431:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dest’
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3366:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:3367:5: call_function: calling ‘splitPathAtExtension’ from ‘extractNumberFromFilename’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2141]
leptonica-1.87.0/src/utils2.c:431:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newdir’
leptonica-1.87.0/src/utils2.c:2968:1: enter_function: entry to ‘appendSubdirs’
leptonica-1.87.0/src/utils2.c:2974:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2978:12: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2981:27: acquire_memory: allocated here
leptonica-1.87.0/src/utils2.c:2981:8: branch_false: following ‘false’ branch (when ‘newdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2983:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2983:5: call_function: calling ‘stringCat’ from ‘appendSubdirs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2142]
leptonica-1.87.0/src/utils2.c:437:16: warning[-Wanalyzer-malloc-leak]: leak of ‘dest’
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3366:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:3367:5: call_function: calling ‘splitPathAtExtension’ from ‘extractNumberFromFilename’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2143]
leptonica-1.87.0/src/utils2.c:437:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newdir’
leptonica-1.87.0/src/utils2.c:2968:1: enter_function: entry to ‘appendSubdirs’
leptonica-1.87.0/src/utils2.c:2974:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2978:12: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2981:27: acquire_memory: allocated here
leptonica-1.87.0/src/utils2.c:2981:8: branch_false: following ‘false’ branch (when ‘newdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2983:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2983:5: call_function: calling ‘stringCat’ from ‘appendSubdirs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2144]
leptonica-1.87.0/src/utils2.c:443:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newdir’
leptonica-1.87.0/src/utils2.c:2968:1: enter_function: entry to ‘appendSubdirs’
leptonica-1.87.0/src/utils2.c:2974:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2978:12: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2981:27: acquire_memory: allocated here
leptonica-1.87.0/src/utils2.c:2981:8: branch_false: following ‘false’ branch (when ‘newdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2983:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2983:5: call_function: calling ‘stringCat’ from ‘appendSubdirs’
Error: GCC_ANALYZER_WARNING (CWE-122): [#def2145]
leptonica-1.87.0/src/utils2.c:446:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
leptonica-1.87.0/src/utils2.c:2968:1: enter_function: entry to ‘appendSubdirs’
leptonica-1.87.0/src/utils2.c:2974:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2978:12: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2981:8: branch_false: following ‘false’ branch (when ‘newdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2983:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2983:5: call_function: calling ‘stringCat’ from ‘appendSubdirs’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2146]
leptonica-1.87.0/src/utils2.c:2181:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
leptonica-1.87.0/src/utils2.c:2152:1: enter_function: entry to ‘lept_mkdir’
leptonica-1.87.0/src/utils2.c:2162:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2168:8: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2168:8: branch_false: following ‘false’ branch (when ‘subdir’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2170:9: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2170:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/utils2.c:2176:11: call_function: calling ‘genPathname’ from ‘lept_mkdir’
leptonica-1.87.0/src/utils2.c:2176:11: return_function: returning to ‘lept_mkdir’ from ‘genPathname’
leptonica-1.87.0/src/utils2.c:2181:5: danger: argument 1 (‘genPathname("/tmp", 0)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2147]
leptonica-1.87.0/src/utils2.c:2761:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
leptonica-1.87.0/src/utils2.c:2746:1: enter_function: entry to ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:2754:8: branch_false: following ‘false’ branch (when ‘pdir’ is NULL)...
leptonica-1.87.0/src/utils2.c:2755:8: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2755:8: branch_false: following ‘false’ branch (when ‘ptail’ is NULL)...
leptonica-1.87.0/src/utils2.c:2756:8: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2756:8: branch_false: following ‘false’ branch (when ‘pathname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:2759:17: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:2759:17: call_function: calling ‘stringNew’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:2759:17: return_function: returning to ‘splitPathAtDirectory’ from ‘stringNew’
leptonica-1.87.0/src/utils2.c:2760:5: call_function: calling ‘convertSepCharsInPath’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:2760:5: return_function: returning to ‘splitPathAtDirectory’ from ‘convertSepCharsInPath’
leptonica-1.87.0/src/utils2.c:2761:17: danger: argument 1 (‘stringNew(pathname)’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2148]
leptonica-1.87.0/src/utils2.c:2761:17: warning[-Wanalyzer-null-argument]: use of NULL ‘tail’ where non-null expected
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def2149]
leptonica-1.87.0/src/utils2.c:3370:11: warning[-Wanalyzer-null-argument]: use of NULL ‘tail’ where non-null expected
leptonica-1.87.0/src/utils2.c:3356:1: enter_function: entry to ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3363:8: branch_false: following ‘false’ branch (when ‘fname’ is non-NULL)...
leptonica-1.87.0/src/utils2.c:3366:5: branch_false: ...to here
leptonica-1.87.0/src/utils2.c:3366:5: call_function: calling ‘splitPathAtDirectory’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3366:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtDirectory’
leptonica-1.87.0/src/utils2.c:3367:5: release_memory: ‘tail’ is NULL
leptonica-1.87.0/src/utils2.c:3367:5: call_function: calling ‘splitPathAtExtension’ from ‘extractNumberFromFilename’
leptonica-1.87.0/src/utils2.c:3367:5: return_function: returning to ‘extractNumberFromFilename’ from ‘splitPathAtExtension’
leptonica-1.87.0/src/utils2.c:3368:5: release_memory: ‘tail’ is NULL
leptonica-1.87.0/src/utils2.c:3370:11: release_memory: ‘tail’ is NULL
leptonica-1.87.0/src/utils2.c:3370:11: danger: argument 1 (‘basename’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2150]
leptonica-1.87.0/src/warper.c:242:31: warning[-Wanalyzer-malloc-leak]: leak of ‘generateRandomNumberArray((nx + ny) * 5)’
leptonica-1.87.0/src/warper.c:183:1: enter_function: entry to ‘pixRandomHarmonicWarp’
leptonica-1.87.0/src/warper.c:202:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/warper.c:210:5: branch_false: ...to here
leptonica-1.87.0/src/warper.c:211:13: call_function: calling ‘generateRandomNumberArray’ from ‘pixRandomHarmonicWarp’
leptonica-1.87.0/src/warper.c:211:13: return_function: returning to ‘pixRandomHarmonicWarp’ from ‘generateRandomNumberArray’
leptonica-1.87.0/src/warper.c:212:12: throw: if ‘pixCreateTemplate’ throws an exception...
leptonica-1.87.0/src/warper.c:242:31: danger: ‘generateRandomNumberArray((nx + ny) * 5)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2151]
leptonica-1.87.0/src/warper.c:278:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘randa’
leptonica-1.87.0/src/warper.c:183:1: enter_function: entry to ‘pixRandomHarmonicWarp’
leptonica-1.87.0/src/warper.c:202:8: branch_false: following ‘false’ branch...
leptonica-1.87.0/src/warper.c:210:5: branch_false: ...to here
leptonica-1.87.0/src/warper.c:211:13: call_function: calling ‘generateRandomNumberArray’ from ‘pixRandomHarmonicWarp’
leptonica-1.87.0/src/warper.c:211:13: return_function: returning to ‘pixRandomHarmonicWarp’ from ‘generateRandomNumberArray’
leptonica-1.87.0/src/warper.c:218:17: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/warper.c:219:25: branch_true: ...to here
leptonica-1.87.0/src/warper.c:220:21: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/warper.c:221:13: branch_true: ...to here
leptonica-1.87.0/src/warper.c:221:13: call_function: calling ‘applyWarpTransform’ from ‘pixRandomHarmonicWarp’
Error: COMPILER_WARNING (CWE-457): [#def2152]
leptonica-1.87.0/src/watershed.c:412:21: warning[-Wmaybe-uninitialized]: ‘index’ may be used uninitialized
leptonica-1.87.0/src/watershed.c:317:34: note: ‘index’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def2153]
leptonica-1.87.0/src/watershed.c: scope_hint: In function ‘wshedApply’
leptonica-1.87.0/src/watershed.c:490:51: warning[-Wmaybe-uninitialized]: ‘val’ may be used uninitialized
leptonica-1.87.0/src/watershed.c:317:17: note: ‘val’ was declared here
Error: CPPCHECK_WARNING (CWE-476): [#def2154]
leptonica-1.87.0/src/watershed.c:836: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: np
Error: CPPCHECK_WARNING (CWE-476): [#def2155]
leptonica-1.87.0/src/watershed.c:837: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: np
Error: CPPCHECK_WARNING (CWE-476): [#def2156]
leptonica-1.87.0/src/watershed.c:917: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wsp
Error: CPPCHECK_WARNING (CWE-476): [#def2157]
leptonica-1.87.0/src/watershed.c:918: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wsp
Error: CPPCHECK_WARNING (CWE-476): [#def2158]
leptonica-1.87.0/src/watershed.c:919: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wsp
Error: CPPCHECK_WARNING (CWE-476): [#def2159]
leptonica-1.87.0/src/watershed.c:920: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wsp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2160]
leptonica-1.87.0/src/zlibmem.c:112:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:108:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:112:12: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:112:12: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2161]
leptonica-1.87.0/src/zlibmem.c:112:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:109:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:112:12: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:112:12: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2162]
leptonica-1.87.0/src/zlibmem.c:113:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:108:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:113:13: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:113:13: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2163]
leptonica-1.87.0/src/zlibmem.c:113:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:109:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:113:13: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:113:13: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2164]
leptonica-1.87.0/src/zlibmem.c:117:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:108:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:116:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:117:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:117:9: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2165]
leptonica-1.87.0/src/zlibmem.c:117:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:109:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:116:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:117:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:117:9: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2166]
leptonica-1.87.0/src/zlibmem.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:108:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:116:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:170:9: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:170:9: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2167]
leptonica-1.87.0/src/zlibmem.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:109:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:116:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:170:9: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:170:9: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2168]
leptonica-1.87.0/src/zlibmem.c:172:5: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:108:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:116:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:172:5: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:172:5: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2169]
leptonica-1.87.0/src/zlibmem.c:172:5: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:104:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:108:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:109:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:116:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:117:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:172:5: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:172:5: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2170]
leptonica-1.87.0/src/zlibmem.c:212:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:208:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:212:12: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:212:12: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2171]
leptonica-1.87.0/src/zlibmem.c:212:12: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:209:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:212:12: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:212:12: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2172]
leptonica-1.87.0/src/zlibmem.c:213:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:208:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:213:13: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:213:13: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2173]
leptonica-1.87.0/src/zlibmem.c:213:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:209:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:213:13: throw: if ‘bbufferCreate’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:213:13: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2174]
leptonica-1.87.0/src/zlibmem.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:208:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:216:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:217:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:217:9: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2175]
leptonica-1.87.0/src/zlibmem.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:209:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:216:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:217:9: throw: if ‘lept_stderr’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:217:9: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2176]
leptonica-1.87.0/src/zlibmem.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:208:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:216:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:270:9: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:270:9: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2177]
leptonica-1.87.0/src/zlibmem.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:209:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:216:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:270:9: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:270:9: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2178]
leptonica-1.87.0/src/zlibmem.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferin’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:208:27: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:216:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:272:5: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:272:5: danger: ‘bufferin’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2179]
leptonica-1.87.0/src/zlibmem.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘bufferout’
leptonica-1.87.0/src/zlibmem.c:204:8: branch_false: following ‘false’ branch (when ‘datain’ is non-NULL)...
leptonica-1.87.0/src/zlibmem.c:208:27: branch_false: ...to here
leptonica-1.87.0/src/zlibmem.c:209:28: acquire_memory: allocated here
leptonica-1.87.0/src/zlibmem.c:216:8: branch_true: following ‘true’ branch...
leptonica-1.87.0/src/zlibmem.c:217:9: branch_true: ...to here
leptonica-1.87.0/src/zlibmem.c:272:5: throw: if ‘bbufferDestroy’ throws an exception...
leptonica-1.87.0/src/zlibmem.c:272:5: danger: ‘bufferout’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
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-12.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 | leptonica-1.87.0-1.fc44 |
| store-results-to | /tmp/tmpqvb2zxve/leptonica-1.87.0-1.fc44.tar.xz |
| time-created | 2026-01-08 18:47:58 |
| time-finished | 2026-01-08 18:57:50 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpqvb2zxve/leptonica-1.87.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqvb2zxve/leptonica-1.87.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |