ctags-6.1.0-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c: scope_hint: In function ‘es_obarray_intern’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c:721:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c: scope_hint: In function ‘es_obarray_intern’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c: scope_hint: In function ‘es_obarray_intern’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c: scope_hint: In function ‘es_obarray_intern’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c: scope_hint: In function ‘es_obarray_intern’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c:26: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c:342:24: note: in expansion of macro ‘ES_ERROR_MEMORY’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c: scope_hint: In function ‘es_obarray_intern’
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c:342:24: note: in expansion of macro ‘ES_ERROR_MEMORY’
#  719|       {
#  720|   		s = (EsSingleton*) es_object_new(type);
#  721|-> 		s->quark = strdup(name);
#  722|   		tmp = obarray[hv];
#  723|   		obarray[hv] = s;

Error: CPPCHECK_WARNING (CWE-401): [#def2]
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/es.c:1517: error[memleak]: Memory leak: c.base
# 1515|   	classes [t] = (EsObjectClass *)c;
# 1516|   
# 1517|-> 	return t;
# 1518|   }
# 1519|   

Error: CPPCHECK_WARNING (CWE-562): [#def3]
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/optscript.c:1147: error[returnDanglingLifetime]: Returning pointer to local variable 'attr' that will be invalid when returning.
# 1145|   vm_read_name (OptVM *vm, int c, unsigned int attr)
# 1146|   {
# 1147|-> 	return vm_read_generic (vm, c, name_newS_cb, &attr);
# 1148|   }
# 1149|   

Error: CPPCHECK_WARNING (CWE-562): [#def4]
ctags-6.1.0-build/universal-ctags-6.1.0/dsl/optscript.c:1191: error[returnDanglingLifetime]: Returning pointer to local variable 'data' that will be invalid when returning.
# 1189|   	};
# 1190|   
# 1191|-> 	return vm_read_generic (vm, c, name_or_number_new, &data);
# 1192|   }
# 1193|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
ctags-6.1.0-build/universal-ctags-6.1.0/libreadtags/readtags.c: scope_hint: In function ‘growString’
ctags-6.1.0-build/universal-ctags-6.1.0/libreadtags/readtags.c:277:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*file.name.buffer’
#  275|   	else
#  276|   	{
#  277|-> 		s->buffer = newLine;
#  278|   		s->size = newLength;
#  279|   		result = TagSuccess;

Error: CPPCHECK_WARNING (CWE-562): [#def6]
ctags-6.1.0-build/universal-ctags-6.1.0/main/fname.c:147: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  145|   	}
#  146|   
#  147|-> 	parent->child = ∁
#  148|   	if (next == NULL)
#  149|   		return fsimplify_absz (&comp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
ctags-6.1.0-build/universal-ctags-6.1.0/main/keyword.c: scope_hint: In function ‘addKeyword’
ctags-6.1.0-build/universal-ctags-6.1.0/main/keyword.c:151:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prev’
ctags-6.1.0-build/universal-ctags-6.1.0/main/keyword.c:104:34: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/keyword.c: scope_hint: In function ‘addKeyword’
#  149|   		{
#  150|   			Assert (prev != NULL);
#  151|-> 			prev->next = newEntry (string, language, value);
#  152|   		}
#  153|   	}

Error: COMPILER_WARNING (CWE-477): [#def8]
ctags-6.1.0-build/universal-ctags-6.1.0/main/lxpath.c: scope_hint: In function ‘makeXMLDoc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/lxpath.c:173:17: warning[-Wdeprecated-declarations]: ‘xmlLineNumbersDefault’ is deprecated
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
/usr/include/libxml2/libxml/xpath.h:27: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/lxpath.h:21: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/lxpath_p.h:19: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/lxpath.c:14: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:967:17: note: declared here
#  171|   	{
#  172|   		xmlSetGenericErrorFunc (NULL, suppressWarning);
#  173|-> 		xmlLineNumbersDefault (1);
#  174|   		doc = xmlParseMemory((const char*)data, size);
#  175|   	}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
ctags-6.1.0-build/universal-ctags-6.1.0/main/mio.c: scope_hint: In function ‘file_try_resize’
ctags-6.1.0-build/universal-ctags-6.1.0/main/mio.c:664:13: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/mio.c: scope_hint: In function ‘file_try_resize’
ctags-6.1.0-build/universal-ctags-6.1.0/main/mio.h:30: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/mio.c:37: included_from: Included from here.
/usr/include/stdio.h:873:12: note: argument 1 of ‘fileno’ must be non-null
#  662|   
#  663|   #ifdef MAY_HAVE_FTRUNCATE
#  664|-> 	if (ftruncate(fileno(fp), (off_t)new_size) < 0)
#  665|   		return false;
#  666|   #else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
ctags-6.1.0-build/universal-ctags-6.1.0/main/nestlevel.c: scope_hint: In function ‘nestingLevelsTruncate’
ctags-6.1.0-build/universal-ctags-6.1.0/main/nestlevel.c:96:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#   94|   	nls->n = depth;
#   95|   	nl = nestingLevelsGetCurrent(nls);
#   96|-> 	nl->corkIndex = corkIndex;
#   97|   	return nl;
#   98|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
ctags-6.1.0-build/universal-ctags-6.1.0/main/nestlevel.c: scope_hint: In function ‘nestingLevelsPopFull’
ctags-6.1.0-build/universal-ctags-6.1.0/main/nestlevel.c:108:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  106|   	if (nls->deleteUserData)
#  107|   		nls->deleteUserData (nl, ctxData);
#  108|-> 	nl->corkIndex = CORK_NIL;
#  109|   	nls->n--;
#  110|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
ctags-6.1.0-build/universal-ctags-6.1.0/main/ptag.c: scope_hint: In function ‘isPtagCommonInParsers’
ctags-6.1.0-build/universal-ctags-6.1.0/main/ptag.c:300:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ctags-6.1.0-build/universal-ctags-6.1.0/main/ptag.c: scope_hint: In function ‘isPtagCommonInParsers’
#  298|   {
#  299|   	ptagDesc* pdesc = getPtagDesc (type);
#  300|-> 	return pdesc->flags & PTAGF_COMMON;
#  301|   }
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
ctags-6.1.0-build/universal-ctags-6.1.0/main/ptag.c: scope_hint: In function ‘isPtagParserSpecific’
ctags-6.1.0-build/universal-ctags-6.1.0/main/ptag.c:306:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ctags-6.1.0-build/universal-ctags-6.1.0/main/ptag.c: scope_hint: In function ‘isPtagParserSpecific’
#  304|   {
#  305|   	ptagDesc* pdesc = getPtagDesc (type);
#  306|-> 	return pdesc->flags & PTAGF_PARSER;
#  307|   }
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def14]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:317:9: warning[-Wanalyzer-null-argument]: use of NULL ‘eMalloc(strlen(str) + 1)’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  315|   {
#  316|   	char* result = xMalloc (strlen (str) + 1, char);
#  317|-> 	strcpy (result, str);
#  318|   	return result;
#  319|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘eStrdup’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:317:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc(strlen(str) + 1)’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:56: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  315|   {
#  316|   	char* result = xMalloc (strlen (str) + 1, char);
#  317|-> 	strcpy (result, str);
#  318|   	return result;
#  319|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘eStrndup’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:324:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc(len + 1)’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:323:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:323:24: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  322|   {
#  323|   	char* result = xMalloc (len + 1, char);
#  324|-> 	strncpy (result, str, len);
#  325|   	result [len] = '\0';
#  326|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:354:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’
#  352|   	int i = 0;
#  353|   	do
#  354|-> 		result [i] = (char) tolower ((unsigned char) str [i]);
#  355|   	while (str [i++] != '\0');
#  356|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘newLowerString’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:354:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:351:30: note: in expansion of macro ‘xMalloc’
#  352|   	int i = 0;
#  353|   	do
#  354|-> 		result [i] = (char) tolower ((unsigned char) str [i]);
#  355|   	while (str [i++] != '\0');
#  356|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
#  364|   	int i = 0;
#  365|   	do
#  366|-> 		result [i] = (char) toupper ((unsigned char) str [i]);
#  367|   	while (str [i++] != '\0');
#  368|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc(strlen(str) + 1)’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
#  364|   	int i = 0;
#  365|   	do
#  366|-> 		result [i] = (char) toupper ((unsigned char) str [i]);
#  367|   	while (str [i++] != '\0');
#  368|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘newUpperString’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc(strlen(str) + 1) + (sizetype)i’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
#  364|   	int i = 0;
#  365|   	do
#  366|-> 		result [i] = (char) toupper ((unsigned char) str [i]);
#  367|   	while (str [i++] != '\0');
#  368|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘newUpperString’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:366:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc(strlen(str) + 1)’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:363:30: note: in expansion of macro ‘xMalloc’
#  364|   	int i = 0;
#  365|   	do
#  366|-> 		result [i] = (char) toupper ((unsigned char) str [i]);
#  367|   	while (str [i++] != '\0');
#  368|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:729:9: warning[-Wanalyzer-null-argument]: use of NULL ‘eMalloc((long unsigned int)(len1 + len2 + len3 + 1))’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:727:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:727:24: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  727|   	char *result = xMalloc (len1 + len2 + len3 + 1, char);
#  728|   
#  729|-> 	strcpy (result, s1);
#  730|   	strcpy (result + len1, s2);
#  731|   	strcpy (result + len1 + len2, s3);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘concat’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:729:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc((long unsigned int)(len1 + len2 + len3 + 1))’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:727:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:727:24: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
#  727|   	char *result = xMalloc (len1 + len2 + len3 + 1, char);
#  728|   
#  729|-> 	strcpy (result, s1);
#  730|   	strcpy (result + len1, s2);
#  731|   	strcpy (result + len1 + len2, s3);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:870:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc((long unsigned int)(i * 3) + strlen(fp) + 1)’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘relativeFilename’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘relativeFilename’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.h:23:53: note: in definition of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:869:15: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:869:15: note: in expansion of macro ‘xMalloc’
#  868|   		i += 1;
#  869|   	res = xMalloc (3 * i + strlen (fp + 1) + 1, char);
#  870|-> 	res [0] = '\0';
#  871|   	while (i-- > 0)
#  872|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘relativeFilename’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:870:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc((long unsigned int)(i * 3) + strlen(fp) + 1)’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:316:24: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘relativeFilename’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘relativeFilename’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.h:23:53: note: in definition of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:869:15: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:869:15: note: in expansion of macro ‘xMalloc’
#  868|   		i += 1;
#  869|   	res = xMalloc (3 * i + strlen (fp + 1) + 1, char);
#  870|-> 	res [0] = '\0';
#  871|   	while (i-- > 0)
#  872|   	{

Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:902:9: warning[-Wanalyzer-null-argument]: use of NULL ‘eMalloc(strlen(tmpdir) + 13)’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:901:16: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:901:16: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#  900|   		tmpdir = TMPDIR;
#  901|   	name = xMalloc (strlen (tmpdir) + 1 + strlen (pattern) + 1, char);
#  902|-> 	sprintf (name, "%s%c%s", tmpdir, OUTPUT_PATH_SEPARATOR, pattern);
#  903|   	fd = mkstemp (name);
#  904|   # ifdef WIN32

Error: GCC_ANALYZER_WARNING (CWE-688): [#def28]
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c: scope_hint: In function ‘tempFileFP’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:902:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc(strlen(tmpdir) + 13)’ where non-null expected
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:901:16: note: in expansion of macro ‘xMalloc’
ctags-6.1.0-build/universal-ctags-6.1.0/main/routines.c:901:16: note: in expansion of macro ‘xMalloc’
<built-in>: note: argument 1 of ‘__builtin_sprintf’ must be non-null
#  900|   		tmpdir = TMPDIR;
#  901|   	name = xMalloc (strlen (tmpdir) + 1 + strlen (pattern) + 1, char);
#  902|-> 	sprintf (name, "%s%c%s", tmpdir, OUTPUT_PATH_SEPARATOR, pattern);
#  903|   	fd = mkstemp (name);
#  904|   # ifdef WIN32

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
ctags-6.1.0-build/universal-ctags-6.1.0/main/script.c: scope_hint: In function ‘optscriptInstallMatchResultProcs’
ctags-6.1.0-build/universal-ctags-6.1.0/main/script.c:275:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
#  273|   	{
#  274|   		name [1] = '0' + i;
#  275|-> 		*p = name [1];
#  276|   		EsObject *op_sym = es_symbol_intern (name);
#  277|   		es_symbol_set_data (op_sym, HT_INT_TO_PTR (i));

Error: COMPILER_WARNING (CWE-477): [#def30]
ctags-6.1.0-build/universal-ctags-6.1.0/main/selectors.c: scope_hint: In function ‘xmlParseMIO’
ctags-6.1.0-build/universal-ctags-6.1.0/main/selectors.c:441:9: warning[-Wdeprecated-declarations]: ‘xmlLineNumbersDefault’ is deprecated
/usr/include/libxml2/libxml/tree.h:17: included_from: Included from here.
/usr/include/libxml2/libxml/xpath.h:27: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/lxpath.h:21: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/parse.h:20: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/lregex_p.h:25: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/parse_p.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/selectors.c:17: included_from: Included from here.
/usr/include/libxml2/libxml/parser.h:967:17: note: declared here
#  439|   
#  440|   	xmlSetGenericErrorFunc (NULL, suppressWarning);
#  441|-> 	xmlLineNumbersDefault (1);
#  442|   	return xmlParseMemory((const char *)buf, len);
#  443|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
ctags-6.1.0-build/universal-ctags-6.1.0/main/sort.c: scope_hint: In function ‘externalSortTags’
ctags-6.1.0-build/universal-ctags-6.1.0/main/sort.c:135:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fileno(mio_file_get_fp(tagFile)), 0)’
#  133|   			if (fdsave < 0)
#  134|   				error (FATAL | PERROR, "cannot save stdin fd");
#  135|-> 			if (dup2 (fileno (mio_file_get_fp (tagFile)), fdstdin) < 0)
#  136|   				error (FATAL | PERROR, "cannot redirect stdin");
#  137|   			if (lseek (fdstdin, 0, SEEK_SET) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
ctags-6.1.0-build/universal-ctags-6.1.0/main/sort.c:141:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fdsave, 0)’
#  139|   			ret = system (vStringValue (cmd));
#  140|   			system_errno = errno;
#  141|-> 			if (dup2 (fdsave, fdstdin) < 0)
#  142|   				error (FATAL | PERROR, "cannot restore stdin fd");
#  143|   			close (fdsave);

Error: GCC_ANALYZER_WARNING: [#def33]
ctags-6.1.0-build/universal-ctags-6.1.0/main/sort.c:141:29: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fdsave’
#  139|   			ret = system (vStringValue (cmd));
#  140|   			system_errno = errno;
#  141|-> 			if (dup2 (fdsave, fdstdin) < 0)
#  142|   				error (FATAL | PERROR, "cannot restore stdin fd");
#  143|   			close (fdsave);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
ctags-6.1.0-build/universal-ctags-6.1.0/main/trashbox.c: scope_hint: In function ‘trashBoxFree’
ctags-6.1.0-build/universal-ctags-6.1.0/main/trashbox.c:103:9: warning[-Wanalyzer-jump-through-null]: jump through null pointer
#  101|   
#  102|   	d = trashBoxTakeBack (trash_box, item);
#  103|-> 	d (item);
#  104|   }
#  105|   

Error: COMPILER_WARNING (CWE-563): [#def35]
ctags-6.1.0-build/universal-ctags-6.1.0/main/field.h:22: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/main/entry.h:21: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cpreprocessor.c:19: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cpreprocessor.c: scope_hint: In function ‘skipToEndOfString’
ctags-6.1.0-build/universal-ctags-6.1.0/main/vstring.h:139:10: warning[-Wunused-value]: value computed is not used
#  137 |         (sizeof(c) == sizeof(char) \
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  138 |          ? vStringPutWithLimitImpl((s), (unsigned char) (c), (l)) \
#      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  139 |          : vStringPutWithLimitImpl((s), (c), (l)))
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cpreprocessor.c:1389:25: note: in expansion of macro ‘vStringPutWithLimit’
# 1389 |                         vStringPutWithLimit (Cpp.charOrStringContents, c, 1024);
#      |                         ^~~~~~~~~~~~~~~~~~~
#  137|   	(sizeof(c) == sizeof(char) \
#  138|   	 ? vStringPutWithLimitImpl((s), (unsigned char) (c), (l)) \
#  139|-> 	 : vStringPutWithLimitImpl((s), (c), (l)))
#  140|   
#  141|   CTAGS_INLINE void vStringAccumulate (vString *accumulator, vString *string)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c: scope_hint: In function ‘cxxParserParseIfForWhileSwitchCatchParenthesis’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:1877:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:108:47: note: in definition of macro ‘cxxTokenTypeIsOneOf’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:20: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:1876:32: note: in expansion of macro ‘cxxTokenChainLast’
# 1875|   		// Fake the final semicolon
# 1876|   		CXXToken * t = cxxTokenChainLast(pChain);
# 1877|-> 		t->eType = CXXTokenTypeSemicolon;
# 1878|   		vStringClear(t->pszWord);
# 1879|   		vStringPut(t->pszWord,';');

Error: GCC_ANALYZER_WARNING (CWE-457): [#def37]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c: scope_hint: In function ‘cxxParserTokenChainLooksLikeFunctionParameterList’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:2230:51: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pParamInfo.uAnonymous’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_tag.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:10: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:765:20: note: in expansion of macro ‘cxxTokenTypeIsOneOf’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:388:9: note: in expansion of macro ‘cxxParserCurrentLanguageIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:784:25: note: in expansion of macro ‘cxxParserCurrentLanguageIsCPP’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:993:20: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:601:25: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:603:25: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:606:25: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:2125:20: note: in expansion of macro ‘cxxTokenTypeIsOneOf’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_function.c:2149:36: note: in expansion of macro ‘cxxTokenTypeIs’
# 2228|   					pParamInfo->aTypeStarts[pParamInfo->uCount] = pStart;
# 2229|   					pParamInfo->aTypeEnds[pParamInfo->uCount] = t->pPrev;
# 2230|-> 					pParamInfo->uAnonymous &= ~(0x1u << pParamInfo->uCount);
# 2231|   					if(!pIdentifier)
# 2232|   					{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
ctags-6.1.0-build/universal-ctags-6.1.0/main/parse.h:21: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.h:14: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:9: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c: scope_hint: In function ‘cxxParserHandleLambda’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:256:94: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pTypeName’
ctags-6.1.0-build/universal-ctags-6.1.0/main/vstring.h:28:33: note: in definition of macro ‘vStringValue’
ctags-6.1.0-build/universal-ctags-6.1.0/main/vstring.h:28:33: note: in definition of macro ‘vStringValue’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:256:54: note: in expansion of macro ‘cxxTokenChainFirst’
ctags-6.1.0-build/universal-ctags-6.1.0/main/vstring.h:28:33: note: in definition of macro ‘vStringValue’
ctags-6.1.0-build/universal-ctags-6.1.0/main/vstring.h:28:33: note: in definition of macro ‘vStringValue’
#  254|   			cxxTagSetField(
#  255|   					CXXTagCPPFieldLambdaCaptureList,
#  256|-> 					vStringValue(cxxTokenChainFirst(pCaptureList->pChain)->pszWord),
#  257|   					false
#  258|   				);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def39]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_variable.c: scope_hint: In function ‘cxxParserExtractVariableDeclarations’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_variable.c:170:15: warning[-Wanalyzer-deref-before-check]: check of ‘t’ for NULL after already dereferencing it
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_tag.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_variable.c:10: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_variable.c:146:13: note: in expansion of macro ‘cxxTokenTypeIsOneOf’
#  168|   	// Loop over the whole statement.
#  169|   
#  170|-> 	while(t)
#  171|   	{
#  172|   		// Scan up to a notable token: ()[]{}=,;:{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_tag.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:10: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c: scope_hint: In function ‘cxxParserParseAndCondenseCurrentSubchain’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:127:19: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:226:20: note: in expansion of macro ‘cxxTokenTypeIsOneOf’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:41: note: in definition of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:127:34: note: in expansion of macro ‘cxxTokenChainLast’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:41: note: in definition of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:127:34: note: in expansion of macro ‘cxxTokenChainLast’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:127:19: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser.c:127:19: note: in expansion of macro ‘cxxTokenTypeIs’
#  107|   
#  108|   #define cxxTokenTypeIsOneOf(_pToken,_uTypes) (_pToken->eType & (_uTypes))
#  109|-> #define cxxTokenTypeIs(_pToken,_eType) (_pToken->eType == _eType)
#  110|   #define cxxTokenIsKeyword(_pToken,_eKeyword) \
#  111|   		( \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_tag.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:10: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c: scope_hint: In function ‘cxxParserParseUsingClause’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pFirst’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:74:20: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:41: note: in definition of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:20: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:54:9: note: in expansion of macro ‘cxxTokenChainDestroyLast’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token_chain.h:131:33: note: in definition of macro ‘cxxTokenChainFirst’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:69:37: note: in expansion of macro ‘cxxTokenChainFirst’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:74:20: note: in expansion of macro ‘cxxTokenTypeIs’
#  107|   
#  108|   #define cxxTokenTypeIsOneOf(_pToken,_uTypes) (_pToken->eType & (_uTypes))
#  109|-> #define cxxTokenTypeIs(_pToken,_eType) (_pToken->eType == _eType)
#  110|   #define cxxTokenIsKeyword(_pToken,_eKeyword) \
#  111|   		( \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_tag.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_internal.h:17: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:10: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pParenthesis’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:264:20: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:264:20: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_lambda.c:264:20: note: in expansion of macro ‘cxxTokenTypeIs’
#  107|   
#  108|   #define cxxTokenTypeIsOneOf(_pToken,_uTypes) (_pToken->eType & (_uTypes))
#  109|-> #define cxxTokenTypeIs(_pToken,_eType) (_pToken->eType == _eType)
#  110|   #define cxxTokenIsKeyword(_pToken,_eKeyword) \
#  111|   		( \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:106:20: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token.h:109:41: note: in definition of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:54:9: note: in expansion of macro ‘cxxTokenChainDestroyLast’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_token_chain.h:131:33: note: in definition of macro ‘cxxTokenChainFirst’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:102:32: note: in expansion of macro ‘cxxTokenChainFirst’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:106:20: note: in expansion of macro ‘cxxTokenTypeIs’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/cxx/cxx_parser_using.c:106:20: note: in expansion of macro ‘cxxTokenTypeIs’
#  107|   
#  108|   #define cxxTokenTypeIsOneOf(_pToken,_uTypes) (_pToken->eType & (_uTypes))
#  109|-> #define cxxTokenTypeIs(_pToken,_eType) (_pToken->eType == _eType)
#  110|   #define cxxTokenIsKeyword(_pToken,_eKeyword) \
#  111|   		( \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/diff.c: scope_hint: In function ‘parseHunk’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/diff.c:114:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘next_delim’
#  112|   		return i;
#  113|   	end = next_delim;
#  114|-> 	if (! ( '0' <= *( end - 1 ) && *( end - 1 ) <= '9'))
#  115|   		return i;
#  116|   	for (c = start; c < end; c++)

Error: GCC_ANALYZER_WARNING (CWE-835): [#def45]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/objc.c: scope_hint: In function ‘lex’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/objc.c:308:18: warning[-Wanalyzer-infinite-loop]: infinite loop
#  306|   
#  307|   	/* handling data input here */
#  308|-> 	while (st->cp == NULL || st->cp[0] == '\0')
#  309|   	{
#  310|   		st->cp = readLineFromInputFile ();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c: scope_hint: In function ‘parseWithStrategy’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c:649:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘name’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.h:19: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c:32: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c:1182:9: note: in expansion of macro ‘foreachSubparser’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c: scope_hint: In function ‘parseWithStrategy’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c: scope_hint: In function ‘parseWithStrategy’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c:630:45: note: in expansion of macro ‘isType’
ctags-6.1.0-build/universal-ctags-6.1.0/parsers/tex.c:633:47: note: in expansion of macro ‘isType’
#  647|   			if (missing_parens)
#  648|   			{
#  649|-> 				vStringCat (name->string, token->string);
#  650|   				depth = 0;
#  651|   			}

Error: COMPILER_WARNING (CWE-563): [#def47]
ctags-6.1.0-build/universal-ctags-6.1.0/peg/kotlin.c:3473:22: warning[-Wunused-variable]: unused variable ‘p’
# 3473 |         const size_t p = ctx->cur;
#      |                      ^
# 3471|       pcc_capture_table__resize(ctx->auxil, &chunk->capts, 1);
# 3472|       {
# 3473|->         const size_t p = ctx->cur;
# 3474|           const size_t n = chunk->thunks.len;
# 3475|           {

Error: COMPILER_WARNING (CWE-563): [#def48]
ctags-6.1.0-build/universal-ctags-6.1.0/peg/kotlin.c: scope_hint: In function ‘pcc_evaluate_rule_classParameter’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/kotlin.c:3474:22: warning[-Wunused-variable]: unused variable ‘n’
# 3474 |         const size_t n = chunk->thunks.len;
#      |                      ^
# 3472|       {
# 3473|           const size_t p = ctx->cur;
# 3474|->         const size_t n = chunk->thunks.len;
# 3475|           {
# 3476|               const size_t p = ctx->cur;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:688:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:4732: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:901:49: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:901:49: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift_post.h: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift_pre.h:16: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:28: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:886:41: note: in expansion of macro ‘PCC_REALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:862:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
#  686|           break;
#  687|       }
#  688|->     a->hold = answer->hold;
#  689|       answer->hold = a;
#  690|       answer->type = PCC_LR_ANSWER_CHUNK;

Error: COMPILER_WARNING (CWE-563): [#def50]
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:3878:30: warning[-Wunused-variable]: unused variable ‘p’
# 3878 |                 const size_t p = ctx->cur;
#      |                              ^
# 3876|               if (!pcc_apply_rule(ctx, pcc_evaluate_rule___, &chunk->thunks, NULL)) goto L0001;
# 3877|               {
# 3878|->                 const size_t p = ctx->cur;
# 3879|                   const size_t n = chunk->thunks.len;
# 3880|                   {

Error: COMPILER_WARNING (CWE-563): [#def51]
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c: scope_hint: In function ‘pcc_evaluate_rule_ConstMap’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/thrift.c:3879:30: warning[-Wunused-variable]: unused variable ‘n’
# 3879 |                 const size_t n = chunk->thunks.len;
#      |                              ^
# 3877|               {
# 3878|                   const size_t p = ctx->cur;
# 3879|->                 const size_t n = chunk->thunks.len;
# 3880|                   {
# 3881|                       const size_t p = ctx->cur;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:687:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:3074: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:900:49: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:900:49: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink_post.h: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink_pre.h:15: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:28: included_from: Included from here.
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:885:41: note: in expansion of macro ‘PCC_REALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c:861:50: note: in expansion of macro ‘PCC_MALLOC’
ctags-6.1.0-build/universal-ctags-6.1.0/peg/varlink.c: scope_hint: In function ‘pcc_lr_answer__set_chunk’
#  685|           break;
#  686|       }
#  687|->     a->hold = answer->hold;
#  688|       answer->hold = a;
#  689|       answer->type = PCC_LR_ANSWER_CHUNK;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-185.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namectags-6.1.0-1.fc42
store-results-to/tmp/tmpw2yytpxp/ctags-6.1.0-1.fc42.tar.xz
time-created2024-11-12 23:31:03
time-finished2024-11-12 23:34:30
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpw2yytpxp/ctags-6.1.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpw2yytpxp/ctags-6.1.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9