Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1027:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.pdata + (long unsigned int)i * 8’ xdg-desktop-portal-1.21.2/document-portal/document-portal.c:881:1: enter_function: entry to ‘document_add_full’ xdg-desktop-portal-1.21.2/document-portal/document-portal.c:906:15: branch_true: following ‘true’ branch (when ‘i < n_args’)... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:909:24: branch_true: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:917:12: call_function: calling ‘validate_fd’ from ‘document_add_full’ xdg-desktop-portal-1.21.2/document-portal/document-portal.c:917:12: return_function: returning to ‘document_add_full’ from ‘validate_fd’ xdg-desktop-portal-1.21.2/document-portal/document-portal.c:917:10: branch_false: following ‘false’ branch... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:924:11: branch_false: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:944:10: branch_false: following ‘false’ branch... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:990:7: branch_false: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:906:15: branch_false: following ‘false’ branch (when ‘i >= n_args’)... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:994:5: call_function: inlined call to ‘g_mutex_locker_new’ from ‘document_add_full’ xdg-desktop-portal-1.21.2/document-portal/document-portal.c:996:17: branch_true: following ‘true’ branch (when ‘i < n_args’)... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1004:32: branch_true: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1015:9: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1017:12: branch_true: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1017:12: branch_false: following ‘false’ branch... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1025:13: branch_false: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1025:12: branch_true: following ‘true’ branch... xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1027:61: branch_true: ...to here xdg-desktop-portal-1.21.2/document-portal/document-portal.c:1027:24: danger: dereference of NULL ‘*<unknown>.pdata + (long unsigned int)i * 8’ # 1025| if (g_ptr_array_index(ids,i) == NULL) # 1026| { # 1027|-> char *id = do_create_doc (&real_dir_st_bufs[i], g_ptr_array_index (handles, i), path, reuse_existing, persistent, is_dir); # 1028| g_ptr_array_index(ids,i) = id; # 1029| Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] xdg-desktop-portal-1.21.2/document-portal/permission-db.c:524:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ids’ xdg-desktop-portal-1.21.2/document-portal/permission-db.c:511:1: enter_function: entry to ‘permission_db_filter_ids’ xdg-desktop-portal-1.21.2/document-portal/permission-db.c:515:21: release_memory: ‘ids’ is NULL xdg-desktop-portal-1.21.2/document-portal/permission-db.c:518:3: branch_false: following ‘false’ branch (when ‘self’ is non-NULL)... xdg-desktop-portal-1.21.2/document-portal/permission-db.c:518:3: branch_false: ...to here xdg-desktop-portal-1.21.2/document-portal/permission-db.c:519:3: branch_true: following ‘true’ branch (when ‘func’ is non-NULL)... xdg-desktop-portal-1.21.2/document-portal/permission-db.c:521:9: branch_true: ...to here xdg-desktop-portal-1.21.2/document-portal/permission-db.c:521:9: call_function: calling ‘permission_db_list_ids’ from ‘permission_db_filter_ids’ xdg-desktop-portal-1.21.2/document-portal/permission-db.c:521:9: return_function: returning to ‘permission_db_filter_ids’ from ‘permission_db_list_ids’ xdg-desktop-portal-1.21.2/document-portal/permission-db.c:524:22: danger: dereference of NULL ‘permission_db_list_ids(self) + i * 8’ # 522| builder = g_strv_builder_new (); # 523| # 524|-> for (size_t i = 0; ids[i] != NULL; i++) # 525| { # 526| g_autofree char *id = ids[i]; Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:427:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:604:1: enter_function: entry to ‘gvdb_table_write_contents_async’ xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:619:3: branch_true: following ‘true’ branch (when ‘table’ is non-NULL)... xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:620:3: branch_true: ...to here xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:620:3: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)... xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:621:3: branch_true: ...to here xdg-desktop-portal-1.21.2/subprojects/gvdb/gvdb/gvdb-builder.c:624:3: call_function: calling ‘file_builder_add_hash’ from ‘gvdb_table_write_contents_async’ # 425| # 426| for (child = item->child; child; child = child->sibling) # 427|-> offsets[i++] = child->assigned_index; # 428| # 429| g_assert (children == i);
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| 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-14.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | xdg-desktop-portal-1.21.1-1.fc44 |
| diffbase-store-results-to | /tmp/tmpsrrjno3_/xdg-desktop-portal-1.21.1-1.fc44.tar.xz |
| diffbase-time-created | 2026-06-01 17:22:54 |
| diffbase-time-finished | 2026-06-01 17:26:14 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpsrrjno3_/xdg-desktop-portal-1.21.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsrrjno3_/xdg-desktop-portal-1.21.1-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-14.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | xdg-desktop-portal-1.21.2-1.fc45 |
| store-results-to | /tmp/tmp1m5klv8c/xdg-desktop-portal-1.21.2-1.fc45.tar.xz |
| time-created | 2026-06-01 17:26:40 |
| time-finished | 2026-06-01 17:29:28 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp1m5klv8c/xdg-desktop-portal-1.21.2-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1m5klv8c/xdg-desktop-portal-1.21.2-1.fc45.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |