Task #77972 - fixed.err
back to task #77972download
Error: GCC_ANALYZER_WARNING (CWE-688):
leptonica-1.85.0/src/utils2.c:2179:11: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
leptonica-1.85.0/src/utils2.c:2152:1: enter_function: entry to ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2162:8: branch_false: following ‘false’ branch...
leptonica-1.85.0/src/utils2.c:2168:8: branch_false: ...to here
leptonica-1.85.0/src/utils2.c:2168:8: branch_false: following ‘false’ branch (when ‘subdir’ is non-NULL)...
leptonica-1.85.0/src/utils2.c:2170:9: branch_false: ...to here
leptonica-1.85.0/src/utils2.c:2170:8: branch_false: following ‘false’ branch...
leptonica-1.85.0/src/utils2.c:2176:11: call_function: calling ‘genPathname’ from ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2176:11: return_function: returning to ‘lept_mkdir’ from ‘genPathname’
leptonica-1.85.0/src/utils2.c:2179:11: danger: argument 1 (‘genPathname("/tmp", 0)’) NULL where non-null expected
# 2177| /* Make sure the tmp directory exists */
# 2178| #ifndef _WIN32
# 2179|-> ret = mkdir(dir, 0777);
# 2180| #else
# 2181| attributes = GetFileAttributesA(dir);
Error: GCC_ANALYZER_WARNING (CWE-688):
leptonica-1.85.0/src/utils2.c:2189:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
leptonica-1.85.0/src/utils2.c:2152:1: enter_function: entry to ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2162:8: branch_false: following ‘false’ branch...
leptonica-1.85.0/src/utils2.c:2168:8: branch_false: ...to here
leptonica-1.85.0/src/utils2.c:2168:8: branch_false: following ‘false’ branch (when ‘subdir’ is non-NULL)...
leptonica-1.85.0/src/utils2.c:2170:9: branch_false: ...to here
leptonica-1.85.0/src/utils2.c:2170:8: branch_false: following ‘false’ branch...
leptonica-1.85.0/src/utils2.c:2176:11: call_function: calling ‘genPathname’ from ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2176:11: return_function: returning to ‘lept_mkdir’ from ‘genPathname’
leptonica-1.85.0/src/utils2.c:2186:17: branch_true: following ‘true’ branch...
leptonica-1.85.0/src/utils2.c:2187:18: branch_true: ...to here
leptonica-1.85.0/src/utils2.c:2187:18: call_function: calling ‘pathJoin’ from ‘lept_mkdir’
leptonica-1.85.0/src/utils2.c:2187:18: return_function: returning to ‘lept_mkdir’ from ‘pathJoin’
leptonica-1.85.0/src/utils2.c:2189:16: danger: argument 1 (‘pathJoin(dir, sarrayGetString(sa, i, 0))’) NULL where non-null expected
# 2187| tmpdir = pathJoin(dir, sarrayGetString(sa, i, L_NOCOPY));
# 2188| #ifndef _WIN32
# 2189|-> ret += mkdir(tmpdir, 0777);
# 2190| #else
# 2191| if (CreateDirectoryA(tmpdir, NULL) == 0)