Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] leptonica-1.86.0/src/utils2.c:2181:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected leptonica-1.86.0/src/utils2.c:2152:1: enter_function: entry to ‘lept_mkdir’ leptonica-1.86.0/src/utils2.c:2162:8: branch_false: following ‘false’ branch... leptonica-1.86.0/src/utils2.c:2168:8: branch_false: ...to here leptonica-1.86.0/src/utils2.c:2168:8: branch_false: following ‘false’ branch (when ‘subdir’ is non-NULL)... leptonica-1.86.0/src/utils2.c:2170:9: branch_false: ...to here leptonica-1.86.0/src/utils2.c:2170:8: branch_false: following ‘false’ branch... leptonica-1.86.0/src/utils2.c:2176:11: call_function: calling ‘genPathname’ from ‘lept_mkdir’ leptonica-1.86.0/src/utils2.c:2176:11: return_function: returning to ‘lept_mkdir’ from ‘genPathname’ leptonica-1.86.0/src/utils2.c:2181:5: danger: argument 1 (‘genPathname("/tmp", 0)’) NULL where non-null expected # 2179| /* Make sure the tmp directory exists */ # 2180| #ifndef _WIN32 # 2181|-> mkdir(dir, 0777); # 2182| #else # 2183| attributes = GetFileAttributesA(dir); Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] leptonica-1.86.0/src/utils2.c:2191:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected leptonica-1.86.0/src/utils2.c:2152:1: enter_function: entry to ‘lept_mkdir’ leptonica-1.86.0/src/utils2.c:2162:8: branch_false: following ‘false’ branch... leptonica-1.86.0/src/utils2.c:2168:8: branch_false: ...to here leptonica-1.86.0/src/utils2.c:2168:8: branch_false: following ‘false’ branch (when ‘subdir’ is non-NULL)... leptonica-1.86.0/src/utils2.c:2170:9: branch_false: ...to here leptonica-1.86.0/src/utils2.c:2170:8: branch_false: following ‘false’ branch... leptonica-1.86.0/src/utils2.c:2176:11: call_function: calling ‘genPathname’ from ‘lept_mkdir’ leptonica-1.86.0/src/utils2.c:2176:11: return_function: returning to ‘lept_mkdir’ from ‘genPathname’ leptonica-1.86.0/src/utils2.c:2188:17: branch_true: following ‘true’ branch... leptonica-1.86.0/src/utils2.c:2189:18: branch_true: ...to here leptonica-1.86.0/src/utils2.c:2189:18: call_function: calling ‘pathJoin’ from ‘lept_mkdir’ leptonica-1.86.0/src/utils2.c:2189:18: return_function: returning to ‘lept_mkdir’ from ‘pathJoin’ leptonica-1.86.0/src/utils2.c:2191:9: danger: argument 1 (‘pathJoin(dir, sarrayGetString(sa, i, 0))’) NULL where non-null expected # 2189| tmpdir = pathJoin(dir, sarrayGetString(sa, i, L_NOCOPY)); # 2190| #ifndef _WIN32 # 2191|-> mkdir(tmpdir, 0777); # 2192| #else # 2193| if (CreateDirectoryA(tmpdir, NULL) == 0)
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.90.0 |
| diffbase-analyzer-version-cppcheck | 2.18.3 |
| diffbase-analyzer-version-gcc | 15.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-173.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
| diffbase-project-name | leptonica-1.85.0-4.fc43 |
| diffbase-store-results-to | /tmp/tmpqkdq2z3h/leptonica-1.85.0-4.fc43.tar.xz |
| diffbase-time-created | 2025-10-28 18:47:53 |
| diffbase-time-finished | 2025-10-28 18:59:52 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpqkdq2z3h/leptonica-1.85.0-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpqkdq2z3h/leptonica-1.85.0-4.fc43.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-173.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-gcc-latest-x86_64 |
| project-name | leptonica-1.86.0-2.fc44 |
| store-results-to | /tmp/tmps3ped7iz/leptonica-1.86.0-2.fc44.tar.xz |
| time-created | 2025-10-28 19:00:51 |
| time-finished | 2025-10-28 19:12:24 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmps3ped7iz/leptonica-1.86.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmps3ped7iz/leptonica-1.86.0-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |