ctags-6.2.0-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
universal-ctags-6.2.0/dsl/es.c:321:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
#  319|   
#  320|   	if (out == NULL)
#  321|-> 		out = mio_new_fp (stderr, NULL);
#  322|   
#  323|   	return out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
universal-ctags-6.2.0/dsl/es.c:321:23: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
universal-ctags-6.2.0/dsl/es.c:335:1: enter_function: entry to ‘es_object_new’
universal-ctags-6.2.0/dsl/es.c:342:24: call_function: inlined call to ‘es_error_intern’ from ‘es_object_new’
#  319|   
#  320|   	if (out == NULL)
#  321|-> 		out = mio_new_fp (stderr, NULL);
#  322|   
#  323|   	return out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
universal-ctags-6.2.0/dsl/es.c:321:23: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(35)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
#  319|   
#  320|   	if (out == NULL)
#  321|-> 		out = mio_new_fp (stderr, NULL);
#  322|   
#  323|   	return out;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def4]
universal-ctags-6.2.0/dsl/es.c:321:23: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/dsl/es.c:3293:1: enter_function: entry to ‘es_match’
universal-ctags-6.2.0/dsl/es.c:3298:9: acquire_resource: ‘va_start’ called here
universal-ctags-6.2.0/dsl/es.c:3299:18: call_function: calling ‘es_vmatch’ from ‘es_match’
#  319|   
#  320|   	if (out == NULL)
#  321|-> 		out = mio_new_fp (stderr, NULL);
#  322|   
#  323|   	return out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
universal-ctags-6.2.0/dsl/es.c:347:17: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
universal-ctags-6.2.0/dsl/es.c:335:1: enter_function: entry to ‘es_object_new’
universal-ctags-6.2.0/dsl/es.c:342:24: call_function: inlined call to ‘es_error_intern’ from ‘es_object_new’
#  345|   
#  346|   	if (es_debug)
#  347|-> 		mio_printf(mio_stderr(), ";; new{%s}: 0x%p\n",
#  348|   				   (classes[type])->name,
#  349|   				   r);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def6]
universal-ctags-6.2.0/dsl/es.c:347:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/dsl/es.c:3293:1: enter_function: entry to ‘es_match’
universal-ctags-6.2.0/dsl/es.c:3298:9: acquire_resource: ‘va_start’ called here
universal-ctags-6.2.0/dsl/es.c:3299:18: call_function: calling ‘es_vmatch’ from ‘es_match’
#  345|   
#  346|   	if (es_debug)
#  347|-> 		mio_printf(mio_stderr(), ";; new{%s}: 0x%p\n",
#  348|   				   (classes[type])->name,
#  349|   				   r);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
universal-ctags-6.2.0/dsl/es.c:721:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:335:1: enter_function: entry to ‘es_object_new’
universal-ctags-6.2.0/dsl/es.c:342:24: call_function: inlined call to ‘es_error_intern’ from ‘es_object_new’
#  719|       {
#  720|   		s = (EsSingleton*) es_object_new(type);
#  721|-> 		s->quark = strdup(name);
#  722|   		tmp = obarray[hv];
#  723|   		obarray[hv] = s;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
universal-ctags-6.2.0/dsl/es.c:721:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
universal-ctags-6.2.0/dsl/es.c:3293:1: enter_function: entry to ‘es_match’
universal-ctags-6.2.0/dsl/es.c:3299:18: call_function: calling ‘es_vmatch’ from ‘es_match’
#  719|       {
#  720|   		s = (EsSingleton*) es_object_new(type);
#  721|-> 		s->quark = strdup(name);
#  722|   		tmp = obarray[hv];
#  723|   		obarray[hv] = s;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
universal-ctags-6.2.0/dsl/es.c:1019:26: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
universal-ctags-6.2.0/dsl/es.c:1015:1: enter_function: entry to ‘es_string_equal’
universal-ctags-6.2.0/dsl/es.c:1019:26: call_function: calling ‘es_string_get’ from ‘es_string_equal’
universal-ctags-6.2.0/dsl/es.c:1019:26: return_function: returning to ‘es_string_equal’ from ‘es_string_get’
universal-ctags-6.2.0/dsl/es.c:1019:26: danger: argument 1 (‘es_string_get(self)’) NULL where non-null expected
# 1017|   	if (es_string_p(other))
# 1018|       {
# 1019|-> 		return (!strcmp(es_string_get(self), es_string_get(other)));
# 1020|       }
# 1021|   	else

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
universal-ctags-6.2.0/dsl/es.c:2099:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2097|   
# 2098|   	t = token_new(seed);
# 2099|-> 	return get_sequence(fp, t, is_string_end, 1);
# 2100|   }
# 2101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
universal-ctags-6.2.0/dsl/es.c:2099:16: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(seed)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2097|   
# 2098|   	t = token_new(seed);
# 2099|-> 	return get_sequence(fp, t, is_string_end, 1);
# 2100|   }
# 2101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
universal-ctags-6.2.0/dsl/es.c:2109:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2107|   
# 2108|   	t = token_new(seed);
# 2109|-> 	return get_sequence(fp, t, is_fence_end, 1);
# 2110|   }
# 2111|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
universal-ctags-6.2.0/dsl/es.c:2109:16: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(seed)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2107|   
# 2108|   	t = token_new(seed);
# 2109|-> 	return get_sequence(fp, t, is_fence_end, 1);
# 2110|   }
# 2111|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
universal-ctags-6.2.0/dsl/es.c:2119:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2117|   
# 2118|   	t = token_new(seed);
# 2119|-> 	return get_sequence(fp, t, is_separator, 0);
# 2120|   }
# 2121|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
universal-ctags-6.2.0/dsl/es.c:2119:16: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(seed)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2117|   
# 2118|   	t = token_new(seed);
# 2119|-> 	return get_sequence(fp, t, is_separator, 0);
# 2120|   }
# 2121|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
universal-ctags-6.2.0/dsl/es.c:2142:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2140|   	while (1)
# 2141|   	{
# 2142|-> 		c = mio_getc(fp);
# 2143|   		if (EOF == c)
# 2144|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
universal-ctags-6.2.0/dsl/es.c:2142:21: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(35)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2140|   	while (1)
# 2141|   	{
# 2142|-> 		c = mio_getc(fp);
# 2143|   		if (EOF == c)
# 2144|   		{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
universal-ctags-6.2.0/dsl/es.c:2146:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2144|   		{
# 2145|   			/* TODO: Propagate the error to upper layer. */
# 2146|-> 			mio_printf(mio_stderr(),
# 2147|   					   ";; unexpected termination during parsing regex pattern\n");
# 2148|   			token_free (t);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
universal-ctags-6.2.0/dsl/es.c:2146:25: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(35)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2144|   		{
# 2145|   			/* TODO: Propagate the error to upper layer. */
# 2146|-> 			mio_printf(mio_stderr(),
# 2147|   					   ";; unexpected termination during parsing regex pattern\n");
# 2148|   			token_free (t);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
universal-ctags-6.2.0/dsl/es.c:2174:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2172|   		else if (c0 == '/')
# 2173|   		{
# 2174|-> 			c = mio_getc(fp);
# 2175|   			if (c == 'i')
# 2176|   				/* Refill the placeholder. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
universal-ctags-6.2.0/dsl/es.c:2174:29: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(35)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2172|   		else if (c0 == '/')
# 2173|   		{
# 2174|-> 			c = mio_getc(fp);
# 2175|   			if (c == 'i')
# 2176|   				/* Refill the placeholder. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
universal-ctags-6.2.0/dsl/es.c:2179:33: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2177|   				inject_regex_flag (t, 'i');
# 2178|   			else if (c != EOF)
# 2179|-> 				mio_ungetc (fp, c);
# 2180|   			break;
# 2181|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
universal-ctags-6.2.0/dsl/es.c:2179:33: warning[-Wanalyzer-malloc-leak]: leak of ‘token_new(35)’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2177|   				inject_regex_flag (t, 'i');
# 2178|   			else if (c != EOF)
# 2179|-> 				mio_ungetc (fp, c);
# 2180|   			break;
# 2181|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
universal-ctags-6.2.0/dsl/es.c:2197:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘seed’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2195|   
# 2196|   
# 2197|-> 	buf = seed->buffer;
# 2198|   	mio_printf(stream, "%s", prefix);
# 2199|   	for (i = 0; i < ( seed->filled - 1 ); i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
universal-ctags-6.2.0/dsl/es.c:2356:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
universal-ctags-6.2.0/dsl/es.c:3306:1: enter_function: entry to ‘es_smatch’
universal-ctags-6.2.0/dsl/es.c:3313:22: call_function: calling ‘es_read_from_string’ from ‘es_smatch’
# 2354|   
# 2355|   
# 2356|-> 	d = t->allocated - t->filled;
# 2357|   	if (d < 1)
# 2358|       {

Error: CPPCHECK_WARNING (CWE-476): [#def27]
universal-ctags-6.2.0/dsl/es.c:2708: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: r
# 2706|   
# 2707|   	r = calloc(1, sizeof(EsChain));
# 2708|-> 	r->object = object;
# 2709|   	return r;
# 2710|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
universal-ctags-6.2.0/dsl/formatter.c:77:21: warning[-Wanalyzer-malloc-leak]: leak of ‘code’
universal-ctags-6.2.0/dsl/formatter.c:67:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/dsl/formatter.c:70:16: branch_false: ...to here
universal-ctags-6.2.0/dsl/formatter.c:70:16: acquire_memory: allocated here
universal-ctags-6.2.0/dsl/formatter.c:71:12: branch_false: following ‘false’ branch (when ‘code’ is non-NULL)...
universal-ctags-6.2.0/dsl/formatter.c:77:21: branch_false: ...to here
universal-ctags-6.2.0/dsl/formatter.c:77:21: danger: ‘code’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   75|   	}
#   76|   
#   77|-> 	code->dsl = dsl_compile (DSL_FORMATTER, exp);
#   78|   	if (code->dsl == NULL)
#   79|   	{

Error: CPPCHECK_WARNING (CWE-562): [#def29]
universal-ctags-6.2.0/dsl/optscript.c:1152: error[returnDanglingLifetime]: Returning pointer to local variable 'attr' that will be invalid when returning.
# 1150|   vm_read_name (OptVM *vm, int c, unsigned int attr)
# 1151|   {
# 1152|-> 	return vm_read_generic (vm, c, name_newS_cb, &attr);
# 1153|   }
# 1154|   

Error: CPPCHECK_WARNING (CWE-562): [#def30]
universal-ctags-6.2.0/dsl/optscript.c:1196: error[returnDanglingLifetime]: Returning pointer to local variable 'data' that will be invalid when returning.
# 1194|   	};
# 1195|   
# 1196|-> 	return vm_read_generic (vm, c, name_or_number_new, &data);
# 1197|   }
# 1198|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
universal-ctags-6.2.0/dsl/optscript.c:1732:28: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
universal-ctags-6.2.0/dsl/optscript.c:2522:1: enter_function: entry to ‘op__help’
universal-ctags-6.2.0/dsl/optscript.c:2524:9: call_function: calling ‘vm_help’ from ‘op__help’
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1730|   		const char *name = callable_get_name (obj);
# 1731|   
# 1732|-> 		size_t l = strlen (name);
# 1733|   		if (l > maxlen)
# 1734|   			maxlen = l;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
universal-ctags-6.2.0/dsl/qualifier.c:66:21: warning[-Wanalyzer-malloc-leak]: leak of ‘code’
universal-ctags-6.2.0/dsl/qualifier.c:56:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/dsl/qualifier.c:59:16: branch_false: ...to here
universal-ctags-6.2.0/dsl/qualifier.c:59:16: acquire_memory: allocated here
universal-ctags-6.2.0/dsl/qualifier.c:60:12: branch_false: following ‘false’ branch (when ‘code’ is non-NULL)...
universal-ctags-6.2.0/dsl/qualifier.c:66:21: branch_false: ...to here
universal-ctags-6.2.0/dsl/qualifier.c:66:21: danger: ‘code’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   64|   	}
#   65|   
#   66|-> 	code->dsl = dsl_compile (DSL_QUALIFIER, exp);
#   67|   	if (code->dsl == NULL)
#   68|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
universal-ctags-6.2.0/dsl/sorter.c:347:21: warning[-Wanalyzer-malloc-leak]: leak of ‘code’
universal-ctags-6.2.0/dsl/sorter.c:337:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/dsl/sorter.c:340:16: branch_false: ...to here
universal-ctags-6.2.0/dsl/sorter.c:340:16: acquire_memory: allocated here
universal-ctags-6.2.0/dsl/sorter.c:341:12: branch_false: following ‘false’ branch (when ‘code’ is non-NULL)...
universal-ctags-6.2.0/dsl/sorter.c:347:21: branch_false: ...to here
universal-ctags-6.2.0/dsl/sorter.c:347:21: danger: ‘code’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  345|   	}
#  346|   
#  347|-> 	code->dsl = dsl_compile (DSL_SORTER, exp);
#  348|   	if (code->dsl == NULL)
#  349|   	{

Error: GCC_ANALYZER_WARNING (CWE-404): [#def34]
universal-ctags-6.2.0/extra-cmds/readtags-stub.c:47:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/extra-cmds/readtags-stub.c:64:13: enter_function: entry to ‘error’
universal-ctags-6.2.0/extra-cmds/readtags-stub.c:70:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/extra-cmds/readtags-stub.c:73:9: branch_false: ...to here
universal-ctags-6.2.0/extra-cmds/readtags-stub.c:73:9: acquire_resource: ‘va_start’ called here
universal-ctags-6.2.0/extra-cmds/readtags-stub.c:74:22: call_function: calling ‘stderrDefaultErrorPrinter’ from ‘error’
#   45|   				       va_list ap, void *data CTAGS_ATTR_UNUSED)
#   46|   {
#   47|-> 	fprintf (stderr, "%s: %s", getExecutableName (),
#   48|   		 selected (selection, WARNING) ? "Warning: " :
#   49|   		 selected (selection, NOTICE) ? "Notice: " : "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
universal-ctags-6.2.0/extra-cmds/utiltest.c:212:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("a")’
universal-ctags-6.2.0/extra-cmds/utiltest.c:211:35: acquire_memory: allocated here
universal-ctags-6.2.0/extra-cmds/utiltest.c:212:9: danger: ‘strdup("a")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  210|   
#  211|   	hashTablePutItem (htable, strdup("a"), "A");
#  212|-> 	TEST_CHECK (hashTableUpdateItem (htable,  "a", "B") == true);
#  213|   	TEST_CHECK (hashTableUpdateItem (htable,  "b", "B") == false);
#  214|   	TEST_CHECK (strcmp (hashTableGetItem (htable, "a"), "B") == 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
universal-ctags-6.2.0/extra-cmds/utiltest.c:216:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("x")’
universal-ctags-6.2.0/extra-cmds/utiltest.c:205:13: enter_function: entry to ‘test_htable_update’
universal-ctags-6.2.0/extra-cmds/utiltest.c:215:9: call_function: calling ‘acutest_check_’ from ‘test_htable_update’
universal-ctags-6.2.0/extra-cmds/utiltest.c:215:9: return_function: returning to ‘test_htable_update’ from ‘acutest_check_’
universal-ctags-6.2.0/extra-cmds/utiltest.c:216:9: acquire_memory: allocated here
universal-ctags-6.2.0/extra-cmds/utiltest.c:216:9: danger: ‘strdup("x")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  214|   	TEST_CHECK (strcmp (hashTableGetItem (htable, "a"), "B") == 0);
#  215|   	TEST_CHECK (hashTableUpdateOrPutItem (htable,  "a", "C") == true);
#  216|-> 	TEST_CHECK (hashTableUpdateOrPutItem (htable,  strdup("x"), "X") == false);
#  217|   	TEST_CHECK (strcmp (hashTableGetItem (htable, "x"), "X") == 0);
#  218|   	hashTableDelete(htable);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
universal-ctags-6.2.0/extra-cmds/utiltest.c:229:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&keyBuf)’
universal-ctags-6.2.0/extra-cmds/utiltest.c:229:21: branch_true: following ‘true’ branch (when ‘i != 1000’)...
universal-ctags-6.2.0/extra-cmds/utiltest.c:231:17: branch_true: ...to here
universal-ctags-6.2.0/extra-cmds/utiltest.c:232:59: acquire_memory: allocated here
universal-ctags-6.2.0/extra-cmds/utiltest.c:229:31: danger: ‘strdup(&keyBuf)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  227|   	htable = hashTableNew (3, hashCstrhash, hashCstreq, eFree, NULL);
#  228|   
#  229|-> 	for (i = 0; i < 1000; ++i)
#  230|   	{
#  231|   		snprintf(keyBuf, sizeof(keyBuf), "str_%d", i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
universal-ctags-6.2.0/extra-cmds/utiltest.c:246:19: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
universal-ctags-6.2.0/extra-cmds/utiltest.c:245:21: acquire_memory: allocated here
universal-ctags-6.2.0/extra-cmds/utiltest.c:246:19: danger: ‘tmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  244|   
#  245|   	char *tmp = strdup (str);
#  246|-> 	symbol1 = intern (tmp);
#  247|   	free (tmp);
#  248|   	symbol2 = intern (symbol0);

Error: CPPCHECK_WARNING (CWE-758): [#def39]
universal-ctags-6.2.0/gnulib/malloc/dynarray_emplace_enlarge.c:59: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#   57|   
#   58|     size_t new_size;
#   59|->   if (INT_MULTIPLY_WRAPV (new_allocated, element_size, &new_size))
#   60|       return false;
#   61|     void *new_array;

Error: CPPCHECK_WARNING (CWE-758): [#def40]
universal-ctags-6.2.0/gnulib/malloc/dynarray_resize.c:45: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#   43|   
#   44|     size_t new_size_bytes;
#   45|->   if (INT_MULTIPLY_WRAPV (size, element_size, &new_size_bytes))
#   46|       {
#   47|         /* Overflow.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
universal-ctags-6.2.0/libreadtags/readtags.c:287:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*file.name.buffer’
universal-ctags-6.2.0/libreadtags/readtags.c:1231:18: enter_function: entry to ‘findNextFull’
universal-ctags-6.2.0/libreadtags/readtags.c:1239:26: call_function: calling ‘tagsNext’ from ‘findNextFull’
#  285|   	else
#  286|   	{
#  287|-> 		s->buffer = newLine;
#  288|   		s->size = newLength;
#  289|   		result = TagSuccess;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def42]
universal-ctags-6.2.0/main/colprint.c:51:50: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/main/colprint.c:74:23: enter_function: entry to ‘colprintTableNew’
universal-ctags-6.2.0/main/colprint.c:86:21: call_function: calling ‘colprintHeaderColumnNew’ from ‘colprintTableNew’
universal-ctags-6.2.0/main/colprint.c:86:21: return_function: returning to ‘colprintTableNew’ from ‘colprintHeaderColumnNew’
universal-ctags-6.2.0/main/colprint.c:89:9: acquire_resource: ‘va_start’ called here
universal-ctags-6.2.0/main/colprint.c:93:20: branch_true: following ‘true’ branch (when ‘tmp’ is non-NULL)...
universal-ctags-6.2.0/main/colprint.c:95:37: branch_true: ...to here
universal-ctags-6.2.0/main/colprint.c:95:37: call_function: calling ‘colprintHeaderColumnNew’ from ‘colprintTableNew’
#   49|   {
#   50|   	int offset = 2;
#   51|-> 	struct colprintHeaderColumn *headerCol = xCalloc (1, struct colprintHeaderColumn);
#   52|   
#   53|   	if (strstr(spec, "L:") == spec)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def43]
universal-ctags-6.2.0/main/error.c:64:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/main/error.c:63:9: acquire_resource: ‘va_start’ called here
universal-ctags-6.2.0/main/error.c:64:22: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   62|   
#   63|   	va_start (ap, format);
#   64|-> 	shouldExit = (* errorPrinter) (selection, format, ap, errorPrinterData);
#   65|   	va_end (ap);
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
universal-ctags-6.2.0/main/fmt.c:167:15: warning[-Wanalyzer-null-argument]: use of NULL ‘fullName’ where non-null expected
universal-ctags-6.2.0/main/fmt.c:265:20: enter_function: entry to ‘fmtNew’
universal-ctags-6.2.0/main/fmt.c:277:21: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/fmt.c:279:20: branch_true: ...to here
universal-ctags-6.2.0/main/fmt.c:279:20: branch_false: following ‘false’ branch (when ‘found_percent == 0’)...
universal-ctags-6.2.0/main/fmt.c:362:28: branch_false: ...to here
universal-ctags-6.2.0/main/fmt.c:362:28: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/fmt.c:277:40: branch_true: ...to here
universal-ctags-6.2.0/main/fmt.c:277:21: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/fmt.c:279:20: branch_true: ...to here
universal-ctags-6.2.0/main/fmt.c:282:28: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/fmt.c:293:36: branch_false: ...to here
universal-ctags-6.2.0/main/fmt.c:293:36: branch_false: following ‘false’ branch (when ‘literal’ is NULL)...
universal-ctags-6.2.0/main/fmt.c:299:37: branch_false: ...to here
universal-ctags-6.2.0/main/fmt.c:332:36: branch_false: following ‘false’ branch (when ‘width’ is NULL)...
universal-ctags-6.2.0/main/fmt.c:341:37: branch_false: ...to here
universal-ctags-6.2.0/main/fmt.c:341:36: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/fmt.c:355:48: branch_false: ...to here
universal-ctags-6.2.0/main/fmt.c:355:48: call_function: calling ‘queueTagField’ from ‘fmtNew’
#argument 1 of ‘__builtin_strchr’ must be non-null
#  165|   	langType language;
#  166|   
#  167|-> 	tmp = strchr (fullName, '.');
#  168|   	if (tmp)
#  169|   	{

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
universal-ctags-6.2.0/main/keyword.c:151:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prev’
universal-ctags-6.2.0/main/keyword.c:300:13: enter_function: entry to ‘addDialectalKeywords’
universal-ctags-6.2.0/main/keyword.c:311:28: branch_true: following ‘true’ branch (when ‘i < nMap’)...
universal-ctags-6.2.0/main/keyword.c:313:38: branch_true: ...to here
universal-ctags-6.2.0/main/keyword.c:313:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
universal-ctags-6.2.0/main/keyword.c:311:38: branch_false: ...to here
universal-ctags-6.2.0/main/keyword.c:311:28: branch_true: following ‘true’ branch (when ‘i < nMap’)...
universal-ctags-6.2.0/main/keyword.c:313:38: branch_true: ...to here
universal-ctags-6.2.0/main/keyword.c:321:28: branch_true: following ‘true’ branch (when ‘i < nDkeyword’)...
universal-ctags-6.2.0/main/keyword.c:323:62: branch_true: ...to here
universal-ctags-6.2.0/main/keyword.c:324:20: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/keyword.c:325:59: branch_true: ...to here
universal-ctags-6.2.0/main/keyword.c:325:25: call_function: calling ‘addKeyword’ from ‘addDialectalKeywords’
#  149|   		{
#  150|   			Assert (prev != NULL);
#  151|-> 			prev->next = newEntry (string, language, value);
#  152|   		}
#  153|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
universal-ctags-6.2.0/main/main.c:101:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirName)’
universal-ctags-6.2.0/main/main.c:276:13: enter_function: entry to ‘createTagsFromFileInput’
universal-ctags-6.2.0/main/main.c:283:24: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/main.c:285:55: branch_false: ...to here
universal-ctags-6.2.0/main/main.c:285:35: call_function: calling ‘createTagsForEntry’ from ‘createTagsFromFileInput’
#   99|   	{
#  100|   		struct dirent *entry;
#  101|-> 		while ((entry = readdir (dir)) != NULL)
#  102|   		{
#  103|   			if (strcmp (entry->d_name, ".") != 0  &&

Error: GCC_ANALYZER_WARNING (CWE-688): [#def48]
universal-ctags-6.2.0/main/mio.c:608:13: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
universal-ctags-6.2.0/main/mio.c:601:12: enter_function: entry to ‘file_try_resize’
universal-ctags-6.2.0/main/mio.c:605:20: call_function: inlined call to ‘mio_file_get_fp’ from ‘file_try_resize’
universal-ctags-6.2.0/main/mio.c:608:13: branch_false: ...to here
universal-ctags-6.2.0/main/mio.c:608:13: danger: argument 1 (‘fp’) NULL where non-null expected
#  606|   
#  607|   #ifdef MAY_HAVE_FTRUNCATE
#  608|-> 	if (ftruncate(fileno(fp), (off_t)new_size) < 0)
#  609|   		return false;
#  610|   #else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
universal-ctags-6.2.0/main/nestlevel.c:96:9: 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): [#def50]
universal-ctags-6.2.0/main/nestlevel.c:108:9: 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-775): [#def51]
universal-ctags-6.2.0/main/options.c:991:36: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fileName, "r")’
universal-ctags-6.2.0/main/options.c:3572:13: enter_function: entry to ‘parseFileOptions’
universal-ctags-6.2.0/main/options.c:3576:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3583:34: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3583:34: acquire_resource: opened here
universal-ctags-6.2.0/main/options.c:3584:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3588:50: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3588:50: call_function: calling ‘cArgNewFromLineFile’ from ‘parseFileOptions’
#  989|   extern cookedArgs* cArgNewFromLineFile (FILE* const fp)
#  990|   {
#  991|-> 	cookedArgs* const result = xMalloc (1, cookedArgs);
#  992|   	memset (result, 0, sizeof (cookedArgs));
#  993|   	result->args = argNewFromLineFile (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
universal-ctags-6.2.0/main/options.c:991:36: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fileName, "r")’
universal-ctags-6.2.0/main/options.c:3572:13: enter_function: entry to ‘parseFileOptions’
universal-ctags-6.2.0/main/options.c:3576:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3583:34: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3583:34: acquire_memory: allocated here
universal-ctags-6.2.0/main/options.c:3584:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3588:50: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3588:50: call_function: calling ‘cArgNewFromLineFile’ from ‘parseFileOptions’
#  989|   extern cookedArgs* cArgNewFromLineFile (FILE* const fp)
#  990|   {
#  991|-> 	cookedArgs* const result = xMalloc (1, cookedArgs);
#  992|   	memset (result, 0, sizeof (cookedArgs));
#  993|   	result->args = argNewFromLineFile (fp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
universal-ctags-6.2.0/main/options.c:993:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fileName, "r")’
universal-ctags-6.2.0/main/options.c:3572:13: enter_function: entry to ‘parseFileOptions’
universal-ctags-6.2.0/main/options.c:3576:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3583:34: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3583:34: acquire_resource: opened here
universal-ctags-6.2.0/main/options.c:3584:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3588:50: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3588:50: call_function: calling ‘cArgNewFromLineFile’ from ‘parseFileOptions’
#  991|   	cookedArgs* const result = xMalloc (1, cookedArgs);
#  992|   	memset (result, 0, sizeof (cookedArgs));
#  993|-> 	result->args = argNewFromLineFile (fp);
#  994|   	cArgRead (result);
#  995|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
universal-ctags-6.2.0/main/options.c:993:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fileName, "r")’
universal-ctags-6.2.0/main/options.c:3572:13: enter_function: entry to ‘parseFileOptions’
universal-ctags-6.2.0/main/options.c:3576:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3583:34: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3583:34: acquire_memory: allocated here
universal-ctags-6.2.0/main/options.c:3584:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/options.c:3588:50: branch_false: ...to here
universal-ctags-6.2.0/main/options.c:3588:50: call_function: calling ‘cArgNewFromLineFile’ from ‘parseFileOptions’
#  991|   	cookedArgs* const result = xMalloc (1, cookedArgs);
#  992|   	memset (result, 0, sizeof (cookedArgs));
#  993|-> 	result->args = argNewFromLineFile (fp);
#  994|   	cArgRead (result);
#  995|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
universal-ctags-6.2.0/main/parse.c:4653:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmp’
universal-ctags-6.2.0/main/parse.c:4646:12: branch_true: following ‘true’ branch (when ‘tmp’ is NULL)...
universal-ctags-6.2.0/main/parse.c:4647:17: branch_true: ...to here
universal-ctags-6.2.0/main/parse.c:4649:12: branch_false: following ‘false’ branch (when ‘parameter != tmp’)...
universal-ctags-6.2.0/main/parse.c:4652:9: branch_false: ...to here
universal-ctags-6.2.0/main/parse.c:4653:14: danger: dereference of NULL ‘tmp’
# 4651|   
# 4652|   	src = tmp + 1;
# 4653|-> 	if (!*src)
# 4654|   		error (FATAL, "the name of dist table is empty in table extending: %s", parameter);
# 4655|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
universal-ctags-6.2.0/main/ptag.c:300:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
universal-ctags-6.2.0/main/ptag.c:297:13: enter_function: entry to ‘isPtagCommonInParsers’
universal-ctags-6.2.0/main/ptag.c:299:27: call_function: inlined call to ‘getPtagDesc’ from ‘isPtagCommonInParsers’
universal-ctags-6.2.0/main/ptag.c:300:16: branch_true: ...to here
universal-ctags-6.2.0/main/ptag.c:300:16: danger: dereference of NULL ‘<unknown>’
#  298|   {
#  299|   	ptagDesc* pdesc = getPtagDesc (type);
#  300|-> 	return pdesc->flags & PTAGF_COMMON;
#  301|   }
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
universal-ctags-6.2.0/main/ptag.c:306:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
universal-ctags-6.2.0/main/ptag.c:303:13: enter_function: entry to ‘isPtagParserSpecific’
universal-ctags-6.2.0/main/ptag.c:305:27: call_function: inlined call to ‘getPtagDesc’ from ‘isPtagParserSpecific’
universal-ctags-6.2.0/main/ptag.c:306:16: branch_true: ...to here
universal-ctags-6.2.0/main/ptag.c:306:16: danger: dereference of NULL ‘<unknown>’
#  304|   {
#  305|   	ptagDesc* pdesc = getPtagDesc (type);
#  306|-> 	return pdesc->flags & PTAGF_PARSER;
#  307|   }
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
universal-ctags-6.2.0/main/read.c:892:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fileName,  openMode)’
universal-ctags-6.2.0/main/read.c:888:15: acquire_resource: opened here
universal-ctags-6.2.0/main/read.c:889:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/read.c:892:16: branch_false: ...to here
universal-ctags-6.2.0/main/read.c:892:16: danger: ‘fopen(fileName,  openMode)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  890|   		return NULL;
#  891|   
#  892|-> 	data = eMalloc (size);
#  893|   	if (fread (data, 1, size, src) != size)
#  894|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
universal-ctags-6.2.0/main/read.c:892:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fileName,  openMode)’
universal-ctags-6.2.0/main/read.c:888:15: acquire_memory: allocated here
universal-ctags-6.2.0/main/read.c:889:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/read.c:892:16: branch_false: ...to here
universal-ctags-6.2.0/main/read.c:892:16: danger: ‘fopen(fileName,  openMode)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  890|   		return NULL;
#  891|   
#  892|-> 	data = eMalloc (size);
#  893|   	if (fread (data, 1, size, src) != size)
#  894|   	{

Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
universal-ctags-6.2.0/main/read.c:895:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fileName,  openMode)’
universal-ctags-6.2.0/main/read.c:888:15: acquire_resource: opened here
universal-ctags-6.2.0/main/read.c:889:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/read.c:892:16: branch_false: ...to here
universal-ctags-6.2.0/main/read.c:893:12: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/read.c:895:17: branch_true: ...to here
universal-ctags-6.2.0/main/read.c:895:17: danger: ‘fopen(fileName,  openMode)’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  893|   	if (fread (data, 1, size, src) != size)
#  894|   	{
#  895|-> 		eFree (data);
#  896|   		fclose (src);
#  897|   		if (memStreamRequired)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
universal-ctags-6.2.0/main/read.c:895:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fileName,  openMode)’
universal-ctags-6.2.0/main/read.c:888:15: acquire_memory: allocated here
universal-ctags-6.2.0/main/read.c:889:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/read.c:892:16: branch_false: ...to here
universal-ctags-6.2.0/main/read.c:893:12: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/read.c:895:17: branch_true: ...to here
universal-ctags-6.2.0/main/read.c:895:17: danger: ‘fopen(fileName,  openMode)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  893|   	if (fread (data, 1, size, src) != size)
#  894|   	{
#  895|-> 		eFree (data);
#  896|   		fclose (src);
#  897|   		if (memStreamRequired)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
universal-ctags-6.2.0/main/routines.c:223:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
universal-ctags-6.2.0/main/routines.c:660:14: enter_function: entry to ‘baseFilenameSansExtensionNew’
universal-ctags-6.2.0/main/routines.c:669:12: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/routines.c:671:32: call_function: calling ‘eStrndup’ from ‘baseFilenameSansExtensionNew’
#  221|   
#  222|   	if (buffer == NULL && size != 0)
#  223|-> 		error (FATAL, "out of memory");
#  224|   
#  225|   	return buffer;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
universal-ctags-6.2.0/main/routines.c:223:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
universal-ctags-6.2.0/main/routines.c:848:14: enter_function: entry to ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:855:18: call_function: calling ‘absoluteFilename’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:855:18: return_function: returning to ‘relativeFilename’ from ‘absoluteFilename’
universal-ctags-6.2.0/main/routines.c:858:16: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/routines.c:849:1: branch_true: ...to here
universal-ctags-6.2.0/main/routines.c:858:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:864:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:866:17: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:868:18: branch_false: following ‘false’ branch...
 branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:873:22: call_function: inlined call to ‘strSeparator’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:873:16: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:875:15: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:875:15: call_function: calling ‘eMalloc’ from ‘relativeFilename’
#  221|   
#  222|   	if (buffer == NULL && size != 0)
#  223|-> 		error (FATAL, "out of memory");
#  224|   
#  225|   	return buffer;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def64]
universal-ctags-6.2.0/main/routines.c:317:9: warning[-Wanalyzer-null-argument]: use of NULL ‘eMalloc(strlen(str) + 1)’ where non-null expected
universal-ctags-6.2.0/main/routines.c:442:20: enter_function: entry to ‘eStat’
universal-ctags-6.2.0/main/routines.c:449:29: call_function: calling ‘eStrdup’ from ‘eStat’
#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): [#def65]
universal-ctags-6.2.0/main/routines.c:317:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc(strlen(str) + 1)’ where non-null expected
universal-ctags-6.2.0/main/routines.c:442:20: enter_function: entry to ‘eStat’
universal-ctags-6.2.0/main/routines.c:449:29: call_function: calling ‘eStrdup’ from ‘eStat’
#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): [#def66]
universal-ctags-6.2.0/main/routines.c:735:9: warning[-Wanalyzer-null-argument]: use of NULL ‘eMalloc((long unsigned int)(len1 + len2 + len3 + 1))’ where non-null expected
universal-ctags-6.2.0/main/routines.c:730:14: enter_function: entry to ‘concat’
universal-ctags-6.2.0/main/routines.c:733:24: call_function: calling ‘eMalloc’ from ‘concat’
universal-ctags-6.2.0/main/routines.c:733:24: return_function: returning to ‘concat’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:735:9: danger: argument 1 (‘eMalloc((long unsigned int)(len1 + len2 + len3 + 1))’) NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  733|   	char *result = xMalloc (len1 + len2 + len3 + 1, char);
#  734|   
#  735|-> 	strcpy (result, s1);
#  736|   	strcpy (result + len1, s2);
#  737|   	strcpy (result + len1 + len2, s3);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
universal-ctags-6.2.0/main/routines.c:735:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc((long unsigned int)(len1 + len2 + len3 + 1))’ where non-null expected
universal-ctags-6.2.0/main/routines.c:730:14: enter_function: entry to ‘concat’
universal-ctags-6.2.0/main/routines.c:733:24: call_function: calling ‘eMalloc’ from ‘concat’
universal-ctags-6.2.0/main/routines.c:733:24: return_function: returning to ‘concat’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:735:9: danger: argument 1 (‘eMalloc((long unsigned int)(len1 + len2 + len3 + 1))’) from [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  733|   	char *result = xMalloc (len1 + len2 + len3 + 1, char);
#  734|   
#  735|-> 	strcpy (result, s1);
#  736|   	strcpy (result + len1, s2);
#  737|   	strcpy (result + len1 + len2, s3);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
universal-ctags-6.2.0/main/routines.c:876:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘eMalloc((long unsigned int)(i * 3) + strlen(fp) + 1)’
universal-ctags-6.2.0/main/routines.c:848:14: enter_function: entry to ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:855:18: call_function: calling ‘absoluteFilename’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:855:18: return_function: returning to ‘relativeFilename’ from ‘absoluteFilename’
universal-ctags-6.2.0/main/routines.c:858:16: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/routines.c:849:1: branch_true: ...to here
universal-ctags-6.2.0/main/routines.c:858:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:864:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:866:17: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:868:18: branch_false: following ‘false’ branch...
 branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:873:22: call_function: inlined call to ‘strSeparator’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:873:16: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:875:15: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:875:15: call_function: calling ‘eMalloc’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:875:15: return_function: returning to ‘relativeFilename’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:876:9: danger: dereference of NULL ‘eMalloc((long unsigned int)(i * 3) + strlen(fp) + 1)’
#  874|   		i += 1;
#  875|   	res = xMalloc (3 * i + strlen (fp + 1) + 1, char);
#  876|-> 	res [0] = '\0';
#  877|   	while (i-- > 0)
#  878|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
universal-ctags-6.2.0/main/routines.c:876:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘eMalloc((long unsigned int)(i * 3) + strlen(fp) + 1)’
universal-ctags-6.2.0/main/routines.c:848:14: enter_function: entry to ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:855:18: call_function: calling ‘absoluteFilename’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:855:18: return_function: returning to ‘relativeFilename’ from ‘absoluteFilename’
universal-ctags-6.2.0/main/routines.c:858:16: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/routines.c:849:1: branch_true: ...to here
universal-ctags-6.2.0/main/routines.c:858:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:864:20: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:866:17: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:868:18: branch_false: following ‘false’ branch...
 branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:873:22: call_function: inlined call to ‘strSeparator’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:873:16: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:875:15: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:875:15: call_function: calling ‘eMalloc’ from ‘relativeFilename’
universal-ctags-6.2.0/main/routines.c:875:15: return_function: returning to ‘relativeFilename’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:876:9: danger: ‘eMalloc((long unsigned int)(i * 3) + strlen(fp) + 1)’ could be NULL: unchecked value from [(35)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/34)
#  874|   		i += 1;
#  875|   	res = xMalloc (3 * i + strlen (fp + 1) + 1, char);
#  876|-> 	res [0] = '\0';
#  877|   	while (i-- > 0)
#  878|   	{

Error: GCC_ANALYZER_WARNING (CWE-688): [#def70]
universal-ctags-6.2.0/main/routines.c:908:9: warning[-Wanalyzer-null-argument]: use of NULL ‘eMalloc(strlen(tmpdir) + 13)’ where non-null expected
universal-ctags-6.2.0/main/routines.c:890:14: enter_function: entry to ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:907:16: call_function: calling ‘eMalloc’ from ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:907:16: return_function: returning to ‘tempFileFP’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:908:9: danger: argument 1 (‘eMalloc(strlen(tmpdir) + 13)’) NULL where non-null expected
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  906|   		tmpdir = TMPDIR;
#  907|   	name = xMalloc (strlen (tmpdir) + 1 + strlen (pattern) + 1, char);
#  908|-> 	sprintf (name, "%s%c%s", tmpdir, OUTPUT_PATH_SEPARATOR, pattern);
#  909|   	fd = mkstemp (name);
#  910|   # ifdef _WIN32

Error: GCC_ANALYZER_WARNING (CWE-688): [#def71]
universal-ctags-6.2.0/main/routines.c:908:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘eMalloc(strlen(tmpdir) + 13)’ where non-null expected
universal-ctags-6.2.0/main/routines.c:890:14: enter_function: entry to ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:902:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/main/routines.c:903:26: branch_false: ...to here
universal-ctags-6.2.0/main/routines.c:907:16: call_function: calling ‘eMalloc’ from ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:907:16: return_function: returning to ‘tempFileFP’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:908:9: danger: argument 1 (‘eMalloc(strlen(tmpdir) + 13)’) from [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5) could be NULL where non-null expected
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  906|   		tmpdir = TMPDIR;
#  907|   	name = xMalloc (strlen (tmpdir) + 1 + strlen (pattern) + 1, char);
#  908|-> 	sprintf (name, "%s%c%s", tmpdir, OUTPUT_PATH_SEPARATOR, pattern);
#  909|   	fd = mkstemp (name);
#  910|   # ifdef _WIN32

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
universal-ctags-6.2.0/main/routines.c:909:14: warning[-Wanalyzer-malloc-leak]: leak of ‘eMalloc(strlen(tmpdir) + 13)’
universal-ctags-6.2.0/main/routines.c:890:14: enter_function: entry to ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:902:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
universal-ctags-6.2.0/main/routines.c:907:16: call_function: calling ‘eMalloc’ from ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:907:16: return_function: returning to ‘tempFileFP’ from ‘eMalloc’
universal-ctags-6.2.0/main/routines.c:909:14: danger: ‘eMalloc(strlen(tmpdir) + 13)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/5)
#  907|   	name = xMalloc (strlen (tmpdir) + 1 + strlen (pattern) + 1, char);
#  908|   	sprintf (name, "%s%c%s", tmpdir, OUTPUT_PATH_SEPARATOR, pattern);
#  909|-> 	fd = mkstemp (name);
#  910|   # ifdef _WIN32
#  911|   	if (fd == -1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
universal-ctags-6.2.0/main/routines.c:954:16: warning[-Wanalyzer-malloc-leak]: leak of ‘tempFileFP(mode,  pName)’
universal-ctags-6.2.0/main/routines.c:951:13: enter_function: entry to ‘tempFile’
universal-ctags-6.2.0/main/routines.c:953:20: call_function: calling ‘tempFileFP’ from ‘tempFile’
universal-ctags-6.2.0/main/routines.c:953:20: return_function: returning to ‘tempFile’ from ‘tempFileFP’
universal-ctags-6.2.0/main/routines.c:954:16: danger: ‘tempFileFP(mode,  pName)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  952|   {
#  953|   	FILE *fp = tempFileFP (mode, pName);
#  954|-> 	return mio_new_fp (fp, fclose);
#  955|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
universal-ctags-6.2.0/main/script.c:318:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
universal-ctags-6.2.0/main/script.c:315:25: branch_true: following ‘true’ branch (when ‘i != 10’)...
universal-ctags-6.2.0/main/script.c:317:28: branch_true: ...to here
universal-ctags-6.2.0/main/script.c:318:17: danger: dereference of NULL ‘p’
#  316|   	{
#  317|   		name [1] = '0' + i;
#  318|-> 		*p = name [1];
#  319|   		EsObject *op_sym = es_symbol_intern (name);
#  320|   		es_symbol_set_data (op_sym, HT_INT_TO_PTR (i));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
universal-ctags-6.2.0/main/sort.c:135:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fileno(mio_file_get_fp(tagFile)), 0)’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:135:29: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:135:28: danger: ‘dup2(fileno(mio_file_get_fp(tagFile)), 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  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): [#def76]
universal-ctags-6.2.0/main/sort.c:135:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:135:29: danger: ‘fdsave’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def77]
universal-ctags-6.2.0/main/sort.c:136:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:135:28: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/sort.c:136:33: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:136:33: danger: ‘fdsave’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  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)
#  138|   				error (FATAL | PERROR, "cannot rewind tag file");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
universal-ctags-6.2.0/main/sort.c:138:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:137:28: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/sort.c:138:33: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:138:33: danger: ‘fdsave’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  136|   				error (FATAL | PERROR, "cannot redirect stdin");
#  137|   			if (lseek (fdstdin, 0, SEEK_SET) != 0)
#  138|-> 				error (FATAL | PERROR, "cannot rewind tag file");
#  139|   			ret = system (vStringValue (cmd));
#  140|   			system_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
universal-ctags-6.2.0/main/sort.c:139:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:139:31: danger: ‘fdsave’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  137|   			if (lseek (fdstdin, 0, SEEK_SET) != 0)
#  138|   				error (FATAL | PERROR, "cannot rewind tag file");
#  139|-> 			ret = system (vStringValue (cmd));
#  140|   			system_errno = errno;
#  141|   			if (dup2 (fdsave, fdstdin) < 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
universal-ctags-6.2.0/main/sort.c:141:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fdsave, 0)’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:141:29: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:141:28: danger: ‘dup2(fdsave, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  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: [#def81]
universal-ctags-6.2.0/main/sort.c:141:29: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_true: following ‘true’ branch (when ‘fdsave < 0’)...
universal-ctags-6.2.0/main/sort.c:134:33: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:141:29: danger: ‘fdsave’ could be invalid: unchecked value from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  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-775): [#def82]
universal-ctags-6.2.0/main/sort.c:142:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:141:28: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/main/sort.c:142:33: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:142:33: danger: ‘fdsave’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  140|   			system_errno = errno;
#  141|   			if (dup2 (fdsave, fdstdin) < 0)
#  142|-> 				error (FATAL | PERROR, "cannot restore stdin fd");
#  143|   			close (fdsave);
#  144|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
universal-ctags-6.2.0/main/sort.c:143:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fdsave’
universal-ctags-6.2.0/main/sort.c:127:20: branch_true: following ‘true’ branch (when ‘toStdout != 0’)...
universal-ctags-6.2.0/main/sort.c:132:34: branch_true: ...to here
universal-ctags-6.2.0/main/sort.c:132:34: acquire_resource: opened here
universal-ctags-6.2.0/main/sort.c:133:28: branch_false: following ‘false’ branch (when ‘fdsave >= 0’)...
universal-ctags-6.2.0/main/sort.c:135:29: branch_false: ...to here
universal-ctags-6.2.0/main/sort.c:143:25: danger: ‘fdsave’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  141|   			if (dup2 (fdsave, fdstdin) < 0)
#  142|   				error (FATAL | PERROR, "cannot restore stdin fd");
#  143|-> 			close (fdsave);
#  144|   		}
#  145|   		else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
universal-ctags-6.2.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: GCC_ANALYZER_WARNING (CWE-476): [#def85]
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:133:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:193:6: enter_function: entry to ‘cxxParserParseAndCondenseSubchainsUpToOneOf’
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:202:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
 call_function: calling ‘cxxParserParseAndCondenseSubchainsUpToOneOf’ from ‘cxxParserParseAndCondenseSubchainsUpToOneOf’
#  131|   		(!bRet) ||
#  132|   		// Mismatched terminator (i.e EOF was accepted and encountered)
#  133|-> 		(!cxxTokenTypeIs(cxxTokenChainLast(g_cxx.pTokenChain),eTermType))
#  134|   	)
#  135|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1651:88: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1569:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1575:12: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1575:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1586:20: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1588:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1595:40: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1600:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1623:39: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1626:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1632:23: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser.c:1651:88: danger: dereference of NULL ‘t’
# 1649|   			{
# 1650|   				CXXToken * t = cxxTokenChainLast(g_cxx.pTokenChain);
# 1651|-> 				cxxParserSetEndLineForTagInCorkQueue (iCorkQueueIndex, t->iLineNumber);
# 1652|   				if (iCorkQueueIndexFQ != CORK_NIL)
# 1653|   					cxxParserSetEndLineForTagInCorkQueue (iCorkQueueIndexFQ, t->iLineNumber);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def87]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_function.c:2239:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pParamInfo.uAnonymous’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_function.c:1840:5: enter_function: entry to ‘cxxParserExtractFunctionSignatureBeforeOpeningBracket’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_function.c:1870:13: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_function.c:1870:13: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_function.c:1870:13: call_function: calling ‘cxxParserLookForFunctionSignature’ from ‘cxxParserExtractFunctionSignatureBeforeOpeningBracket’
# 2237|   					pParamInfo->aTypeStarts[pParamInfo->uCount] = pStart;
# 2238|   					pParamInfo->aTypeEnds[pParamInfo->uCount] = t->pPrev;
# 2239|-> 					pParamInfo->uAnonymous &= ~(0x1u << pParamInfo->uCount);
# 2240|   					if(!pIdentifier)
# 2241|   					{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:256:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pTypeName’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:175:40: branch_true: following ‘true’ branch (when ‘pParenthesis’ is non-NULL)...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:175:20: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:233:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:235:17: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:241:19: branch_false: following ‘false’ branch (when ‘pTypeStart’ is NULL)...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:246:19: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:246:19: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:256:41: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:256:41: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:256:41: danger: dereference of NULL ‘<unknown>’
#  254|   			cxxTagSetField(
#  255|   					CXXTagCPPFieldLambdaCaptureList,
#  256|-> 					vStringValue(cxxTokenChainFirst(pCaptureList->pChain)->pszWord),
#  257|   					false
#  258|   				);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:264:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pParenthesis’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:175:40: branch_false: following ‘false’ branch (when ‘pParenthesis’ is NULL)...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:195:11: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:195:11: branch_false: following ‘false’ branch (when ‘pAfterParenthesis’ is NULL)...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:231:13: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:233:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:235:17: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:241:19: branch_false: following ‘false’ branch (when ‘pTypeStart’ is NULL)...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:246:19: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:246:19: branch_false: following ‘false’ branch (when ‘pCaptureList’ is NULL)...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:264:20: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_lambda.c:264:20: danger: dereference of NULL ‘pParenthesis’
#  262|   
#  263|   		vString * pszSignature = NULL;
#  264|-> 		if(cxxTokenTypeIs(pParenthesis,CXXTokenTypeParenthesisChain))
#  265|   			pszSignature = cxxTokenChainJoin(pParenthesis->pChain,NULL,0);
#  266|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:83:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pFirst’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:73:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:82:29: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:82:29: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:83:13: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:83:13: danger: dereference of NULL ‘pFirst’
#   81|   
#   82|   	CXXToken * pFirst = cxxTokenChainFirst(g_cxx.pTokenChain);
#   83|-> 	if (cxxTokenTypeIsOneOf(pFirst, CXXTokenTypeSemicolon | CXXTokenTypeEOF))
#   84|   	{
#   85|   		CXXToken * pMod = cxxTokenCreateAnonymousIdentifier(CXXTagCPPKindMODULE, "__gmod_");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:190:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pFirst’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:180:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:189:28: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:189:28: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:190:13: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_module.c:190:13: danger: dereference of NULL ‘pFirst’
#  188|   
#  189|   	CXXToken *pFirst = cxxTokenChainFirst(g_cxx.pTokenChain);
#  190|-> 	if (cxxTokenTypeIs(pFirst, CXXTokenTypeSmallerThanSign))
#  191|   	{
#  192|   		if (pFirst->pNext == NULL

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:77:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pFirst’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:42:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:51:13: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:51:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:57:9: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:59:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:65:34: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:70:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:72:37: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:72:37: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:73:37: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:77:20: danger: dereference of NULL ‘pFirst’
#   75|   			cxxParserCurrentLanguageIsCPP();
#   76|   
#   77|-> 		if(cxxTokenTypeIs(pFirst,CXXTokenTypeIdentifier))
#   78|   		{
#   79|   			CXX_DEBUG_PRINT(

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:109:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:42:11: branch_true: following ‘true’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:51:13: branch_true: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:51:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:57:9: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:59:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:65:34: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:70:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:105:32: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:105:32: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:109:20: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_using.c:109:20: danger: dereference of NULL ‘t’
#  107|   		bool bUsingNamespace = false;
#  108|   
#  109|-> 		if(cxxTokenTypeIs(t,CXXTokenTypeKeyword))
#  110|   		{
#  111|   			if(t->eKeyword == CXXKeywordNAMESPACE)

Error: GCC_ANALYZER_WARNING (CWE-465): [#def94]
universal-ctags-6.2.0/parsers/cxx/cxx_parser_variable.c:175:15: warning[-Wanalyzer-deref-before-check]: check of ‘t’ for NULL after already dereferencing it
universal-ctags-6.2.0/parsers/cxx/cxx_parser_variable.c:114:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_variable.c:143:20: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_variable.c:149:11: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/cxx/cxx_parser_variable.c:160:11: branch_false: ...to here
universal-ctags-6.2.0/parsers/cxx/cxx_parser_variable.c:175:15: danger: pointer ‘t’ is checked for NULL here but it was already dereferenced at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  173|   	// Loop over the whole statement.
#  174|   
#  175|-> 	while(t)
#  176|   	{
#  177|   		// Scan up to a notable token: ()[]{}=,;:{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
universal-ctags-6.2.0/parsers/diff.c:114:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘next_delim’
universal-ctags-6.2.0/parsers/diff.c:106:12: branch_false: following ‘false’ branch...
universal-ctags-6.2.0/parsers/diff.c:109:22: branch_false: ...to here
universal-ctags-6.2.0/parsers/diff.c:110:12: branch_false: following ‘false’ branch (when ‘cp < next_delim’)...
universal-ctags-6.2.0/parsers/diff.c:114:24: branch_false: ...to here
universal-ctags-6.2.0/parsers/diff.c:114:24: danger: 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): [#def96]
universal-ctags-6.2.0/parsers/markdown.c:276:16: warning[-Wanalyzer-infinite-loop]: infinite loop
universal-ctags-6.2.0/parsers/markdown.c:276:16: danger: infinite loop here
universal-ctags-6.2.0/parsers/markdown.c:276:16: branch_true: when ‘pos < lineLen’: always following ‘true’ branch...
universal-ctags-6.2.0/parsers/markdown.c:278:17: branch_true: ...to here
#  274|   	int lineLen, hashtagState state)
#  275|   {
#  276|-> 	while (pos < lineLen)
#  277|   	{
#  278|   		switch (state)

Error: GCC_ANALYZER_WARNING (CWE-835): [#def97]
universal-ctags-6.2.0/parsers/objc.c:323:16: warning[-Wanalyzer-infinite-loop]: infinite loop
universal-ctags-6.2.0/parsers/objc.c:1378:13: enter_function: entry to ‘findObjcTags’
#  321|   
#  322|   	/* handling data input here */
#  323|-> 	while (st->cp == NULL || st->cp[0] == '\0')
#  324|   	{
#  325|   		updateLine (st);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def98]
universal-ctags-6.2.0/parsers/typescript.c:347:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:1892:13: enter_function: entry to ‘parseNamespaceBody’
universal-ctags-6.2.0/parsers/typescript.c:1899:26: call_function: calling ‘tryInSequence’ from ‘parseNamespaceBody’
#  345|   	token->type = type;
#  346|   	token->keyword = KEYWORD_NONE;
#  347|-> 	token->lineNumber   = uwiGetLineNumber ();
#  348|   	token->filePosition = uwiGetFilePosition ();
#  349|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def99]
universal-ctags-6.2.0/parsers/typescript.c:348:31: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:1892:13: enter_function: entry to ‘parseNamespaceBody’
universal-ctags-6.2.0/parsers/typescript.c:1899:26: call_function: calling ‘tryInSequence’ from ‘parseNamespaceBody’
#  346|   	token->keyword = KEYWORD_NONE;
#  347|   	token->lineNumber   = uwiGetLineNumber ();
#  348|-> 	token->filePosition = uwiGetFilePosition ();
#  349|   }
#  350|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def100]
universal-ctags-6.2.0/parsers/typescript.c:713:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:1892:13: enter_function: entry to ‘parseNamespaceBody’
universal-ctags-6.2.0/parsers/typescript.c:1899:26: call_function: calling ‘tryInSequence’ from ‘parseNamespaceBody’
#  711|   	memset(&currentState, 0, sizeof (currentState));
#  712|   
#  713|-> 	uwiPushMarker();
#  714|   
#  715|   	c = uwiGetC ();

Error: GCC_ANALYZER_WARNING (CWE-404): [#def101]
universal-ctags-6.2.0/parsers/typescript.c:715:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:1892:13: enter_function: entry to ‘parseNamespaceBody’
universal-ctags-6.2.0/parsers/typescript.c:1899:26: call_function: calling ‘tryInSequence’ from ‘parseNamespaceBody’
#  713|   	uwiPushMarker();
#  714|   
#  715|-> 	c = uwiGetC ();
#  716|   	if (skipWhite && whiteChar (c))
#  717|   	{

Error: GCC_ANALYZER_WARNING (CWE-404): [#def102]
universal-ctags-6.2.0/parsers/typescript.c:726:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:932:13: enter_function: entry to ‘parseInterface’
universal-ctags-6.2.0/parsers/typescript.c:952:9: call_function: calling ‘parseInterfaceBody’ from ‘parseInterface’
#  724|   	while (result.status == PARSER_NEEDS_MORE_INPUT)
#  725|   	{
#  726|-> 		c = uwiGetC ();
#  727|   		parser (c, token, &currentState, &result);
#  728|   	}

Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
universal-ctags-6.2.0/parsers/typescript.c:730:45: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:1892:13: enter_function: entry to ‘parseNamespaceBody’
universal-ctags-6.2.0/parsers/typescript.c:1899:26: call_function: calling ‘tryInSequence’ from ‘parseNamespaceBody’
#  728|   	}
#  729|   
#  730|-> 	if (result.status == PARSER_FAILED) uwiPopMarker (-1, true);
#  731|   	else if (result.unusedChars > 0) uwiPopMarker (result.unusedChars, true);
#  732|   	else uwiDropMaker ();

Error: GCC_ANALYZER_WARNING (CWE-404): [#def104]
universal-ctags-6.2.0/parsers/typescript.c:732:14: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
universal-ctags-6.2.0/parsers/typescript.c:1892:13: enter_function: entry to ‘parseNamespaceBody’
universal-ctags-6.2.0/parsers/typescript.c:1899:26: call_function: calling ‘tryInSequence’ from ‘parseNamespaceBody’
#  730|   	if (result.status == PARSER_FAILED) uwiPopMarker (-1, true);
#  731|   	else if (result.unusedChars > 0) uwiPopMarker (result.unusedChars, true);
#  732|-> 	else uwiDropMaker ();
#  733|   
#  734|   	return result.status == PARSER_FINISHED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
universal-ctags-6.2.0/parsers/verilog.c:994:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
universal-ctags-6.2.0/parsers/verilog.c:2012:12: enter_function: entry to ‘findTag’
universal-ctags-6.2.0/parsers/verilog.c:2087:29: call_function: calling ‘dropEndContext’ from ‘findTag’
#  992|   			dropContext ();
#  993|   			c = skipBlockName (token ,c);
#  994|-> 			while (currentContext->classScope)
#  995|   			{
#  996|   				verbose ("Dropping local context %s\n", vStringValue (currentContext->name));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
universal-ctags-6.2.0/peg/elm.c:465:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/elm_post.h:175:13: enter_function: entry to ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:182:16: call_function: calling ‘pelm_parse’ from ‘findElmTags’
#  463|   
#  464|   static void pcc_capture_const_table__term(pcc_auxil_t auxil, pcc_capture_const_table_t *table) {
#  465|->     PCC_FREE(auxil, (void *)table->buf);
#  466|   }
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
universal-ctags-6.2.0/peg/elm.c:495:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/elm_post.h:175:13: enter_function: entry to ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:182:16: call_function: calling ‘pelm_parse’ from ‘findElmTags’
#  493|       switch (thunk->type) {
#  494|       case PCC_THUNK_LEAF:
#  495|->         PCC_FREE(auxil, thunk->data.leaf.capt0.string);
#  496|           pcc_capture_const_table__term(auxil, &thunk->data.leaf.capts);
#  497|           pcc_value_refer_table__term(auxil, &thunk->data.leaf.values);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
universal-ctags-6.2.0/peg/elm.c:514:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(88)’
universal-ctags-6.2.0/peg/elm.c:6997:5: enter_function: entry to ‘pelm_parse’
universal-ctags-6.2.0/peg/elm.c:6998:9: call_function: calling ‘pcc_apply_rule’ from ‘pelm_parse’
#  512|   
#  513|   static void pcc_thunk_array__add(pcc_auxil_t auxil, pcc_thunk_array_t *array, pcc_thunk_t *thunk) {
#  514|->     if (array->max <= array->len) {
#  515|           const size_t n = array->len + 1;
#  516|           size_t m = array->max;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
universal-ctags-6.2.0/peg/elm.c:655:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/elm_post.h:175:13: enter_function: entry to ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:182:16: call_function: calling ‘pelm_parse’ from ‘findElmTags’
#  653|   
#  654|   static void pcc_rule_set__term(pcc_auxil_t auxil, pcc_rule_set_t *set) {
#  655|->     PCC_FREE(auxil, set->buf);
#  656|   }
#  657|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
universal-ctags-6.2.0/peg/elm.c:890:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/elm_post.h:175:13: enter_function: entry to ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:182:16: call_function: calling ‘pelm_parse’ from ‘findElmTags’
#  888|   
#  889|   static void pcc_lr_entry__destroy(pcc_auxil_t auxil, pcc_lr_entry_t *lr) {
#  890|->     PCC_FREE(auxil, lr);
#  891|   }
#  892|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
universal-ctags-6.2.0/peg/elm.c:906:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/elm_post.h:175:13: enter_function: entry to ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:180:32: call_function: inlined call to ‘pelm_create’ from ‘findElmTags’
universal-ctags-6.2.0/peg/elm_post.h:182:16: call_function: calling ‘pelm_parse’ from ‘findElmTags’
#  904|           while (m < n && m != 0) m <<= 1;
#  905|           if (m == 0) m = n;
#  906|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  907|           stack->max = m;
#  908|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
universal-ctags-6.2.0/peg/elm.c:906:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(24)’
universal-ctags-6.2.0/peg/elm.c:6997:5: enter_function: entry to ‘pelm_parse’
universal-ctags-6.2.0/peg/elm.c:6998:9: call_function: calling ‘pcc_apply_rule’ from ‘pelm_parse’
#  904|           while (m < n && m != 0) m <<= 1;
#  905|           if (m == 0) m = n;
#  906|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  907|           stack->max = m;
#  908|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
universal-ctags-6.2.0/peg/elm.c:1748:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_thunk__create_leaf(*ctx.auxil, & pcc_action_file_0, 0, 0)’
universal-ctags-6.2.0/peg/elm.c:6997:5: enter_function: entry to ‘pelm_parse’
universal-ctags-6.2.0/peg/elm.c:6998:9: call_function: calling ‘pcc_apply_rule’ from ‘pelm_parse’
# 1746|           MARK_VAR_AS_USED
# 1747|           const size_t n = chunk->thunks.len;
# 1748|->         if (!pcc_apply_rule(ctx, pcc_evaluate_rule_TLSS, &chunk->thunks, NULL)) goto L0001;
# 1749|           goto L0002;
# 1750|       L0001:;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
universal-ctags-6.2.0/peg/thrift.c:451:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/thrift_post.h:85:13: enter_function: entry to ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:94:17: call_function: calling ‘pthrift_parse’ from ‘findThriftTags’
#  449|   
#  450|   static void pcc_capture_const_table__term(pcc_auxil_t auxil, pcc_capture_const_table_t *table) {
#  451|->     PCC_FREE(auxil, (void *)table->buf);
#  452|   }
#  453|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
universal-ctags-6.2.0/peg/thrift.c:481:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/thrift_post.h:85:13: enter_function: entry to ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:94:17: call_function: calling ‘pthrift_parse’ from ‘findThriftTags’
#  479|       switch (thunk->type) {
#  480|       case PCC_THUNK_LEAF:
#  481|->         PCC_FREE(auxil, thunk->data.leaf.capt0.string);
#  482|           pcc_capture_const_table__term(auxil, &thunk->data.leaf.capts);
#  483|           pcc_value_refer_table__term(auxil, &thunk->data.leaf.values);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
universal-ctags-6.2.0/peg/thrift.c:500:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(88)’
universal-ctags-6.2.0/peg/thrift.c:4831:5: enter_function: entry to ‘pthrift_parse’
universal-ctags-6.2.0/peg/thrift.c:4832:9: call_function: calling ‘pcc_apply_rule’ from ‘pthrift_parse’
#  498|   
#  499|   static void pcc_thunk_array__add(pcc_auxil_t auxil, pcc_thunk_array_t *array, pcc_thunk_t *thunk) {
#  500|->     if (array->max <= array->len) {
#  501|           const size_t n = array->len + 1;
#  502|           size_t m = array->max;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
universal-ctags-6.2.0/peg/thrift.c:641:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/thrift_post.h:85:13: enter_function: entry to ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:94:17: call_function: calling ‘pthrift_parse’ from ‘findThriftTags’
#  639|   
#  640|   static void pcc_rule_set__term(pcc_auxil_t auxil, pcc_rule_set_t *set) {
#  641|->     PCC_FREE(auxil, set->buf);
#  642|   }
#  643|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
universal-ctags-6.2.0/peg/thrift.c:876:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/thrift_post.h:85:13: enter_function: entry to ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:94:17: call_function: calling ‘pthrift_parse’ from ‘findThriftTags’
#  874|   
#  875|   static void pcc_lr_entry__destroy(pcc_auxil_t auxil, pcc_lr_entry_t *lr) {
#  876|->     PCC_FREE(auxil, lr);
#  877|   }
#  878|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
universal-ctags-6.2.0/peg/thrift.c:892:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/thrift_post.h:85:13: enter_function: entry to ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:92:35: call_function: inlined call to ‘pthrift_create’ from ‘findThriftTags’
universal-ctags-6.2.0/peg/thrift_post.h:94:17: call_function: calling ‘pthrift_parse’ from ‘findThriftTags’
#  890|           while (m < n && m != 0) m <<= 1;
#  891|           if (m == 0) m = n;
#  892|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  893|           stack->max = m;
#  894|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
universal-ctags-6.2.0/peg/thrift.c:892:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(24)’
universal-ctags-6.2.0/peg/thrift.c:4831:5: enter_function: entry to ‘pthrift_parse’
universal-ctags-6.2.0/peg/thrift.c:4832:9: call_function: calling ‘pcc_apply_rule’ from ‘pthrift_parse’
#  890|           while (m < n && m != 0) m <<= 1;
#  891|           if (m == 0) m = n;
#  892|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  893|           stack->max = m;
#  894|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
universal-ctags-6.2.0/peg/toml.c:450:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/toml_post.h:223:13: enter_function: entry to ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:230:16: call_function: calling ‘ptoml_parse’ from ‘findTomlTags’
#  448|   
#  449|   static void pcc_capture_const_table__term(pcc_auxil_t auxil, pcc_capture_const_table_t *table) {
#  450|->     PCC_FREE(auxil, (void *)table->buf);
#  451|   }
#  452|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
universal-ctags-6.2.0/peg/toml.c:480:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/toml_post.h:223:13: enter_function: entry to ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:230:16: call_function: calling ‘ptoml_parse’ from ‘findTomlTags’
#  478|       switch (thunk->type) {
#  479|       case PCC_THUNK_LEAF:
#  480|->         PCC_FREE(auxil, thunk->data.leaf.capt0.string);
#  481|           pcc_capture_const_table__term(auxil, &thunk->data.leaf.capts);
#  482|           pcc_value_refer_table__term(auxil, &thunk->data.leaf.values);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
universal-ctags-6.2.0/peg/toml.c:499:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(88)’
universal-ctags-6.2.0/peg/toml.c:5329:5: enter_function: entry to ‘ptoml_parse’
universal-ctags-6.2.0/peg/toml.c:5330:9: call_function: calling ‘pcc_apply_rule’ from ‘ptoml_parse’
#  497|   
#  498|   static void pcc_thunk_array__add(pcc_auxil_t auxil, pcc_thunk_array_t *array, pcc_thunk_t *thunk) {
#  499|->     if (array->max <= array->len) {
#  500|           const size_t n = array->len + 1;
#  501|           size_t m = array->max;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
universal-ctags-6.2.0/peg/toml.c:640:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/toml_post.h:223:13: enter_function: entry to ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:230:16: call_function: calling ‘ptoml_parse’ from ‘findTomlTags’
#  638|   
#  639|   static void pcc_rule_set__term(pcc_auxil_t auxil, pcc_rule_set_t *set) {
#  640|->     PCC_FREE(auxil, set->buf);
#  641|   }
#  642|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
universal-ctags-6.2.0/peg/toml.c:875:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/toml_post.h:223:13: enter_function: entry to ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:230:16: call_function: calling ‘ptoml_parse’ from ‘findTomlTags’
#  873|   
#  874|   static void pcc_lr_entry__destroy(pcc_auxil_t auxil, pcc_lr_entry_t *lr) {
#  875|->     PCC_FREE(auxil, lr);
#  876|   }
#  877|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
universal-ctags-6.2.0/peg/toml.c:891:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/toml_post.h:223:13: enter_function: entry to ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:228:33: call_function: inlined call to ‘ptoml_create’ from ‘findTomlTags’
universal-ctags-6.2.0/peg/toml_post.h:230:16: call_function: calling ‘ptoml_parse’ from ‘findTomlTags’
#  889|           while (m < n && m != 0) m <<= 1;
#  890|           if (m == 0) m = n;
#  891|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  892|           stack->max = m;
#  893|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
universal-ctags-6.2.0/peg/toml.c:891:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(24)’
universal-ctags-6.2.0/peg/toml.c:5329:5: enter_function: entry to ‘ptoml_parse’
universal-ctags-6.2.0/peg/toml.c:5330:9: call_function: calling ‘pcc_apply_rule’ from ‘ptoml_parse’
#  889|           while (m < n && m != 0) m <<= 1;
#  890|           if (m == 0) m = n;
#  891|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  892|           stack->max = m;
#  893|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
universal-ctags-6.2.0/peg/varlink.c:450:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/varlink_post.h:78:13: enter_function: entry to ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:85:16: call_function: calling ‘pvarlink_parse’ from ‘findVarlinkTags’
#  448|   
#  449|   static void pcc_capture_const_table__term(pcc_auxil_t auxil, pcc_capture_const_table_t *table) {
#  450|->     PCC_FREE(auxil, (void *)table->buf);
#  451|   }
#  452|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
universal-ctags-6.2.0/peg/varlink.c:480:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/varlink_post.h:78:13: enter_function: entry to ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:85:16: call_function: calling ‘pvarlink_parse’ from ‘findVarlinkTags’
#  478|       switch (thunk->type) {
#  479|       case PCC_THUNK_LEAF:
#  480|->         PCC_FREE(auxil, thunk->data.leaf.capt0.string);
#  481|           pcc_capture_const_table__term(auxil, &thunk->data.leaf.capts);
#  482|           pcc_value_refer_table__term(auxil, &thunk->data.leaf.values);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
universal-ctags-6.2.0/peg/varlink.c:499:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(88)’
universal-ctags-6.2.0/peg/varlink.c:3086:5: enter_function: entry to ‘pvarlink_parse’
universal-ctags-6.2.0/peg/varlink.c:3087:9: call_function: calling ‘pcc_apply_rule’ from ‘pvarlink_parse’
#  497|   
#  498|   static void pcc_thunk_array__add(pcc_auxil_t auxil, pcc_thunk_array_t *array, pcc_thunk_t *thunk) {
#  499|->     if (array->max <= array->len) {
#  500|           const size_t n = array->len + 1;
#  501|           size_t m = array->max;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
universal-ctags-6.2.0/peg/varlink.c:640:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/varlink_post.h:78:13: enter_function: entry to ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:85:16: call_function: calling ‘pvarlink_parse’ from ‘findVarlinkTags’
#  638|   
#  639|   static void pcc_rule_set__term(pcc_auxil_t auxil, pcc_rule_set_t *set) {
#  640|->     PCC_FREE(auxil, set->buf);
#  641|   }
#  642|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
universal-ctags-6.2.0/peg/varlink.c:875:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/varlink_post.h:78:13: enter_function: entry to ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:85:16: call_function: calling ‘pvarlink_parse’ from ‘findVarlinkTags’
#  873|   
#  874|   static void pcc_lr_entry__destroy(pcc_auxil_t auxil, pcc_lr_entry_t *lr) {
#  875|->     PCC_FREE(auxil, lr);
#  876|   }
#  877|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
universal-ctags-6.2.0/peg/varlink.c:891:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_context__create(&auxil)’
universal-ctags-6.2.0/peg/varlink_post.h:78:13: enter_function: entry to ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:83:36: call_function: inlined call to ‘pvarlink_create’ from ‘findVarlinkTags’
universal-ctags-6.2.0/peg/varlink_post.h:85:16: call_function: calling ‘pvarlink_parse’ from ‘findVarlinkTags’
#  889|           while (m < n && m != 0) m <<= 1;
#  890|           if (m == 0) m = n;
#  891|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  892|           stack->max = m;
#  893|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
universal-ctags-6.2.0/peg/varlink.c:891:41: warning[-Wanalyzer-malloc-leak]: leak of ‘pcc_malloc_e(24)’
universal-ctags-6.2.0/peg/varlink.c:3086:5: enter_function: entry to ‘pvarlink_parse’
universal-ctags-6.2.0/peg/varlink.c:3087:9: call_function: calling ‘pcc_apply_rule’ from ‘pvarlink_parse’
#  889|           while (m < n && m != 0) m <<= 1;
#  890|           if (m == 0) m = n;
#  891|->         stack->buf = (pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, sizeof(pcc_lr_entry_t *) * m);
#  892|           stack->max = m;
#  893|       }

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-42.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namectags-6.2.0-1.fc44
store-results-to/tmp/tmp15cp2x63/ctags-6.2.0-1.fc44.tar.xz
time-created2025-10-28 17:41:49
time-finished2025-10-28 17:45:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp15cp2x63/ctags-6.2.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp15cp2x63/ctags-6.2.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9