Task #119526 - added.err
back to task #119526download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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):
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);