tracker-3.7.3-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c: scope_hint: In function ‘ttl_md_print’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:663:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-ontology.md.in", *description.localPrefix))), "w")’
#  661|   
#  662|   	path = g_file_get_path (file);
#  663|-> 	f = fopen (path, "w");
#  664|   	g_assert (f != NULL);
#  665|   	g_free (path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:663:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-ontology.md.in", *description.localPrefix))), "w")’
#  661|   
#  662|   	path = g_file_get_path (file);
#  663|-> 	f = fopen (path, "w");
#  664|   	g_assert (f != NULL);
#  665|   	g_free (path);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:665:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-ontology.md.in", *description.localPrefix))), "w")’
/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/glib/gprintf.h:23: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:22: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
#  663|   	f = fopen (path, "w");
#  664|   	g_assert (f != NULL);
#  665|-> 	g_free (path);
#  666|   
#  667|   	upper_name = g_ascii_strup (description->localPrefix, -1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:665:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-ontology.md.in", *description.localPrefix))), "w")’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
#  663|   	f = fopen (path, "w");
#  664|   	g_assert (f != NULL);
#  665|-> 	g_free (path);
#  666|   
#  667|   	upper_name = g_ascii_strup (description->localPrefix, -1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:667:48: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-ontology.md.in", *description.localPrefix))), "w")’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
#  665|   	g_free (path);
#  666|   
#  667|-> 	upper_name = g_ascii_strup (description->localPrefix, -1);
#  668|   	classes = tracker_ontology_model_list_classes (model, prefix);
#  669|   	properties = tracker_ontology_model_list_properties (model, prefix);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:667:48: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-ontology.md.in", *description.localPrefix))), "w")’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-docgen-md.c:664:9: note: in expansion of macro ‘g_assert’
#  665|   	g_free (path);
#  666|   
#  667|-> 	upper_name = g_ascii_strup (description->localPrefix, -1);
#  668|   	classes = tracker_ontology_model_list_classes (model, prefix);
#  669|   	properties = tracker_ontology_model_list_properties (model, prefix);

Error: CPPCHECK_WARNING: [#def8]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c: scope_hint: In function ‘ttl_generate_rdf_diagram_dot’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:155:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-diagram.dot", *klass.shortname))), "w")’
/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.
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:22: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:109:9: note: in expansion of macro ‘g_assert’
#  153|   
#  154|   	path = g_file_get_path (file);
#  155|-> 	f = fopen (path, "w");
#  156|   	g_assert (f != NULL);
#  157|   	g_free (path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:155:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-diagram.dot", *klass.shortname))), "w")’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:109:9: note: in expansion of macro ‘g_assert’
#  153|   
#  154|   	path = g_file_get_path (file);
#  155|-> 	f = fopen (path, "w");
#  156|   	g_assert (f != NULL);
#  157|   	g_free (path);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:157:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-diagram.dot", *klass.shortname))), "w")’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:109:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:156:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:156:9: note: in expansion of macro ‘g_assert’
#  155|   	f = fopen (path, "w");
#  156|   	g_assert (f != NULL);
#  157|-> 	g_free (path);
#  158|   
#  159|   	g_fprintf (f, "digraph G {\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:157:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_file_get_path(g_file_get_child(output_location,  g_strdup_printf("%s-diagram.dot", *klass.shortname))), "w")’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:109:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:156:9: note: in expansion of macro ‘g_assert’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/docs/tools/tracker-utils.c:156:9: note: in expansion of macro ‘g_assert’
#  155|   	f = fopen (path, "w");
#  156|   	g_assert (f != NULL);
#  157|-> 	g_free (path);
#  158|   
#  159|   	g_fprintf (f, "digraph G {\n");

Error: CPPCHECK_WARNING: [#def14]
tracker-3.7.3-build/tracker-3.7.3/examples/libtracker-sparql/async-connection.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
tracker-3.7.3-build/tracker-3.7.3/redhat-linux-build/tmp-introspectso9amw17/Tracker-3.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def16]
tracker-3.7.3-build/tracker-3.7.3/redhat-linux-build/tmp-introspectso9amw17/Tracker-3.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: GCC_ANALYZER_WARNING (CWE-688): [#def17]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c: scope_hint: In function ‘statvfs_helper’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c:87:19: warning[-Wanalyzer-null-argument]: use of NULL ‘_path’ where non-null expected
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c:116:26: note: in expansion of macro ‘__statvfs’
/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.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c:37: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c:114:17: note: in expansion of macro ‘g_strdup’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c:116:26: note: in expansion of macro ‘__statvfs’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-file-utils.c:34: included_from: Included from here.
/usr/include/sys/statfs.h:43:12: note: argument 1 of ‘statfs64’ must be non-null
#   85|   
#   86|   #ifdef __USE_LARGEFILE64
#   87|-> #define __statvfs statfs64
#   88|   #else
#   89|   #define __statvfs statfs

Error: GCC_ANALYZER_WARNING (CWE-688): [#def18]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-language.c: scope_hint: In function ‘ensure_language’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-language.c:151:21: warning[-Wanalyzer-null-argument]: use of NULL ‘g_strndup(*<unknown>, (long unsigned int)<unknown>)’ 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.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-language.c:25: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-language.c:149:47: note: in expansion of macro ‘g_strdup’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-language.c: scope_hint: In function ‘ensure_language’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-language.c:23: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  149|   			priv->language_code = g_strdup (code);
#  150|   
#  151|-> 		if (strcmp (code, "en") == 0)
#  152|   			priv->lang_has_english = TRUE;
#  153|   

Error: CPPCHECK_WARNING: [#def19]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-parser-libicu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-131): [#def20]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-parser-libicu.c: scope_hint: In function ‘tracker_parser_normalize’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-parser-libicu.c:885:27: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  883|   
#  884|   	if (!U_SUCCESS (status)) {
#  885|-> 		zOutput = g_memdup2 (input, len);
#  886|   		nOutput = len;
#  887|   	}

Error: GCC_ANALYZER_WARNING (CWE-131): [#def21]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-parser-libicu.c: scope_hint: In function ‘tracker_parser_unaccent’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-parser-libicu.c:913:27: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  911|   
#  912|   	if (!U_SUCCESS (status)) {
#  913|-> 		zOutput = g_memdup2 (input, len);
#  914|   		nOutput = len;
#  915|   	}

Error: CPPCHECK_WARNING: [#def22]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-parser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-term-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-term-utils.c: scope_hint: In function ‘tracker_term_pipe_to_pager’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-term-utils.c:179:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[1], 1)’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-term-utils.c: scope_hint: In function ‘tracker_term_pipe_to_pager’
#  177|   	close (fds[0]);
#  178|   
#  179|-> 	if (dup2(fds[1], STDOUT_FILENO) < 0)
#  180|   	        return FALSE;
#  181|   

Error: CPPCHECK_WARNING: [#def25]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-common/tracker-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def26]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/core/tracker-sparql.c:411:36: warning[-Wmaybe-uninitialized]: ‘old’ may be used uninitialized
#  411 |         sparql->current_state->sql = string;
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/core/tracker-sparql.c: scope_hint: In function ‘translate_Expression’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/core/tracker-sparql.c:7488:37: note: ‘old’ was declared here
# 7488 |         TrackerStringBuilder *str, *old;
#      |                                     ^~~
#  409|   
#  410|   	old = sparql->current_state->sql;
#  411|-> 	sparql->current_state->sql = string;
#  412|   
#  413|   	return old;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-deserializer-json-ld.c: scope_hint: In function ‘forward_state’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-deserializer-json-ld.c:541:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/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.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-cursor.h:26: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-private.h:24: included_from: Included from here.
<command-line>: 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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-deserializer-json-ld.c:144:9: note: in expansion of macro ‘g_assert’
/usr/include/glib-2.0/glib.h:33: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-deserializer-json-ld.c:146:17: note: in expansion of macro ‘g_array_index’
/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/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
tracker-3.7.3-build/tracker-3.7.3/src/libtracker-sparql/tracker-deserializer-json-ld.c:259:9: note: in expansion of macro ‘g_assert’
#  539|   		if (g_strcmp0 (member, "@type") == 0)
#  540|   			deserializer->cur_predicate = g_strdup (TRACKER_PREFIX_RDF "type");
#  541|-> 		else if (member[0] != '@')
#  542|   			deserializer->cur_predicate = tracker_namespace_manager_expand_uri (namespaces, member);
#  543|   		else

Error: CPPCHECK_WARNING: [#def28]
tracker-3.7.3-build/tracker-3.7.3/src/portal/tracker-portal-utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
tracker-3.7.3-build/tracker-3.7.3/src/portal/tracker-portal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
tracker-3.7.3-build/tracker-3.7.3/src/tracker/tracker-endpoint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
tracker-3.7.3-build/tracker-3.7.3/src/tracker/tracker-endpoint.c:432:2: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  430|   	}
#  431|   
#  432|-> 	g_clear_pointer (&txtvers_value, avahi_free);
#  433|   	g_clear_pointer (&protovers_value, avahi_free);
#  434|   	g_clear_pointer (&binding_value, avahi_free);

Error: CPPCHECK_WARNING: [#def32]
tracker-3.7.3-build/tracker-3.7.3/src/tracker/tracker-export.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
tracker-3.7.3-build/tracker-3.7.3/src/tracker/tracker-main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
tracker-3.7.3-build/tracker-3.7.3/src/tracker/tracker-sparql.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
tracker-3.7.3-build/tracker-3.7.3/subprojects/gvdb/gvdb/gvdb-builder.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
tracker-3.7.3-build/tracker-3.7.3/subprojects/gvdb/gvdb/gvdb-reader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-initialization-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def38]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-ontology-change-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-ontology-error-test.c: scope_hint: In function ‘assert_same_output’
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-ontology-error-test.c:123:13: warning[-Wanalyzer-null-argument]: use of NULL ‘output1’ where non-null expected
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-ontology-error-test.c:22: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  121|   	gchar *diff;
#  122|   
#  123|-> 	if (strcmp (output1, output2) == 0)
#  124|   		return;
#  125|   

Error: CPPCHECK_WARNING: [#def40]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-ontology-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-service-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def42]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-service-test.c: scope_hint: In function ‘check_result’
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-service-test.c:136:13: warning[-Wanalyzer-null-argument]: use of NULL ‘results’ where non-null expected
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
/usr/include/glib-2.0/glib/gprintf.h:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-service-test.c:25: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:218:50: note: in definition of macro ‘g_assert_no_error’
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-service-test.c:22: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  134|   	g_assert_no_error (error);
#  135|   
#  136|-> 	if (strcmp (results, test_results->str) != 0) {
#  137|   		/* print result difference */
#  138|   		gchar *quoted_results;

Error: CPPCHECK_WARNING: [#def43]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-sparql-blank-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-sparql-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def45]
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-sparql-test.c: scope_hint: In function ‘check_result’
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-sparql-test.c:498:13: warning[-Wanalyzer-null-argument]: use of NULL ‘results’ where non-null expected
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
/usr/include/glib-2.0/glib/gprintf.h:23: included_from: Included from here.
/usr/include/glib-2.0/glib/gstdio.h:24: included_from: Included from here.
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-sparql-test.c:25: included_from: Included from here.
/usr/include/glib-2.0/glib/gtestutils.h:218:50: note: in definition of macro ‘g_assert_no_error’
tracker-3.7.3-build/tracker-3.7.3/tests/core/tracker-sparql-test.c:22: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  496|   	g_assert_no_error (error);
#  497|   
#  498|-> 	if (strcmp (results, test_results->str) != 0) {
#  499|   		/* print result difference */
#  500|   		gchar *quoted_results;

Error: CPPCHECK_WARNING: [#def46]
tracker-3.7.3-build/tracker-3.7.3/tests/fts/tracker-fts-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
tracker-3.7.3-build/tracker-3.7.3/tests/gvdb/gvdb-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
tracker-3.7.3-build/tracker-3.7.3/tests/libtracker-sparql/tracker-batch-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
tracker-3.7.3-build/tracker-3.7.3/tests/libtracker-sparql/tracker-cursor-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
tracker-3.7.3-build/tracker-3.7.3/tests/libtracker-sparql/tracker-deserialize-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
tracker-3.7.3-build/tracker-3.7.3/tests/libtracker-sparql/tracker-resource-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
tracker-3.7.3-build/tracker-3.7.3/tests/libtracker-sparql/tracker-statement-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def53]
tracker-3.7.3-build/tracker-3.7.3/utils/benchmark/tracker-benchmark.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def54]
tracker-3.7.3-build/tracker-3.7.3/utils/mtp/mtp-dummy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-230.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nametracker-3.7.3-1.fc41
store-results-to/tmp/tmpt1gixoi_/tracker-3.7.3-1.fc41.tar.xz
time-created2024-07-03 18:19:09
time-finished2024-07-03 18:21:26
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpt1gixoi_/tracker-3.7.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpt1gixoi_/tracker-3.7.3-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9