Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1510:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s’ where non-null expected fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1438:1: enter_function: entry to ‘IA__FcDirCacheClean’ fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1451:8: branch_false: following ‘false’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1454:15: branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1459:8: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1464:9: branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1464:8: branch_false: following ‘false’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1470:8: branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1473:8: branch_false: following ‘false’ branch... branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1478:12: branch_true: following ‘true’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1482:13: branch_true: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1478:12: branch_true: following ‘true’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1482:13: branch_true: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1491:12: branch_false: following ‘false’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1497:17: branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1497:17: call_function: calling ‘IA__FcDirCacheLoadFile’ from ‘IA__FcDirCacheClean’ fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1497:17: return_function: returning to ‘IA__FcDirCacheClean’ from ‘IA__FcDirCacheLoadFile’ fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1498:12: branch_false: following ‘false’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1505:26: branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1506:16: branch_false: following ‘false’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1509:21: branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1509:21: acquire_memory: this call could return NULL fontconfig-2.16.2/redhat-linux-build/../src/fccache.c:1510:17: danger: argument 1 (‘s’) from [(48)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/47) could be NULL where non-null expected # 1508| else # 1509| s = FcStrdup (target_dir); # 1510|-> if (stat ((char *)s, &target_stat) < 0) { # 1511| if (verbose || FcDebug() & FC_DBG_CACHE) # 1512| printf ("%s: %s: missing directory: %s \n", Error: GCC_ANALYZER_WARNING (CWE-457): [#def2] fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:556:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘lang[2]’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:756:1: enter_function: entry to ‘FcNameParseLangSet’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:762:10: call_function: calling ‘IA__FcLangSetCreate’ from ‘FcNameParseLangSet’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:762:10: return_function: returning to ‘FcNameParseLangSet’ from ‘IA__FcLangSetCreate’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:763:8: branch_false: following ‘false’ branch... branch_false: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:767:21: branch_true: following ‘true’ branch (when ‘i != 31’)... fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:768:18: branch_true: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:769:16: branch_true: following ‘true’ branch... fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:773:9: branch_true: ...to here fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:774:14: call_function: calling ‘IA__FcLangSetAdd’ from ‘FcNameParseLangSet’ # 554| if (cmp == 0 && # 555| (fcLangCharSets[mid].lang[2] != '\0' || # 556|-> lang[2] != '\0')) { # 557| cmp = FcStrCmpIgnoreCase (fcLangCharSets[mid].lang + 2, # 558| lang + 2); Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:583:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ls’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:1021:1: enter_function: entry to ‘IA__FcLangSetUnion’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:1023:12: call_function: calling ‘FcLangSetOperate’ from ‘IA__FcLangSetUnion’ # 581| return FcTrue; # 582| } # 583|-> if (!ls->extra) { # 584| ls->extra = FcStrSetCreate(); # 585| if (!ls->extra) Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:599:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ls’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:1027:1: enter_function: entry to ‘IA__FcLangSetSubtract’ fontconfig-2.16.2/redhat-linux-build/../src/fclang.c:1029:12: call_function: calling ‘FcLangSetOperate’ from ‘IA__FcLangSetSubtract’ # 597| if (id >= 0) { # 598| FcLangSetBitReset (ls, id); # 599|-> } else if (ls->extra) { # 600| FcStrSetDel (ls->extra, lang); # 601| }
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.86.0 |
diffbase-analyzer-version-cppcheck | 2.17.1 |
diffbase-analyzer-version-gcc | 15.0.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.1 |
diffbase-analyzer-version-shellcheck | 0.10.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-11.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.20250425.124705.g1c7c448.main-1.el9.noarch |
diffbase-mock-config | fedora-rawhide-x86_64 |
diffbase-project-name | fontconfig-2.16.0-2.fc42 |
diffbase-store-results-to | /tmp/tmpefbt7uw5/fontconfig-2.16.0-2.fc42.tar.xz |
diffbase-time-created | 2025-04-25 12:27:37 |
diffbase-time-finished | 2025-04-25 12:30:48 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpefbt7uw5/fontconfig-2.16.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpefbt7uw5/fontconfig-2.16.0-2.fc42.src.rpm' |
diffbase-tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-11.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | fontconfig-2.16.2-1.fc43 |
store-results-to | /tmp/tmp7obwatun/fontconfig-2.16.2-1.fc43.tar.xz |
time-created | 2025-04-25 12:31:03 |
time-finished | 2025-04-25 12:33:47 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp7obwatun/fontconfig-2.16.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7obwatun/fontconfig-2.16.2-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |