Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1036:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*<unknown>.pdata + (long unsigned int)i * 8’ xdg-desktop-portal-1.22.1/document-portal/document-portal.c:890:1: enter_function: entry to ‘document_add_full’ xdg-desktop-portal-1.22.1/document-portal/document-portal.c:915:15: branch_true: following ‘true’ branch (when ‘i < n_args’)... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:918:24: branch_true: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:926:12: call_function: calling ‘validate_fd’ from ‘document_add_full’ xdg-desktop-portal-1.22.1/document-portal/document-portal.c:926:12: return_function: returning to ‘document_add_full’ from ‘validate_fd’ xdg-desktop-portal-1.22.1/document-portal/document-portal.c:926:10: branch_false: following ‘false’ branch... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:933:11: branch_false: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:953:10: branch_false: following ‘false’ branch... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:999:7: branch_false: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:915:15: branch_false: following ‘false’ branch (when ‘i >= n_args’)... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1003:5: call_function: inlined call to ‘g_mutex_locker_new’ from ‘document_add_full’ xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1005:17: branch_true: following ‘true’ branch (when ‘i < n_args’)... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1013:32: branch_true: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1024:9: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1026:12: branch_true: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1026:12: branch_false: following ‘false’ branch... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1034:13: branch_false: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1034:12: branch_true: following ‘true’ branch... xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1036:61: branch_true: ...to here xdg-desktop-portal-1.22.1/document-portal/document-portal.c:1036:24: danger: dereference of NULL ‘*<unknown>.pdata + (long unsigned int)i * 8’ # 1034| if (g_ptr_array_index(ids,i) == NULL) # 1035| { # 1036|-> char *id = do_create_doc (&real_dir_st_bufs[i], g_ptr_array_index (handles, i), path, reuse_existing, persistent, is_dir); # 1037| g_ptr_array_index(ids,i) = id; # 1038| Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] xdg-desktop-portal-1.22.1/document-portal/permission-db.c:524:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ids’ xdg-desktop-portal-1.22.1/document-portal/permission-db.c:511:1: enter_function: entry to ‘permission_db_filter_ids’ xdg-desktop-portal-1.22.1/document-portal/permission-db.c:515:21: release_memory: ‘ids’ is NULL xdg-desktop-portal-1.22.1/document-portal/permission-db.c:518:3: branch_false: following ‘false’ branch (when ‘self’ is non-NULL)... xdg-desktop-portal-1.22.1/document-portal/permission-db.c:518:3: branch_false: ...to here xdg-desktop-portal-1.22.1/document-portal/permission-db.c:519:3: branch_true: following ‘true’ branch (when ‘func’ is non-NULL)... xdg-desktop-portal-1.22.1/document-portal/permission-db.c:521:9: branch_true: ...to here xdg-desktop-portal-1.22.1/document-portal/permission-db.c:521:9: call_function: calling ‘permission_db_list_ids’ from ‘permission_db_filter_ids’ xdg-desktop-portal-1.22.1/document-portal/permission-db.c:521:9: return_function: returning to ‘permission_db_filter_ids’ from ‘permission_db_list_ids’ xdg-desktop-portal-1.22.1/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.22.1/subprojects/gvdb/gvdb/gvdb-builder.c:427:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ xdg-desktop-portal-1.22.1/subprojects/gvdb/gvdb/gvdb-builder.c:604:1: enter_function: entry to ‘gvdb_table_write_contents_async’ xdg-desktop-portal-1.22.1/subprojects/gvdb/gvdb/gvdb-builder.c:619:3: branch_true: following ‘true’ branch (when ‘table’ is non-NULL)... xdg-desktop-portal-1.22.1/subprojects/gvdb/gvdb/gvdb-builder.c:620:3: branch_true: ...to here xdg-desktop-portal-1.22.1/subprojects/gvdb/gvdb/gvdb-builder.c:620:3: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)... xdg-desktop-portal-1.22.1/subprojects/gvdb/gvdb/gvdb-builder.c:621:3: branch_true: ...to here xdg-desktop-portal-1.22.1/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.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| 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.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| 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-97.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/tmpwpuhf1lh/xdg-desktop-portal-1.21.1-1.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 21:35:20 |
| diffbase-time-finished | 2026-08-03 21:39:03 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpwpuhf1lh/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/tmpwpuhf1lh/xdg-desktop-portal-1.21.1-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-97.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.22.1-2.fc45 |
| store-results-to | /tmp/tmp0_lkzbyw/xdg-desktop-portal-1.22.1-2.fc45.tar.xz |
| time-created | 2026-08-03 21:39:26 |
| time-finished | 2026-08-03 21:42:15 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp0_lkzbyw/xdg-desktop-portal-1.22.1-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0_lkzbyw/xdg-desktop-portal-1.22.1-2.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |