Task #267 - appstream-1.0.2-2.fc41/scan-results.err
back to task #267download
Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-canvas.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-compose.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-font.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-globals.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-hint.c:258:4: warning[deadcode.DeadStores]: Value stored to 'tmp2' is never read # 256| # 257| /* replace string */ # 258|-> tmp2 = parts[i]; # 259| parts[i] = parts[i] + strlen (tmp); # 260| parts[i] = g_strconcat (g_ptr_array_index (priv->vars, j + 1), Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-hint.c:271:4: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read # 269| # 270| /* keep the placeholder in place */ # 271|-> tmp = parts[i]; # 272| parts[i] = g_strconcat ("{{", parts[i], NULL); # 273| } Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-icon-policy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-image.c:916:15: warning[deadcode.DeadStores]: Although the value stored to 'a' is used in the enclosing expression, the value is never actually read from 'a' # 914| # 915| /* calc the initial sums of the kernel */ # 916|-> r = g = b = a = 0; # 917| for (i = -radius; i <= radius; i++) { # 918| c1 = p_src + (CLAMP (i, 0, width_minus_1) * n_channels); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-image.c:963:15: warning[deadcode.DeadStores]: Although the value stored to 'a' is used in the enclosing expression, the value is never actually read from 'a' # 961| # 962| /* calc the initial sums of the kernel */ # 963|-> r = g = b = a = 0; # 964| for (i = -radius; i <= radius; i++) { # 965| c1 = p_src + (CLAMP (i, 0, height_minus_1) * src_rowstride); Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-result.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-result.c:360:8: warning[unix.Malloc]: Potential leak of memory pointed to by 'tmp' # 358| memcpy (tmp + old_hash_len, data, data_len); # 359| # 360|-> hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, tmp, old_hash_len + data_len); # 361| } # 362| Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-fonts.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-l10n.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c: scope_hint: In function ‘asc_parse_metainfo_data’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:65:35: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.h:23: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:28: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:58:9: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:61:47: note: in expansion of macro ‘g_strdup’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c: scope_hint: In function ‘asc_parse_metainfo_data’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:64:21: note: in expansion of macro ‘g_str_has_suffix’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 63| /* try to guess the component-ID */ # 64| if (g_str_has_suffix (cid_guess, ".metainfo.xml")) # 65|-> cid_guess[strlen (cid_guess) - 13] = '\0'; # 66| else if (g_str_has_suffix (cid_guess, ".appdata.xml")) # 67| cid_guess[strlen (cid_guess) - 12] = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:67:35: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:58:9: note: in expansion of macro ‘g_return_val_if_fail’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:61:47: note: in expansion of macro ‘g_strdup’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c: scope_hint: In function ‘asc_parse_metainfo_data’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:64:21: note: in expansion of macro ‘g_str_has_suffix’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:64:21: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:66:26: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:66:26: note: in expansion of macro ‘g_str_has_suffix’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 65| cid_guess[strlen (cid_guess) - 13] = '\0'; # 66| else if (g_str_has_suffix (cid_guess, ".appdata.xml")) # 67|-> cid_guess[strlen (cid_guess) - 12] = '\0'; # 68| else if (g_str_has_suffix (cid_guess, ".xml")) # 69| cid_guess[strlen (cid_guess) - 4] = '\0'; Error: GCC_ANALYZER_WARNING (CWE-688): appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:69:35: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:58:9: note: in expansion of macro ‘g_return_val_if_fail’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:61:47: note: in expansion of macro ‘g_strdup’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c: scope_hint: In function ‘asc_parse_metainfo_data’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:64:21: note: in expansion of macro ‘g_str_has_suffix’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:64:21: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:66:26: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:66:26: note: in expansion of macro ‘g_str_has_suffix’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:66:26: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:68:26: note: in expansion of macro ‘g_str_has_suffix’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gstrfuncs.h:190:11: note: in expansion of macro ‘G_UNLIKELY’ appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-metainfo.c:68:26: note: in expansion of macro ‘g_str_has_suffix’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 67| cid_guess[strlen (cid_guess) - 12] = '\0'; # 68| else if (g_str_has_suffix (cid_guess, ".xml")) # 69|-> cid_guess[strlen (cid_guess) - 4] = '\0'; # 70| # 71| asc_result_add_hint_by_cid (cres, Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-screenshots.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/compose/asc-utils-screenshots.c:113:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'vinfo' # 111| return vinfo; # 112| if (asc_globals_get_ffprobe_binary () == NULL) # 113|-> return NULL; # 114| vid_basename = g_path_get_basename (vid_fname); # 115| Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/redhat-linux-build/tmp-introspect0v2ccrww/AppStream-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/redhat-linux-build/tmp-introspect0v2ccrww/AppStream-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/redhat-linux-build/tmp-introspect3mmw3ab_/AppStreamCompose-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/redhat-linux-build/tmp-introspect3mmw3ab_/AppStreamCompose-1.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-branding.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-bundle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-cache.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-cache.c:892:2: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 890| NULL); # 891| # 892|-> locker = g_rw_lock_writer_locker_new (&priv->rw_lock); # 893| g_debug ("Storing cache data for section: %s", internal_section_key); # 894| Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-cache.c:1520:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'qctx' # 1518| query = xb_query_new (csec->silo, xpath, &tmp_error); # 1519| if (query == NULL) { # 1520|-> g_propagate_prefixed_error (error, # 1521| g_steal_pointer (&tmp_error), # 1522| "Unable to construct query: "); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-cache.c:1955:2: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 1953| # 1954| /* lock for reading */ # 1955|-> locker = g_rw_lock_reader_locker_new (&priv->rw_lock); # 1956| # 1957| qctx = as_query_context_new (); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-cache.c:2014:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'qctx' # 2012| } # 2013| # 2014|-> results = as_query_context_retrieve_components (qctx); # 2015| # 2016| /* sort the results by their priority */ Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-category.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-checksum.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-component.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-content-rating.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-823): appstream-1.0.2-build/AppStream-1.0.2/src/as-content-rating.c:1322: error[arrayIndexOutOfBounds]: Array 'oars_to_csm_mappings[28]' accessed at index 9998, which is out of bounds. # 1320| { # 1321| for (gsize i = 0; G_N_ELEMENTS (oars_to_csm_mappings); i++) { # 1322|-> if (g_strcmp0 (id, oars_to_csm_mappings[i].id) == 0) { # 1323| if (age >= oars_to_csm_mappings[i].csm_age_intense) # 1324| return AS_CONTENT_RATING_VALUE_INTENSE; Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-curl.c:221:24: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>=' is a garbage value # 219| curl_status == CURLE_COULDNT_CONNECT # 220| # 221|-> || response_code >= 405) { # 222| g_debug ("Retrying failed download of %s (attempt: %d/%d)", # 223| url, Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-desktop-entry.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.c:71:10: warning[deadcode.DeadStores]: Although the value stored to 'd' is used in the enclosing expression, the value is never actually read from 'd' # 69| return TRUE; # 70| # 71|-> while ((d = g_dir_read_name (dir)) != NULL) { # 72| if (++n > 2) # 73| break; Error: GCC_ANALYZER_WARNING (CWE-688): appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.c: scope_hint: In function ‘as_get_yml_data_origin’ appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.c:158:54: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.h:24: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.c:22: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/src/as-distro-extras.c:146:22: note: in expansion of macro ‘g_str_has_prefix’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 156| # 157| tmp = origin; # 158|-> origin = g_strndup (tmp + 1, strlen (tmp) - 2); # 159| } # 160| Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-file-monitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-icon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-metadata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-metadata.c:320:5: warning[deadcode.DeadStores]: Value stored to 'parse' is never read # 318| yaml_event_delete (&event); # 319| ret = FALSE; # 320|-> parse = FALSE; # 321| break; # 322| } Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-news-convert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-news-convert.c:183:5: warning[deadcode.DeadStores]: Value stored to 'parse' is never read # 181| yaml_event_delete (&event); # 182| ret = FALSE; # 183|-> parse = FALSE; # 184| break; # 185| } Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1048:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1046| return TRUE; # 1047| # 1048|-> ptask = as_profile_start_literal (priv->profile, "AsPool:load_catalog_data"); # 1049| # 1050| /* prepare metadata parser */ Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1227:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1225| GError *error = NULL; # 1226| # 1227|-> ptask = as_profile_start_literal (priv->profile, "AsPool:get_desktop_entries_table"); # 1228| # 1229| /* prepare metadata parser */ Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1296:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1294| /* NOTE: Write-lock is held by the caller. */ # 1295| # 1296|-> ptask = as_profile_start (priv->profile, "AsPool:load_metainfo_data:%s", cache_key); # 1297| # 1298| /* prepare metadata parser */ Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1431:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1429| return; # 1430| # 1431|-> ptask = as_profile_start (priv->profile, "AsPool:load_metainfo_desktop_data:%s", cache_key); # 1432| # 1433| /* create a hashmap of all desktop-entry components we know of */ Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1615:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1613| g_autoptr(GRWLockWriterLocker) locker = NULL; # 1614| # 1615|-> ptask = as_profile_start_literal (priv->profile, "AsPool:load"); # 1616| # 1617| /* load as AsPool also means to reload, so we clear any potential old data */ Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1621:2: warning[deadcode.DeadStores]: Value stored to 'locker' is never read # 1619| # 1620| /* lock for writing */ # 1621|-> locker = g_rw_lock_writer_locker_new (&priv->rw_lock); # 1622| # 1623| /* apply settings */ Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1854:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1852| g_autoptr(GRWLockReaderLocker) locker = g_rw_lock_reader_locker_new (&priv->rw_lock); # 1853| # 1854|-> ptask = as_profile_start_literal (priv->profile, "AsPool:get_components"); # 1855| # 1856| result = as_cache_get_components_all (priv->cache, &tmp_error); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:1886:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 1884| g_autoptr(GRWLockReaderLocker) locker = g_rw_lock_reader_locker_new (&priv->rw_lock); # 1885| # 1886|-> ptask = as_profile_start_literal (priv->profile, "AsPool:get_components_by_id"); # 1887| result = as_cache_get_components_by_id (priv->cache, cid, &tmp_error); # 1888| if (result == NULL) { Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-pool.c:2213:2: warning[deadcode.DeadStores]: Value stored to 'ptask' is never read # 2211| g_autoptr(GRWLockReaderLocker) locker = g_rw_lock_reader_locker_new (&priv->rw_lock); # 2212| # 2213|-> ptask = as_profile_start_literal (priv->profile, "AsPool:search"); # 2214| # 2215| /* sanitize user's search term */ Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-profile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-provided.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-relation-check-result.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-relation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-release-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-review.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-screenshot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-spdx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): appstream-1.0.2-build/AppStream-1.0.2/src/as-system-info.c: scope_hint: In function ‘as_system_info_load_os_release’ appstream-1.0.2-build/AppStream-1.0.2/src/as-system-info.c:261:62: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/src/as-system-info.h:28: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/src/as-system-info-private.h:24: included_from: Included from here. appstream-1.0.2-build/AppStream-1.0.2/src/as-system-info.c:38: included_from: Included from here. /usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’ appstream-1.0.2-build/AppStream-1.0.2/src/as-system-info.c:258:34: note: in expansion of macro ‘g_strdup’ <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 259| if (g_str_has_prefix (dvalue, "\"")) { # 260| gchar *tmp; # 261|-> tmp = g_strndup (dvalue + 1, strlen (dvalue) - 2); # 262| g_free (dvalue); # 263| dvalue = tmp; Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-utils.c:128:4: warning[deadcode.DeadStores]: Value stored to 'curline_char_count' is never read # 126| if (curline->len > 0) { # 127| g_string_truncate (curline, curline->len - 1); # 128|-> curline_char_count -= 1; # 129| } # 130| Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-validator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): appstream-1.0.2-build/AppStream-1.0.2/src/as-validator.c:3320: error[uninitvar]: Uninitialized variable: ckind # 3318| # 3319| /* we require a homepage for anything but generic components and language packs */ # 3320|-> if (ckind != AS_COMPONENT_KIND_GENERIC && ckind != AS_COMPONENT_KIND_LOCALIZATION) # 3321| as_validator_add_issue (validator, NULL, "url-homepage-missing", NULL); # 3322| } Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-validator.c:3320:13: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value # 3318| # 3319| /* we require a homepage for anything but generic components and language packs */ # 3320|-> if (ckind != AS_COMPONENT_KIND_GENERIC && ckind != AS_COMPONENT_KIND_LOCALIZATION) # 3321| as_validator_add_issue (validator, NULL, "url-homepage-missing", NULL); # 3322| } Error: COMPILER_WARNING (CWE-457): appstream-1.0.2-build/AppStream-1.0.2/src/as-validator.c: scope_hint: In function ‘as_validator_validate_component_node’ appstream-1.0.2-build/AppStream-1.0.2/src/as-validator.c:3320:27: warning[-Wmaybe-uninitialized]: ‘ckind’ may be used uninitialized # 3320 | if (ckind != AS_COMPONENT_KIND_GENERIC && ckind != AS_COMPONENT_KIND_LOCALIZATION) # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ appstream-1.0.2-build/AppStream-1.0.2/src/as-validator.c:3317:33: note: ‘ckind’ was declared here # 3317 | AsComponentKind ckind; # | ^~~~~ # 3318| # 3319| /* we require a homepage for anything but generic components and language packs */ # 3320|-> if (ckind != AS_COMPONENT_KIND_GENERIC && ckind != AS_COMPONENT_KIND_LOCALIZATION) # 3321| as_validator_add_issue (validator, NULL, "url-homepage-missing", NULL); # 3322| } Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-vercmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-video.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/src/as-xml.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-basics.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-basics.c:98:2: warning[unix.Malloc]: Use of memory after it is freed # 96| /* assigning a variable to itself should be safe */ # 97| tmp = member1; # 98|-> as_assign_string_safe (member1, member1); # 99| g_assert_cmpstr (member1, ==, "Test A"); # 100| g_assert_true (tmp == member1); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-basics.c:103:2: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read # 101| # 102| /* assign new literal */ # 103|-> tmp = member1; # 104| as_assign_string_safe (member1, "Literal"); # 105| g_assert_cmpstr (member1, ==, (const gchar *) "Literal"); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-basics.c:108:2: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read # 106| # 107| /* assign new value */ # 108|-> tmp = member1; # 109| as_assign_string_safe (member1, value1); # 110| g_assert_cmpstr (member1, ==, "New Value"); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-basics.c:926:2: warning[deadcode.DeadStores]: Value stored to 'dev_name' is never read # 924| /* We can't properly test this as most build environments lack the udev hardware database. # 925| * We still run the code for potential leak detection etc. */ # 926|-> dev_name = as_system_info_get_device_name_for_modalias (sysinfo, # 927| "usb:v1130p0202d*", # 928| FALSE, Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-compose.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-performance.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-pool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-validate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-xmldata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tests/test-yamldata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/appstream-compose.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/appstreamcli.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/appstreamcli.c:1140:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'asc_argv' # 1138| if (argc < 2) { # 1139| /* TRANSLATORS: Unexpected number of parameters on the command-line */ # 1140|-> ascli_print_stderr (_("Invalid number of parameters")); # 1141| return 5; # 1142| } Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-mdata.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-misc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-misc.c:63:25: warning[deadcode.DeadStores]: Although the value stored to 'os_metadata_found' is used in the enclosing expression, the value is never actually read from 'os_metadata_found' # 61| /* TRANSLATORS: In the status report of ascli: Refers to the metadata that isn't shipped by the OS (e.g. Flatpak) */ # 62| ascli_print_highlight (_("Other metadata sources:")); # 63|-> other_metadata_found = os_metadata_found = as_pool_print_std_data_locations_info_private ( # 64| pool, # 65| FALSE, Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-pkgmgr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-pkgmgr.c:65:6: warning[unix.Malloc]: Potential leak of memory pointed to by 'cmd' # 63| } # 64| # 65|-> ret = execv (exe, cmd); # 66| if (ret != 0) # 67| ascli_print_stderr (_("Unable to spawn package manager: %s"), g_strerror (errno)); Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-pkgmgr.c:94:6: warning[unix.Malloc]: Potential leak of memory pointed to by 'cmd' # 92| cmd[2] = g_strdup (bundle_id); # 93| # 94|-> ret = execv (exe, cmd); # 95| if (ret != 0) # 96| ascli_print_stderr (_("Unable to spawn Flatpak process: %s"), g_strerror (errno)); Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-validate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-actions-validate.c:370:3: warning[deadcode.DeadStores]: Value stored to 'add_spacer' is never read # 368| /* TRANSLATORS: Used for small issue-statistics in appstreamcli-validate, shows amount of "pedantic"-type hints */ # 369| g_print (_("pedantic: %lu"), pedantic_count); # 370|-> add_spacer = TRUE; # 371| } # 372| } Error: CPPCHECK_WARNING: appstream-1.0.2-build/AppStream-1.0.2/tools/ascli-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.