speech-dispatcher-0.12.0-2.fc43

List of Findings

Error: UNICONTROL_WARNING (CWE-94): [#def1]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:121: warning: bidirectional control characters: ['\u202a']
#  119|   ‍	نیم‌اتصال	char	never

#  120|   ‌	نیم‌فاصله	char	never

#  121|-> ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def2]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:122: warning: bidirectional control characters: ['\u202b']
#  120|   ‌	نیم‌فاصله	char	never

#  121|   ‪	چپ به راستِ توکار	char	never

#  122|-> ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def3]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:123: warning: bidirectional control characters: ['\u202d']
#  121|   ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|-> ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def4]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:124: warning: bidirectional control characters: ['\u202e']
#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|-> ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def5]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:125: warning: bidirectional control characters: ['\u202c']
#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|-> ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def6]
/usr/share/speech-dispatcher/locale/ff_Adlm/emojis.dic:133: warning: bidirectional control characters: ['\u202e']
#  131|   🇧🇹	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤵𞥅𞤼𞤢𞥄𞤲	none

#  132|   🇧🇻	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅	none

#  133|-> 🇧🇼	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 ‮𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢	none

#  134|   🇧🇾	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤢𞤪𞤵𞥅𞤧	none

#  135|   🇧🇿	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤭𞥅𞥁	none


Error: UNICONTROL_WARNING (CWE-94): [#def7]
/usr/share/speech-dispatcher/locale/he/orca.dic:13: warning: bidirectional control characters: ['\u202b']
#   11|   ¤	סימן מטבע	all
#   12|   ¦	קו שבור	most
#   13|-> ª	‫a בכתב עילי	some
#   14|   ¬	לא לוגי	some
#   15|   ­	מקף רך	most

Error: UNICONTROL_WARNING (CWE-94): [#def8]
speech-dispatcher-0.12.0/locale/fa/symbols.dic:121: warning: bidirectional control characters: ['\u202a']
#  119|   ‍	نیم‌اتصال	char	never

#  120|   ‌	نیم‌فاصله	char	never

#  121|-> ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def9]
speech-dispatcher-0.12.0/locale/fa/symbols.dic:122: warning: bidirectional control characters: ['\u202b']
#  120|   ‌	نیم‌فاصله	char	never

#  121|   ‪	چپ به راستِ توکار	char	never

#  122|-> ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def10]
speech-dispatcher-0.12.0/locale/fa/symbols.dic:123: warning: bidirectional control characters: ['\u202d']
#  121|   ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|-> ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def11]
speech-dispatcher-0.12.0/locale/fa/symbols.dic:124: warning: bidirectional control characters: ['\u202e']
#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|-> ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def12]
speech-dispatcher-0.12.0/locale/fa/symbols.dic:125: warning: bidirectional control characters: ['\u202c']
#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|-> ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def13]
speech-dispatcher-0.12.0/locale/ff_Adlm/emojis.dic:133: warning: bidirectional control characters: ['\u202e']
#  131|   🇧🇹	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤵𞥅𞤼𞤢𞥄𞤲	none

#  132|   🇧🇻	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅	none

#  133|-> 🇧🇼	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 ‮𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢	none

#  134|   🇧🇾	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤢𞤪𞤵𞥅𞤧	none

#  135|   🇧🇿	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤭𞥅𞥁	none


Error: UNICONTROL_WARNING (CWE-94): [#def14]
speech-dispatcher-0.12.0/locale/he/orca.dic:13: warning: bidirectional control characters: ['\u202b']
#   11|   ¤	סימן מטבע	all
#   12|   ¦	קו שבור	most
#   13|-> ª	‫a בכתב עילי	some
#   14|   ¬	לא לוגי	some
#   15|   ­	מקף רך	most

Error: CPPCHECK_WARNING (CWE-476): [#def15]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: address
#  210|   	gchar **pa;		/* parsed address */
#  211|   	SPDConnectionAddress *address = malloc(sizeof(SPDConnectionAddress));
#  212|-> 	address->unix_socket_name = NULL;
#  213|   	address->inet_socket_host = NULL;
#  214|   	address->dbus_bus = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def16]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: address
#  211|   	SPDConnectionAddress *address = malloc(sizeof(SPDConnectionAddress));
#  212|   	address->unix_socket_name = NULL;
#  213|-> 	address->inet_socket_host = NULL;
#  214|   	address->dbus_bus = NULL;
#  215|   

Error: CPPCHECK_WARNING (CWE-476): [#def17]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: address
#  212|   	address->unix_socket_name = NULL;
#  213|   	address->inet_socket_host = NULL;
#  214|-> 	address->dbus_bus = NULL;
#  215|   
#  216|   	if (env_address == NULL) {	// Default method = unix sockets

Error: CPPCHECK_WARNING (CWE-476): [#def18]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1538|   		running = svoices_str[i];
# 1539|   
# 1540|-> 		svoices[i] = (SPDVoice *) malloc(sizeof(SPDVoice));
# 1541|   		svoices[i]->name = strsep(&running, delimiters);
# 1542|   		svoices[i]->language = strsep(&running, delimiters);

Error: CPPCHECK_WARNING (CWE-476): [#def19]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1539|   
# 1540|   		svoices[i] = (SPDVoice *) malloc(sizeof(SPDVoice));
# 1541|-> 		svoices[i]->name = strsep(&running, delimiters);
# 1542|   		svoices[i]->language = strsep(&running, delimiters);
# 1543|   		svoices[i]->variant = strsep(&running, delimiters);

Error: CPPCHECK_WARNING (CWE-476): [#def20]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1542: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1540|   		svoices[i] = (SPDVoice *) malloc(sizeof(SPDVoice));
# 1541|   		svoices[i]->name = strsep(&running, delimiters);
# 1542|-> 		svoices[i]->language = strsep(&running, delimiters);
# 1543|   		svoices[i]->variant = strsep(&running, delimiters);
# 1544|   		assert(svoices[i]->name != NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def21]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1543: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1541|   		svoices[i]->name = strsep(&running, delimiters);
# 1542|   		svoices[i]->language = strsep(&running, delimiters);
# 1543|-> 		svoices[i]->variant = strsep(&running, delimiters);
# 1544|   		assert(svoices[i]->name != NULL);
# 1545|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def22]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1544: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1542|   		svoices[i]->language = strsep(&running, delimiters);
# 1543|   		svoices[i]->variant = strsep(&running, delimiters);
# 1544|-> 		assert(svoices[i]->name != NULL);
# 1545|   	}
# 1546|   	free(svoices_str);

Error: CPPCHECK_WARNING (CWE-476): [#def23]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1548: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1546|   	free(svoices_str);
# 1547|   
# 1548|-> 	svoices[num_items] = NULL;
# 1549|   
# 1550|   	return svoices;

Error: CPPCHECK_WARNING (CWE-476): [#def24]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1593: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1591|   		if ((err) || (line == NULL))
# 1592|   			break;
# 1593|-> 		result[i] = line;
# 1594|   		if (i >= max_items - 2) {
# 1595|   			max_items *= 2;

Error: CPPCHECK_WARNING (CWE-401): [#def25]
speech-dispatcher-0.12.0/src/api/c/libspeechd.c:1596: error[memleakOnRealloc]: Common realloc mistake: 'result' nulled but not freed upon failure
# 1594|   		if (i >= max_items - 2) {
# 1595|   			max_items *= 2;
# 1596|-> 			result = realloc(result, max_items * sizeof(char *));
# 1597|   		}
# 1598|   	}

Error: COMPILER_WARNING (CWE-563): [#def26]
speech-dispatcher-0.12.0/src/audio/alsa.c: scope_hint: In function 'wait_for_poll'
speech-dispatcher-0.12.0/src/audio/alsa.c:296:13: warning[-Wunused-but-set-variable]: variable 'ret' set but not used
#  296 |         int ret;
#      |             ^~~
#  294|   	unsigned short revents;
#  295|   	snd_pcm_state_t state;
#  296|-> 	int ret;
#  297|   
#  298|   	//      MSG("Waiting for poll");

Error: COMPILER_WARNING (CWE-563): [#def27]
speech-dispatcher-0.12.0/src/audio/alsa.c: scope_hint: In function 'alsa_feed'
speech-dispatcher-0.12.0/src/audio/alsa.c:590:25: warning[-Wunused-but-set-variable]: variable 'state' set but not used
#  590 |         snd_pcm_state_t state;
#      |                         ^~~~~
#  588|   	int ret;
#  589|   
#  590|-> 	snd_pcm_state_t state;
#  591|   
#  592|   	snd_pcm_uframes_t framecount;

Error: COMPILER_WARNING (CWE-563): [#def28]
speech-dispatcher-0.12.0/src/clients/say/options.h:51:22: warning[-Wunused-variable]: ‘long_options’ defined but not used
#   51 | static struct option long_options[] = {
#      |                      ^~~~~~~~~~~~
#   49|   extern char *connection_name;
#   50|   
#   51|-> static struct option long_options[] = {
#   52|   	{"rate", 1, 0, 'r'},
#   53|   	{"pitch", 1, 0, 'p'},

Error: COMPILER_WARNING (CWE-563): [#def29]
speech-dispatcher-0.12.0/src/clients/say/say.c:47: included_from: Included from here.
speech-dispatcher-0.12.0/src/clients/say/options.h: scope_hint: At top level
speech-dispatcher-0.12.0/src/clients/say/options.h:80:14: warning[-Wunused-variable]: ‘short_options’ defined but not used
#   80 | static char *short_options = "r:p:R:i:l:o:OI:t:Ly:ckm:sxeP:N:n:wSCvh";
#      |              ^~~~~~~~~~~~~
#   78|   };
#   79|   
#   80|-> static char *short_options = "r:p:R:i:l:o:OI:t:Ly:ckm:sxeP:N:n:wSCvh";
#   81|   
#   82|   int options_parse(int argc, char *argv[]);

Error: COMPILER_WARNING (CWE-563): [#def30]
speech-dispatcher-0.12.0/src/clients/say/say.c:74:13: warning[-Wunused-variable]: unused variable ‘ret’
#   74 |         int ret;
#      |             ^~~
#   72|   	char *error;
#   73|   	int msg_arg_required = 0;
#   74|-> 	int ret;
#   75|   	int option_ret;
#   76|   	char *line;

Error: COMPILER_WARNING (CWE-563): [#def31]
speech-dispatcher-0.12.0/src/clients/say/say.c: scope_hint: In function ‘main’
speech-dispatcher-0.12.0/src/clients/say/say.c:75:13: warning[-Wunused-but-set-variable]: variable ‘option_ret’ set but not used
#   75 |         int option_ret;
#      |             ^~~~~~~~~~
#   73|   	int msg_arg_required = 0;
#   74|   	int ret;
#   75|-> 	int option_ret;
#   76|   	char *line;
#   77|   

Error: CPPCHECK_WARNING (CWE-476): [#def32]
speech-dispatcher-0.12.0/src/clients/say/say.c:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: locale
#  132|   	} else {
#  133|   		char *locale = strdup(setlocale(LC_MESSAGES, NULL));
#  134|-> 		char *dot = strchr(locale, '.');
#  135|   		if (dot)
#  136|   			*dot = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
speech-dispatcher-0.12.0/src/clients/say/say.c:134:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locale’ where non-null expected
speech-dispatcher-0.12.0/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:129:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:133:39: branch_false: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:133:32: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/clients/say/say.c:134:29: danger: argument 1 (‘locale’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  132|   	} else {
#  133|   		char *locale = strdup(setlocale(LC_MESSAGES, NULL));
#  134|-> 		char *dot = strchr(locale, '.');
#  135|   		if (dot)
#  136|   			*dot = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def34]
speech-dispatcher-0.12.0/src/clients/say/say.c:346: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: line
#  344|   		/* In pipe mode, read from stdin, write to stdout, and also to Speech Dispatcher. */
#  345|   		line = (char *)malloc(MAX_LINELEN);
#  346|-> 		while (NULL != fgets(line, MAX_LINELEN, stdin)) {
#  347|   			fputs(line, stdout);
#  348|   			if (0 == strncmp(line, "!-!", 3)) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def35]
speech-dispatcher-0.12.0/src/clients/say/say.c:347:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘line’ where non-null expected
speech-dispatcher-0.12.0/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:309:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:326:18: branch_false: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:326:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:343:18: branch_false: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:343:17: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:345:32: branch_true: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:345:32: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/clients/say/say.c:346:24: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/clients/say/say.c:347:25: branch_true: ...to here
speech-dispatcher-0.12.0/src/clients/say/say.c:347:25: danger: argument 1 (‘line’) from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#  345|   		line = (char *)malloc(MAX_LINELEN);
#  346|   		while (NULL != fgets(line, MAX_LINELEN, stdin)) {
#  347|-> 			fputs(line, stdout);
#  348|   			if (0 == strncmp(line, "!-!", 3)) {
#  349|   				/* Remove EOL */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
speech-dispatcher-0.12.0/src/modules/espeak.c:894:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘espeak_variants_array’
speech-dispatcher-0.12.0/src/modules/espeak.c:810:19: enter_function: entry to ‘espeak_list_synthesis_voices’
speech-dispatcher-0.12.0/src/modules/espeak.c:837:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/espeak.c:863:21: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:866:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/espeak.c:874:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:891:33: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/espeak.c:892:21: branch_true: following ‘true’ branch (when ‘i < numvariants’)...
speech-dispatcher-0.12.0/src/modules/espeak.c:893:36: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:894:17: danger: ‘espeak_variants_array + (long unsigned int)i * 16’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  892|   	for (i = 0; i < numvariants; i++) {
#  893|   		v = espeak_variants[i];
#  894|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  895|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  896|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
speech-dispatcher-0.12.0/src/modules/espeak.c:894:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
speech-dispatcher-0.12.0/src/modules/espeak.c:810:19: enter_function: entry to ‘espeak_list_synthesis_voices’
speech-dispatcher-0.12.0/src/modules/espeak.c:837:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/espeak.c:863:21: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:866:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/espeak.c:874:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:880:21: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/modules/espeak.c:883:25: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:880:21: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/espeak.c:887:23: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:892:21: branch_true: following ‘true’ branch (when ‘i < numvariants’)...
speech-dispatcher-0.12.0/src/modules/espeak.c:893:36: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:892:21: branch_true: following ‘true’ branch (when ‘i < numvariants’)...
speech-dispatcher-0.12.0/src/modules/espeak.c:893:36: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/espeak.c:894:49: danger: dereference of NULL ‘v’
#  892|   	for (i = 0; i < numvariants; i++) {
#  893|   		v = espeak_variants[i];
#  894|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  895|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  896|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def38]
speech-dispatcher-0.12.0/src/modules/espeak.c:897: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: espeak_variants_array
#  895|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  896|   	}
#  897|-> 	espeak_variants_array[numvariants].name = NULL;
#  898|   
#  899|   	if (EspeakMbrola)

Error: GCC_ANALYZER_WARNING (CWE-835): [#def39]
speech-dispatcher-0.12.0/src/modules/festival.c:408:27: warning[-Wanalyzer-infinite-loop]: infinite loop
speech-dispatcher-0.12.0/src/modules/festival.c:760:6: enter_function: entry to ‘festival_set_language’
#  406|   
#  407|   	for (i = 0, j = 0;; j++) {
#  408|-> 		if (voices[i] == NULL)
#  409|   			break;
#  410|   		else if (strlen(voices[i]) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
speech-dispatcher-0.12.0/src/modules/festival.c:413:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
speech-dispatcher-0.12.0/src/modules/festival.c:760:6: enter_function: entry to ‘festival_set_language’
speech-dispatcher-0.12.0/src/modules/festival.c:764:31: call_function: calling ‘festivalGetVoices’ from ‘festival_set_language’
#  411|   			continue;
#  412|   		else {
#  413|-> 			result[j] = g_malloc(sizeof(SPDVoice));
#  414|   			result[j]->name = strdup(voices[i]);
#  415|   			lang = voices[i + 1];

Error: COMPILER_WARNING: [#def41]
speech-dispatcher-0.12.0/src/modules/festival_client.c:485:21: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  485 |                 DBG("ERROR: Can't load speech-dispatcher module into Festival."
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  483|   	ret = festival_read_response(info, &resp);
#  484|   	if (ret || resp == NULL || strcmp(resp, "t\n")) {
#  485|-> 		DBG("ERROR: Can't load speech-dispatcher module into Festival."
#  486|   		    "Reason: %s", resp);
#  487|   		delete_FT_Info(info);

Error: COMPILER_WARNING: [#def42]
speech-dispatcher-0.12.0/src/modules/module_utils.h:40: included_from: Included from here.
speech-dispatcher-0.12.0/src/modules/festival_client.c:73: included_from: Included from here.
speech-dispatcher-0.12.0/src/modules/festival_client.c: scope_hint: In function ‘festivalOpen’
speech-dispatcher-0.12.0/src/modules/festival_client.c:498:21: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  498 |                 DBG("ERROR: Can't set Wavefiletype to nist in Festival. Reason: %s", resp);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
speech-dispatcher-0.12.0/src/modules/festival_client.c:498:81: note: format string is defined here
#  498 |                 DBG("ERROR: Can't set Wavefiletype to nist in Festival. Reason: %s", resp);
#      |                                                                                 ^~
#  496|   	ret = festival_read_response(info, &resp);
#  497|   	if (ret || resp == NULL || strcmp(resp, "nist\n")) {
#  498|-> 		DBG("ERROR: Can't set Wavefiletype to nist in Festival. Reason: %s", resp);
#  499|   		delete_FT_Info(info);
#  500|   		if (!ret && resp)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def43]
speech-dispatcher-0.12.0/src/modules/festival_client.c:535:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
speech-dispatcher-0.12.0/src/modules/festival_client.c:584:5: enter_function: entry to ‘festivalKey’
speech-dispatcher-0.12.0/src/modules/festival_client.c:584:5: call_function: calling ‘festival_speak_command’ from ‘festivalKey’
#  533|   	else
#  534|   		str = g_strdup_printf("(%s '", command);
#  535|-> 	fputs(str, fd);
#  536|   	/* Copy text over to server, escaping any quotes */
#  537|   	for (p = text; p && (*p != '\0'); p++) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
speech-dispatcher-0.12.0/src/modules/festival_client.c:639:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
speech-dispatcher-0.12.0/src/modules/festival_client.c:617:10: enter_function: entry to ‘festivalGetDataMulti’
speech-dispatcher-0.12.0/src/modules/festival_client.c:625:13: call_function: calling ‘festival_check_info’ from ‘festivalGetDataMulti’
speech-dispatcher-0.12.0/src/modules/festival_client.c:625:13: return_function: returning to ‘festivalGetDataMulti’ from ‘festival_check_info’
speech-dispatcher-0.12.0/src/modules/festival_client.c:625:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/festival_client.c:633:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/festival_client.c:638:14: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/festival_client.c:639:9: danger: argument 4 (‘fd’) from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#argument 4 of ‘__builtin_fwrite’ must be non-null
#  637|   	DBG("-> Festival: (speechd-next)");
#  638|   	fd = fdopen(dup(info->server_fd), "wb");
#  639|-> 	fprintf(fd, "(speechd-next)\n");
#  640|   	fflush(fd);
#  641|   	fclose(fd);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
speech-dispatcher-0.12.0/src/modules/generic.c:275:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gerror’
speech-dispatcher-0.12.0/src/modules/generic.c:220:17: release_memory: ‘gerror’ is NULL
speech-dispatcher-0.12.0/src/modules/generic.c:224:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/generic.c:228:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/generic.c:247:9: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/modules/generic.c:248:13: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/generic.c:248:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/modules/generic.c:249:21: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/generic.c:249:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/generic.c:274:12: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/generic.c:274:12: branch_true: following ‘true’ branch (when ‘tmp’ is NULL)...
speech-dispatcher-0.12.0/src/modules/generic.c:275:17: branch_true: ...to here
speech-dispatcher-0.12.0/src/modules/generic.c:275:17: release_memory: ‘gerror’ is NULL
speech-dispatcher-0.12.0/src/modules/generic.c:276:17: release_memory: ‘gerror’ is NULL
speech-dispatcher-0.12.0/src/modules/generic.c:275:17: danger: dereference of NULL ‘gerror’
#  273|   
#  274|   	if (tmp == NULL) {
#  275|-> 		DBG("Warning: Conversion failed: %d: %s\n", gerror->code, gerror->message);
#  276|   		g_error_free(gerror);
#  277|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
speech-dispatcher-0.12.0/src/modules/generic.c:371:21: warning[-Wanalyzer-null-argument]: use of NULL ‘mstring’ where non-null expected
speech-dispatcher-0.12.0/src/modules/generic.c:360:7: enter_function: entry to ‘string_replace’
speech-dispatcher-0.12.0/src/modules/generic.c:371:21: danger: argument 1 (‘mstring’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  369|   	while (1) {
#  370|   		/* Split the string in two parts, omit the token */
#  371|-> 		p = strstr(mstring, token);
#  372|   		if (p == NULL) {
#  373|   			return mstring;

Error: CPPCHECK_WARNING (CWE-476): [#def47]
speech-dispatcher-0.12.0/src/modules/module_main.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: msg
#   67|   		if (msg == NULL)
#   68|   			msg = strdup("Unspecified initialization error\n");
#   69|-> 		printf("399-%s\n", msg);
#   70|   		printf("399 ERR CANT INIT MODULE\n");
#   71|   		free(msg);

Error: CPPCHECK_WARNING (CWE-476): [#def48]
speech-dispatcher-0.12.0/src/modules/module_main.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: msg
#   76|   	if (msg == NULL)
#   77|   		msg = strdup("Unspecified initialization success\n");
#   78|-> 	printf("299-%s\n", msg);
#   79|   	printf("299 OK LOADED SUCCESSFULLY\n");
#   80|   	fflush(stdout);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def49]
speech-dispatcher-0.12.0/src/modules/module_process.c:252:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'text' where non-null expected
speech-dispatcher-0.12.0/src/modules/module_process.c:531:5: enter_function: entry to 'module_process'
speech-dispatcher-0.12.0/src/modules/module_process.c:535:20: branch_false: following 'false' branch...
speech-dispatcher-0.12.0/src/modules/module_process.c:538:22: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/module_process.c:545:25: call_function: inlined call to 'cmd_speak_char' from 'module_process'
#  250|   
#  251|   	if (msgtype == SPD_MSGTYPE_KEY || msgtype == SPD_MSGTYPE_CHAR) {
#  252|-> 		if (!strcmp(text, "space")) {
#  253|   			free(text);
#  254|   			text = strdup(" ");

Error: CPPCHECK_WARNING (CWE-476): [#def50]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  116|   	SPDVoice **ret = malloc(2 * sizeof(*ret));
#  117|   
#  118|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#  119|   	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:118:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/openjtalk.c:116:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/openjtalk.c:118:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  116|   	SPDVoice **ret = malloc(2 * sizeof(*ret));
#  117|   
#  118|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#  119|   	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");

Error: CPPCHECK_WARNING (CWE-476): [#def52]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  117|   
#  118|   	ret[0] = malloc(sizeof(*(ret[0])));
#  119|-> 	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");
#  121|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:119:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/openjtalk.c:118:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/openjtalk.c:119:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  117|   
#  118|   	ret[0] = malloc(sizeof(*(ret[0])));
#  119|-> 	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");
#  121|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def54]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  118|   	ret[0] = malloc(sizeof(*(ret[0])));
#  119|   	ret[0]->name = strdup("Default");
#  120|-> 	ret[0]->language = strdup("ja");
#  121|   	ret[0]->variant = NULL;
#  122|   

Error: CPPCHECK_WARNING (CWE-476): [#def55]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  119|   	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");
#  121|-> 	ret[0]->variant = NULL;
#  122|   
#  123|   	ret[1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def56]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:123: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  121|   	ret[0]->variant = NULL;
#  122|   
#  123|-> 	ret[1] = NULL;
#  124|   
#  125|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-789): [#def57]
speech-dispatcher-0.12.0/src/modules/openjtalk.c:234:13: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘<unknown> * track.bits / 8’ as allocation size without upper-bounds checking
speech-dispatcher-0.12.0/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.0/src/modules/openjtalk.c:234:13: danger: use of attacker-controlled value ‘<unknown> * track.bits / 8’ as allocation size without upper-bounds checking
#  232|   	fseek(audio_fp, WAV_START_SAMPLES, SEEK_SET);
#  233|   	track.samples =
#  234|-> 	    malloc(track.num_samples * track.num_channels * track.bits / 8);
#  235|   	ret =
#  236|   	    fread(track.samples, track.bits / 8,

Error: CPPCHECK_WARNING (CWE-476): [#def58]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   65|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   66|   
#   67|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   68|   	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:67:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/skeleton0.c:65:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0.c:67:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   65|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   66|   
#   67|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   68|   	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");

Error: CPPCHECK_WARNING (CWE-476): [#def60]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   66|   
#   67|   	ret[0] = malloc(sizeof(*(ret[0])));
#   68|-> 	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");
#   70|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:68:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0.c:67:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0.c:68:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   66|   
#   67|   	ret[0] = malloc(sizeof(*(ret[0])));
#   68|-> 	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");
#   70|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def62]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   67|   	ret[0] = malloc(sizeof(*(ret[0])));
#   68|   	ret[0]->name = strdup("foo");
#   69|-> 	ret[0]->language = strdup("eo");
#   70|   	ret[0]->variant = NULL;
#   71|   

Error: CPPCHECK_WARNING (CWE-476): [#def63]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   68|   	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");
#   70|-> 	ret[0]->variant = NULL;
#   71|   
#   72|   	ret[1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def64]
speech-dispatcher-0.12.0/src/modules/skeleton0.c:72: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   70|   	ret[0]->variant = NULL;
#   71|   
#   72|-> 	ret[1] = NULL;
#   73|   
#   74|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def65]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:97:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:95:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:97:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def67]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:97:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:98:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def69]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|-> 	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def70]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|-> 	ret[0]->variant = NULL;
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def71]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   	ret[0]->variant = NULL;
#  101|   
#  102|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def72]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:103:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:102:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:103:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def74]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|-> 	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;
#  106|   

Error: CPPCHECK_WARNING (CWE-476): [#def75]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|-> 	ret[1]->variant = NULL;
#  106|   
#  107|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def76]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async-server.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  105|   	ret[1]->variant = NULL;
#  106|   
#  107|-> 	ret[2] = NULL;
#  108|   
#  109|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def77]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   94|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   95|   
#   96|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   97|   	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:96:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:94:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:96:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   94|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   95|   
#   96|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   97|   	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def79]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   
#   96|   	ret[0] = malloc(sizeof(*(ret[0])));
#   97|-> 	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");
#   99|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:97:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:96:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:97:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   95|   
#   96|   	ret[0] = malloc(sizeof(*(ret[0])));
#   97|-> 	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");
#   99|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def81]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   	ret[0] = malloc(sizeof(*(ret[0])));
#   97|   	ret[0]->name = strdup("English (America)");
#   98|-> 	ret[0]->language = strdup("en");
#   99|   	ret[0]->variant = NULL;
#  100|   

Error: CPPCHECK_WARNING (CWE-476): [#def82]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");
#   99|-> 	ret[0]->variant = NULL;
#  100|   
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def83]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   99|   	ret[0]->variant = NULL;
#  100|   
#  101|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#  102|   	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def84]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));
#  102|-> 	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");
#  104|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:102:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:101:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:102:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  100|   
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));
#  102|-> 	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");
#  104|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def86]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));
#  102|   	ret[1]->name = strdup("French (France)");
#  103|-> 	ret[1]->language = strdup("fr");
#  104|   	ret[1]->variant = NULL;
#  105|   

Error: CPPCHECK_WARNING (CWE-476): [#def87]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  102|   	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");
#  104|-> 	ret[1]->variant = NULL;
#  105|   
#  106|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def88]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-async.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  104|   	ret[1]->variant = NULL;
#  105|   
#  106|-> 	ret[2] = NULL;
#  107|   
#  108|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def89]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:97:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:95:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:97:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def91]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:97:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:98:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def93]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|-> 	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def94]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|-> 	ret[0]->variant = NULL;
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def95]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   	ret[0]->variant = NULL;
#  101|   
#  102|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def96]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:103:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:102:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:103:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def98]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|-> 	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;
#  106|   

Error: CPPCHECK_WARNING (CWE-476): [#def99]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|-> 	ret[1]->variant = NULL;
#  106|   
#  107|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def100]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync-server.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  105|   	ret[1]->variant = NULL;
#  106|   
#  107|-> 	ret[2] = NULL;
#  108|   
#  109|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def101]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   90|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   91|   
#   92|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   93|   	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:92:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:90:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:92:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   90|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   91|   
#   92|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   93|   	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def103]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   91|   
#   92|   	ret[0] = malloc(sizeof(*(ret[0])));
#   93|-> 	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");
#   95|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:93:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:92:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:93:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   91|   
#   92|   	ret[0] = malloc(sizeof(*(ret[0])));
#   93|-> 	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");
#   95|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def105]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:94: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   92|   	ret[0] = malloc(sizeof(*(ret[0])));
#   93|   	ret[0]->name = strdup("English (America)");
#   94|-> 	ret[0]->language = strdup("en");
#   95|   	ret[0]->variant = NULL;
#   96|   

Error: CPPCHECK_WARNING (CWE-476): [#def106]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   93|   	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");
#   95|-> 	ret[0]->variant = NULL;
#   96|   
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def107]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   	ret[0]->variant = NULL;
#   96|   
#   97|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#   98|   	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def108]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");
#  100|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:97:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:98:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");
#  100|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def110]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));
#   98|   	ret[1]->name = strdup("French (France)");
#   99|-> 	ret[1]->language = strdup("fr");
#  100|   	ret[1]->variant = NULL;
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def111]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   98|   	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");
#  100|-> 	ret[1]->variant = NULL;
#  101|   
#  102|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def112]
speech-dispatcher-0.12.0/src/modules/skeleton0_espeak-ng-sync.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   	ret[1]->variant = NULL;
#  101|   
#  102|-> 	ret[2] = NULL;
#  103|   
#  104|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def113]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:80: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   78|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   79|   
#   80|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   81|   	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:80:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:78:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:80:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   78|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   79|   
#   80|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   81|   	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");

Error: CPPCHECK_WARNING (CWE-476): [#def115]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   79|   
#   80|   	ret[0] = malloc(sizeof(*(ret[0])));
#   81|-> 	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");
#   83|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:81:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:80:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:81:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   79|   
#   80|   	ret[0] = malloc(sizeof(*(ret[0])));
#   81|-> 	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");
#   83|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def117]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:82: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   80|   	ret[0] = malloc(sizeof(*(ret[0])));
#   81|   	ret[0]->name = strdup("foo");
#   82|-> 	ret[0]->language = strdup("eo");
#   83|   	ret[0]->variant = NULL;
#   84|   

Error: CPPCHECK_WARNING (CWE-476): [#def118]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   81|   	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");
#   83|-> 	ret[0]->variant = NULL;
#   84|   
#   85|   	ret[1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def119]
speech-dispatcher-0.12.0/src/modules/skeleton_config.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   83|   	ret[0]->variant = NULL;
#   84|   
#   85|-> 	ret[1] = NULL;
#   86|   
#   87|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def120]
speech-dispatcher-0.12.0/src/server/module.c:383:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.12.0/src/server/module.c:822:6: enter_function: entry to ‘module_load_requested_modules’
speech-dispatcher-0.12.0/src/server/module.c:824:16: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/server/module.c:826:24: branch_true: ...to here
speech-dispatcher-0.12.0/src/server/module.c:829:21: call_function: calling ‘load_output_module’ from ‘module_load_requested_modules’
#  381|   	} else {
#  382|   		module->filename = (char *)spd_get_path(mod_prog, SpeechdOptions.user_module_dir);
#  383|-> 		if (stat(module->filename, &fileinfo) != 0) {
#  384|   			g_free(module->filename);
#  385|   			module->filename = (char *)spd_get_path(mod_prog, SpeechdOptions.module_dir);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
speech-dispatcher-0.12.0/src/server/output.c:1167:25: warning[-Wanalyzer-malloc-leak]: leak of ‘track.samples’
speech-dispatcher-0.12.0/src/server/output.c:1024:12: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
speech-dispatcher-0.12.0/src/server/output.c:1030:20: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1031:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1036:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1039:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1048:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1049:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1059:19: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1059:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1084:19: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1084:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1095:19: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1095:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1107:19: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1107:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1134:19: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1134:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1152:19: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1152:17: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1154:28: branch_true: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1163:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1170:21: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1170:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1170:47: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1176:28: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/output.c:1182:45: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1183:28: branch_false: following ‘false’ branch (when ‘q’ is non-NULL)...
speech-dispatcher-0.12.0/src/server/output.c:1190:29: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1221:33: acquire_memory: allocated here
speech-dispatcher-0.12.0/src/server/output.c:1225:20: branch_true: following ‘true’ branch (when ‘end’ is NULL)...
speech-dispatcher-0.12.0/src/server/output.c:1226:25: branch_true: ...to here
speech-dispatcher-0.12.0/src/server/output.c:1167:25: danger: ‘track.samples’ leaks here; was allocated at [(29)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/28)
# 1165|   				"Audio event but server audio not set up");
# 1166|   			retcode = -5;
# 1167|-> 			goto out;
# 1168|   		}
# 1169|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def122]
speech-dispatcher-0.12.0/src/server/set.c:258:30: warning[-Wanalyzer-null-argument]: use of NULL ‘language’ where non-null expected
speech-dispatcher-0.12.0/src/server/set.c:241:5: enter_function: entry to ‘set_language_uid’
speech-dispatcher-0.12.0/src/server/set.c:246:20: call_function: calling ‘get_client_settings_by_uid’ from ‘set_language_uid’
speech-dispatcher-0.12.0/src/server/set.c:246:20: return_function: returning to ‘set_language_uid’ from ‘get_client_settings_by_uid’
speech-dispatcher-0.12.0/src/server/set.c:247:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/set.c:251:13: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/set.c:251:13: call_function: calling ‘set_param_str’ from ‘set_language_uid’
speech-dispatcher-0.12.0/src/server/set.c:251:13: return_function: returning to ‘set_language_uid’ from ‘set_param_str’
speech-dispatcher-0.12.0/src/server/set.c:255:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/set.c:258:30: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/set.c:258:30: danger: argument 1 (‘language’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  256|   		set_output_module_uid(uid, output_module);
#  257|   	} else {
#  258|-> 		char *dash = strchr(language, '-');
#  259|   
#  260|   		if (dash) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
speech-dispatcher-0.12.0/src/server/speechd.c:906:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "r")’
speech-dispatcher-0.12.0/src/server/speechd.c:1118:5: enter_function: entry to ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1156:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1230:13: call_function: calling ‘create_pid_file’ from ‘main’
#  904|   		/* If there is a lock, exit, otherwise remove the old file */
#  905|   		ret = fcntl(pid_fd, F_GETLK, &lock);
#  906|-> 		if (ret == -1) {
#  907|   			MSG(-1,
#  908|   			    "Can't check lock status of an existing pid file.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
speech-dispatcher-0.12.0/src/server/speechd.c:906:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "r")’
speech-dispatcher-0.12.0/src/server/speechd.c:1118:5: enter_function: entry to ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1156:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1230:13: call_function: calling ‘create_pid_file’ from ‘main’
#  904|   		/* If there is a lock, exit, otherwise remove the old file */
#  905|   		ret = fcntl(pid_fd, F_GETLK, &lock);
#  906|-> 		if (ret == -1) {
#  907|   			MSG(-1,
#  908|   			    "Can't check lock status of an existing pid file.\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
speech-dispatcher-0.12.0/src/server/speechd.c:932:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "w")’
speech-dispatcher-0.12.0/src/server/speechd.c:1118:5: enter_function: entry to ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1156:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1230:13: call_function: calling ‘create_pid_file’ from ‘main’
#  930|   
#  931|   	pid_fd = fileno(pid_file);
#  932|-> 	lock.l_type = F_WRLCK;
#  933|   	lock.l_whence = SEEK_SET;
#  934|   	lock.l_start = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
speech-dispatcher-0.12.0/src/server/speechd.c:932:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "w")’
speech-dispatcher-0.12.0/src/server/speechd.c:1118:5: enter_function: entry to ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1156:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: branch_false: ...to here
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1164:9: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: call_function: calling ‘MSG’ from ‘main’
speech-dispatcher-0.12.0/src/server/speechd.c:1225:17: return_function: returning to ‘main’ from ‘MSG’
speech-dispatcher-0.12.0/src/server/speechd.c:1230:13: call_function: calling ‘create_pid_file’ from ‘main’
#  930|   
#  931|   	pid_fd = fileno(pid_file);
#  932|-> 	lock.l_type = F_WRLCK;
#  933|   	lock.l_whence = SEEK_SET;
#  934|   	lock.l_start = 1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def127]
speech-dispatcher-0.12.0/src/server/symbols.c:1411:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locale’ where non-null expected
speech-dispatcher-0.12.0/src/server/symbols.c:1394:24: acquire_memory: this call could return NULL
speech-dispatcher-0.12.0/src/server/symbols.c:1411:16: danger: argument 1 (‘locale’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
# 1409|   		level = SYMLVL_CHAR;
# 1410|   
# 1411|-> 	dash = strchr(locale, '-');
# 1412|   	if (dash)
# 1413|   	{

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-17.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namespeech-dispatcher-0.12.0-2.fc43
store-results-to/tmp/tmp7mtzh72n/speech-dispatcher-0.12.0-2.fc43.tar.xz
time-created2025-04-25 15:54:00
time-finished2025-04-25 15:55:50
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp7mtzh72n/speech-dispatcher-0.12.0-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp7mtzh72n/speech-dispatcher-0.12.0-2.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9