Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] AppStream-1.1.0/src/as-pool.c:336:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘registry’ AppStream-1.1.0/src/as-pool.c:1766:1: enter_function: entry to ‘as_pool_section_reload_thread’ AppStream-1.1.0/src/as-pool.c:1778:15: call_function: calling ‘as_pool_loader_process_group’ from ‘as_pool_section_reload_thread’ # 334| } # 335| # 336|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (AsComponentRegistry, as_component_registry_free) # 337| # 338| /** Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] AppStream-1.1.0/src/as-pool.c:1332:40: warning[-Wanalyzer-null-argument]: use of NULL ‘g_path_get_basename(fname)’ where non-null expected AppStream-1.1.0/src/as-pool.c:1514:1: enter_function: entry to ‘as_pool_loader_process_group’ AppStream-1.1.0/src/as-pool.c:1529:12: branch_false: following ‘false’ branch... AppStream-1.1.0/src/as-pool.c:1533:12: branch_false: ...to here AppStream-1.1.0/src/as-pool.c:1575:9: call_function: calling ‘as_pool_process_metainfo_desktop_data’ from ‘as_pool_loader_process_group’ # 1330| if (g_str_has_suffix (mi_cid, ".appdata.xml")) { # 1331| g_autofree gchar *mi_cid_desktop = NULL; # 1332|-> mi_cid[strlen (mi_cid) - 12] = '\0'; # 1333| # 1334| mi_cid_desktop = g_strdup_printf ("%s.desktop", mi_cid); Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] AppStream-1.1.0/src/as-pool.c:1332:40: warning[-Wanalyzer-null-argument]: use of NULL ‘mi_cid’ where non-null expected AppStream-1.1.0/src/as-pool.c:1514:1: enter_function: entry to ‘as_pool_loader_process_group’ AppStream-1.1.0/src/as-pool.c:1529:12: branch_false: following ‘false’ branch... AppStream-1.1.0/src/as-pool.c:1533:12: branch_false: ...to here AppStream-1.1.0/src/as-pool.c:1575:9: call_function: calling ‘as_pool_process_metainfo_desktop_data’ from ‘as_pool_loader_process_group’ # 1330| if (g_str_has_suffix (mi_cid, ".appdata.xml")) { # 1331| g_autofree gchar *mi_cid_desktop = NULL; # 1332|-> mi_cid[strlen (mi_cid) - 12] = '\0'; # 1333| # 1334| mi_cid_desktop = g_strdup_printf ("%s.desktop", mi_cid); Error: GCC_ANALYZER_WARNING (CWE-688): [#def4] AppStream-1.1.0/src/as-pool.c:2232:21: warning[-Wanalyzer-null-argument]: use of NULL ‘tmp’ where non-null expected AppStream-1.1.0/src/as-pool.c:2214:1: enter_function: entry to ‘as_pool_search’ AppStream-1.1.0/src/as-pool.c:2226:18: call_function: calling ‘as_pool_build_search_tokens’ from ‘as_pool_search’ AppStream-1.1.0/src/as-pool.c:2226:18: return_function: returning to ‘as_pool_search’ from ‘as_pool_build_search_tokens’ AppStream-1.1.0/src/as-pool.c:2228:12: branch_true: following ‘true’ branch... AppStream-1.1.0/src/as-pool.c:2230:41: call_function: inlined call to ‘g_strdup_inline’ from ‘as_pool_search’ AppStream-1.1.0/src/as-pool.c:2230:35: release_memory: ‘tmp’ is NULL AppStream-1.1.0/src/as-pool.c:2232:21: danger: argument 1 (‘<unknown>’) NULL where non-null expected # 2230| g_autofree gchar *tmp = g_strdup (search); # 2231| as_strstripnl (tmp); # 2232|-> if (strlen (tmp) <= 1) { # 2233| /* we have a one-letter search query - we cheat here and just return everything */ # 2234| g_debug ("Search query '%s' too broad. Matching everything.", tmp); Error: GCC_ANALYZER_WARNING (CWE-457): [#def5] AppStream-1.1.0/src/as-profile.h:51:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ptask’ AppStream-1.1.0/src/as-pool.c:2214:1: enter_function: entry to ‘as_pool_search’ AppStream-1.1.0/src/as-pool.c:2221:49: call_function: inlined call to ‘g_rw_lock_reader_locker_new’ from ‘as_pool_search’ AppStream-1.1.0/src/as-pool.c:2218:27: call_function: inlined call to ‘glib_autoptr_cleanup_GError’ from ‘as_pool_search’ AppStream-1.1.0/src/as-pool.c:2217:34: call_function: inlined call to ‘glib_autoptr_cleanup_AsProfileTask’ from ‘as_pool_search’ # 49| void as_profile_task_free (AsProfileTask *ptask); # 50| # 51|-> G_DEFINE_AUTOPTR_CLEANUP_FUNC (AsProfileTask, as_profile_task_free) # 52| # 53| G_END_DECLS Error: GCC_ANALYZER_WARNING (CWE-457): [#def6] AppStream-1.1.0/src/as-stemmer.h:34:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘stemmer’ AppStream-1.1.0/src/as-pool.c:2135:1: enter_function: entry to ‘as_pool_build_search_tokens’ AppStream-1.1.0/src/as-pool.c:2145:12: branch_true: following ‘true’ branch (when ‘search’ is NULL)... AppStream-1.1.0/src/as-pool.c:2140:23: call_function: inlined call to ‘glib_auto_cleanup_GStrv’ from ‘as_pool_build_search_tokens’ AppStream-1.1.0/src/as-pool.c:2139:27: branch_false: ...to here AppStream-1.1.0/src/as-pool.c:2139:27: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘as_pool_build_search_tokens’ AppStream-1.1.0/src/as-pool.c:2138:30: call_function: inlined call to ‘glib_autoptr_cleanup_AsStemmer’ from ‘as_pool_build_search_tokens’ # 32| # 33| #define AS_TYPE_STEMMER (as_stemmer_get_type ()) # 34|-> G_DECLARE_FINAL_TYPE (AsStemmer, as_stemmer, AS, STEMMER, GObject) # 35| # 36| AS_INTERNAL_VISIBLE
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| 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-44.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.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | appstream-1.1.0-1.fc44 |
| diffbase-store-results-to | /tmp/tmp1gwjw0a5/appstream-1.1.0-1.fc44.tar.xz |
| diffbase-time-created | 2026-01-08 14:51:39 |
| diffbase-time-finished | 2026-01-08 14:55:35 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp1gwjw0a5/appstream-1.1.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1gwjw0a5/appstream-1.1.0-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-44.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | appstream-1.1.0-1.fc43 |
| store-results-to | /tmp/tmplt9ww04h/appstream-1.1.0-1.fc43.tar.xz |
| time-created | 2026-01-08 14:46:31 |
| time-finished | 2026-01-08 14:50:59 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmplt9ww04h/appstream-1.1.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplt9ww04h/appstream-1.1.0-1.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |