Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] desktop-file-utils-0.28/redhat-linux-build/../src/install.c:108:7: warning[-Wanalyzer-null-argument]: use of NULL ‘first’ where non-null expected desktop-file-utils-0.28/redhat-linux-build/../src/install.c:151:1: enter_function: entry to ‘process_one_file’ desktop-file-utils-0.28/redhat-linux-build/../src/install.c:160:6: branch_false: following ‘false’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/install.c:168:8: branch_false: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/install.c:168:6: branch_false: following ‘false’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/install.c:179:3: branch_false: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/install.c:220:6: branch_true: following ‘true’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/install.c:222:22: call_function: inlined call to ‘g_strdup_inline’ from ‘process_one_file’ desktop-file-utils-0.28/redhat-linux-build/../src/install.c:243:6: branch_false: following ‘false’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/install.c:249:3: branch_false: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/install.c:252:6: branch_true: following ‘true’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/install.c:255:20: branch_true: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/install.c:257:12: call_function: calling ‘files_are_the_same’ from ‘process_one_file’ # 106| struct stat second_sb; # 107| # 108|-> if (stat (first, &first_sb) < 0) # 109| { # 110| g_printerr (_("Could not stat \"%s\": %s\n"), first, g_strerror (errno)); Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:221:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:209:1: enter_function: entry to ‘mu_mime_type_is_valid’ desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:217:6: branch_false: following ‘false’ branch (when ‘error’ is NULL)... desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:220:16: call_function: inlined call to ‘g_strdup_inline’ from ‘mu_mime_type_is_valid’ desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:221:13: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 219| # 220| media_type = g_strdup (mime_type); # 221|-> subtype = strchr (media_type, '/'); # 222| # 223| if (!subtype) { Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:221:13: warning[-Wanalyzer-null-argument]: use of NULL ‘*error’ where non-null expected desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:209:1: enter_function: entry to ‘mu_mime_type_is_valid’ desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:217:6: branch_true: following ‘true’ branch (when ‘error’ is non-NULL)... desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:218:5: branch_true: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:218:5: release_memory: ‘*error’ is NULL desktop-file-utils-0.28/redhat-linux-build/../src/mimeutils.c:221:13: danger: argument 1 (‘<unknown>’) NULL where non-null expected #argument 1 of ‘__builtin_strchr’ must be non-null # 219| # 220| media_type = g_strdup (mime_type); # 221|-> subtype = strchr (media_type, '/'); # 222| # 223| if (!subtype) { Error: GCC_ANALYZER_WARNING (CWE-688): [#def4] desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:90:7: warning[-Wanalyzer-null-argument]: use of NULL ‘desktop_file’ where non-null expected desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:430:1: enter_function: entry to ‘main’ desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:473:6: branch_false: following ‘false’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:480:7: branch_false: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:480:6: branch_false: following ‘false’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:485:7: branch_false: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:491:15: branch_true: following ‘true’ branch... desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:493:7: branch_true: ...to here desktop-file-utils-0.28/redhat-linux-build/../src/update-desktop-database.c:494:7: call_function: calling ‘update_database’ from ‘main’ # 88| * by a desktop file before moving to another desktop file) */ # 89| if (desktop_files && # 90|-> strcmp (desktop_file, (const char *) desktop_files->data) == 0) # 91| return; # 92|
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 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-67.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 | desktop-file-utils-0.28-1.fc43 |
store-results-to | /tmp/tmp3tm8ms86/desktop-file-utils-0.28-1.fc43.tar.xz |
time-created | 2025-04-25 12:19:27 |
time-finished | 2025-04-25 12:20:50 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp3tm8ms86/desktop-file-utils-0.28-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3tm8ms86/desktop-file-utils-0.28-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |