speech-dispatcher-0.11.5-6.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def2]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c:265:10: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
#  263|   	if (!conn) {
#  264|   		_init_debug();
#  265|-> 		assert(error);
#  266|   		SPD_DBG("Could not connect to Speech Dispatcher: %s", error);
#  267|   		free(error);

Error: CLANG_WARNING: [#def3]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c:457:20: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  455|   				 &resolve_error);
#  456|   		if (host_ip == NULL) {
#  457|-> 			*error_result = strdup(resolve_error);
#  458|   			g_free(resolve_error);
#  459|   			free(connection);

Error: CLANG_WARNING: [#def4]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c:577:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  575|   	    g_strdup_printf("SET SELF CLIENT_NAME \"%s:%s:%s\"", usr_name,
#  576|   			    client_name, conn_name);
#  577|-> 	ret = spd_execute_command_wo_mutex(connection, set_client_name);
#  578|   
#  579|   out:

Error: CPPCHECK_WARNING (CWE-401): [#def5]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c:1550: error[memleakOnRealloc]: Common realloc mistake: 'result' nulled but not freed upon failure
# 1548|   		if (i >= max_items - 2) {
# 1549|   			max_items *= 2;
# 1550|-> 			result = realloc(result, max_items * sizeof(char *));
# 1551|   		}
# 1552|   	}

Error: CLANG_WARNING: [#def6]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c:1876:12: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 1874|   			/* Extract message id */
# 1875|   			msg_id = get_param_int(reply, 1, &err);
# 1876|-> 			if (err < 0) {
# 1877|   				SPD_DBG
# 1878|   				    ("Bad reply from Speech Dispatcher: %s (code %d)",

Error: CLANG_WARNING: [#def7]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/api/c/libspeechd.c:1913:14: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
# 1911|   				int err;
# 1912|   				im = get_param_str(reply, 3, &err);
# 1913|-> 				if ((err < 0) || (im == NULL)) {
# 1914|   					SPD_DBG
# 1915|   					    ("Broken reply from Speech Dispatcher: %s",

Error: CPPCHECK_WARNING: [#def8]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c: scope_hint: In function 'xrun'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:93:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:663:25: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:35: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:92:24: note: in expansion of macro 'g_strdup'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c: scope_hint: In function 'xrun'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#   91|   		t = time(NULL); \
#   92|   		tstr = g_strdup(ctime(&t)); \
#   93|-> 		tstr[strlen(tstr)-1] = 0; \
#   94|   		gettimeofday(&tv,NULL); \
#   95|   		fprintf(stderr," %s [%d.%06d]",tstr, (int)tv.tv_sec % 10, (int) tv.tv_usec); \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:110:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:136:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:663:25: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:132:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:136:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:109:24: note: in expansion of macro 'g_strdup'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:136:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c: scope_hint: In function 'xrun'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:136:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:136:17: note: in expansion of macro 'ERR'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#  108|   		t = time(NULL); \
#  109|   		tstr = g_strdup(ctime(&t)); \
#  110|-> 		tstr[strlen(tstr)-1] = 0; \
#  111|   		gettimeofday(&tv,NULL); \
#  112|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec); \

Error: CLANG_WARNING: [#def11]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:302:7: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
#  300|   
#  301|   	/* Close device */
#  302|-> 	if ((err = _alsa_close(alsa_id)) < 0) {
#  303|   		ERR("Cannot close audio device");
#  304|   		return -1;

Error: COMPILER_WARNING (CWE-563): [#def12]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c: scope_hint: In function 'wait_for_poll'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:325:13: warning[-Wunused-but-set-variable]: variable 'ret' set but not used
#  325 |         int ret;
#      |             ^~~
#  323|   	unsigned short revents;
#  324|   	snd_pcm_state_t state;
#  325|-> 	int ret;
#  326|   
#  327|   	//      MSG("Waiting for poll");

Error: CLANG_WARNING: [#def13]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:331:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  329|   	/* Wait for certain events */
#  330|   	while (1) {
#  331|-> 		ret = poll(id->alsa_poll_fds, count, -1);
#  332|   		//      MSG("wait_for_poll: activity on %d descriptors", ret);
#  333|   

Error: COMPILER_WARNING (CWE-563): [#def14]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c: scope_hint: In function 'alsa_feed'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:619:25: warning[-Wunused-but-set-variable]: variable 'state' set but not used
#  619 |         snd_pcm_state_t state;
#      |                         ^~~~~
#  617|   	int ret;
#  618|   
#  619|-> 	snd_pcm_state_t state;
#  620|   
#  621|   	snd_pcm_uframes_t framecount;

Error: CLANG_WARNING: [#def15]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:648:3: warning[deadcode.DeadStores]: Value stored to 'state' is never read
#  646|   
#  647|   		/* Report current state state */
#  648|-> 		state = snd_pcm_state(alsa_id->alsa_pcm);
#  649|   		//      MSG("PCM state before writei: %s",
#  650|   		//          snd_pcm_state_name(state));

Error: CLANG_WARNING: [#def16]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:691:3: warning[deadcode.DeadStores]: Value stored to 'state' is never read
#  689|   
#  690|   		/* Report current state */
#  691|-> 		state = snd_pcm_state(alsa_id->alsa_pcm);
#  692|   		//      MSG("PCM state before polling: %s",
#  693|   		//          snd_pcm_state_name(state));

Error: CLANG_WARNING: [#def17]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/alsa.c:708:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'output_samples'
#  706|   			err = snd_pcm_drop(alsa_id->alsa_pcm);
#  707|   			if (err < 0) {
#  708|-> 				ERR("snd_pcm_drop() failed: %s",
#  709|   				    snd_strerror(err));
#  710|   				return -1;

Error: CPPCHECK_WARNING: [#def18]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def19]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:52:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:154:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:154:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:154:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:51:24: note: in expansion of macro 'g_strdup'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:154:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c: scope_hint: In function 'libao_play'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:154:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:154:9: note: in expansion of macro 'MSG'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#   50|   		t = time(NULL); \
#   51|   		tstr = g_strdup(ctime(&t)); \
#   52|-> 		tstr[strlen(tstr)-1] = 0; \
#   53|   		gettimeofday(&tv,NULL); \
#   54|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec); \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c: scope_hint: In function 'libao_play'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:69:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:151:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:151:17: note: in expansion of macro 'ERR'
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:32: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:68:24: note: in expansion of macro 'g_strdup'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:151:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c: scope_hint: In function 'libao_play'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:151:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:151:17: note: in expansion of macro 'ERR'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#   67|   		t = time(NULL); \
#   68|   		tstr = g_strdup(ctime(&t)); \
#   69|-> 		tstr[strlen(tstr)-1] = 0; \
#   70|   		gettimeofday(&tv,NULL); \
#   71|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec); \

Error: CLANG_WARNING: [#def21]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/libao.c:176:2: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  174|   	ao_stop_playback = 0;
#  175|   	outcnt = 0;
#  176|-> 	i = 0;
#  177|   
#  178|   	while ((outcnt < num_bytes) && !ao_stop_playback) {

Error: CPPCHECK_WARNING: [#def22]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c: scope_hint: In function 'pulse_play'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:97:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:96:24: note: in expansion of macro 'g_strdup'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c: scope_hint: In function 'pulse_play'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:247:9: note: in expansion of macro 'MSG'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#   95|   		t = time(NULL); \
#   96|   		tstr = g_strdup(ctime(&t)); \
#   97|-> 		tstr[strlen(tstr)-1] = 0; \
#   98|   		gettimeofday(&tv,NULL); \
#   99|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec); \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c: scope_hint: In function 'pulse_open'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:114:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:191:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:191:17: note: in expansion of macro 'ERR'
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:49: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:113:24: note: in expansion of macro 'g_strdup'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:191:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c: scope_hint: In function 'pulse_open'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:191:17: note: in expansion of macro 'ERR'
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:191:17: note: in expansion of macro 'ERR'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#  112|   		t = time(NULL); \
#  113|   		tstr = g_strdup(ctime(&t)); \
#  114|-> 		tstr[strlen(tstr)-1] = 0; \
#  115|   		gettimeofday(&tv,NULL); \
#  116|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec); \

Error: CLANG_WARNING: [#def25]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/audio/pulse.c:286:2: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  284|   	pulse_id->pa_stop_playback = 0;
#  285|   	outcnt = 0;
#  286|-> 	i = 0;
#  287|   	while ((outcnt < num_bytes) && !pulse_id->pa_stop_playback) {
#  288|   		if ((num_bytes - outcnt) > PULSE_SEND_BYTES) {

Error: COMPILER_WARNING (CWE-563): [#def26]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/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): [#def27]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c:44: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/options.h: scope_hint: At top level
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/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: CPPCHECK_WARNING: [#def28]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

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

Error: CLANG_WARNING: [#def30]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c:98:2: warning[deadcode.DeadStores]: Value stored to 'option_ret' is never read
#   96|   	connection_name = NULL;
#   97|   
#   98|-> 	option_ret = options_parse(argc, argv);
#   99|   
#  100|   	/* Check if the text to say or options are specified in the argument */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c: scope_hint: In function ‘main’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c:131:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locale’ where non-null expected
/usr/include/string.h:462: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c:28: included_from: Included from here.
/usr/include/strings.h:68:14: note: argument 1 of ‘index’ must be non-null
#  129|   	} else {
#  130|   		char *locale = strdup(setlocale(LC_MESSAGES, NULL));
#  131|-> 		char *dot = index(locale, '.');
#  132|   		if (dot)
#  133|   			*dot = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c:338:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘line’ where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/say/say.c:27: included_from: Included from here.
/usr/include/stdio.h:707:12: note: argument 1 of ‘fputs’ must be non-null
#  336|   		line = (char *)malloc(MAX_LINELEN);
#  337|   		while (NULL != fgets(line, MAX_LINELEN, stdin)) {
#  338|-> 			fputs(line, stdout);
#  339|   			if (0 == strncmp(line, "!-!", 3)) {
#  340|   				/* Remove EOL */

Error: CPPCHECK_WARNING: [#def33]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/spdsend/server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def34]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/spdsend/server.c:404:7: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
#  402|   	if (fork() != 0)
#  403|   		exit(0);
#  404|-> 	if ((ret = chdir("/")) != 0)
#  405|   		fputs("server.c:daemonize: could not chdir", stderr);
#  406|   	exit(1);

Error: CPPCHECK_WARNING: [#def35]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/clients/spdsend/spdsend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/common/fdsetconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def37]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/common/spd_audio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def38]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/cicero.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def40]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:875:44: warning[core.NullDereference]: Access to field 'name' results in a dereference of a null pointer (loaded from variable 'v')
#  873|   	for (i = 0; i < numvariants; i++) {
#  874|   		v = espeak_variants[i];
#  875|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  876|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  877|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c: scope_hint: In function ‘espeak_list_synthesis_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:875:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘espeak_variants_array’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:36: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:875:49: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c: scope_hint: In function ‘espeak_list_synthesis_voices’
#  873|   	for (i = 0; i < numvariants; i++) {
#  874|   		v = espeak_variants[i];
#  875|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  876|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  877|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:875:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:864:25: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c: scope_hint: In function ‘espeak_list_synthesis_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c:875:49: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/espeak.c: scope_hint: In function ‘espeak_list_synthesis_voices’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
#  873|   	for (i = 0; i < numvariants; i++) {
#  874|   		v = espeak_variants[i];
#  875|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  876|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  877|   	}

Error: CPPCHECK_WARNING: [#def43]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-835): [#def44]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c: scope_hint: In function ‘festivalGetVoices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c:410:27: warning[-Wanalyzer-infinite-loop]: infinite loop
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c:73:9: note: in definition of macro ‘FEST_SET_STR’
#  408|   
#  409|   	for (i = 0, j = 0;; j++) {
#  410|-> 		if (voices[i] == NULL)
#  411|   			break;
#  412|   		else if (strlen(voices[i]) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c:415:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  413|   			continue;
#  414|   		else {
#  415|-> 			result[j] = g_malloc(sizeof(SPDVoice));
#  416|   			result[j]->name = strdup(voices[i]);
#  417|   			lang = voices[i + 1];

Error: CLANG_WARNING: [#def46]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c:559:2: warning[deadcode.DeadStores]: Value stored to 'wave_cached' is never read
#  557|   
#  558|   	festival_speaking = 1;
#  559|-> 	wave_cached = 0;
#  560|   	fwave = NULL;
#  561|   

Error: CLANG_WARNING: [#def47]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c:1101:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1099|   		return -1;
# 1100|   	case 0:
# 1101|-> 		ret = dup2(module_p.pipe_in[0], 0);
# 1102|   		close(module_p.pipe_in[0]);
# 1103|   		close(module_p.pipe_in[1]);

Error: CLANG_WARNING: [#def48]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival.c:1105:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1103|   		close(module_p.pipe_in[1]);
# 1104|   
# 1105|-> 		ret = dup2(module_p.pipe_out[1], 1);
# 1106|   		close(module_p.pipe_out[1]);
# 1107|   		close(module_p.pipe_out[0]);

Error: CPPCHECK_WARNING: [#def49]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def50]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:485:3: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  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: CLANG_WARNING: [#def51]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:485:3: warning[unix.Malloc]: Use of memory after it is freed
#  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: [#def52]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/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: CLANG_WARNING: [#def53]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:498:3: warning[unix.Malloc]: Use of memory after it is freed
#  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: COMPILER_WARNING: [#def54]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.h:42: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:73: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c: scope_hint: In function ‘festivalOpen’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/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.11.5-build/speech-dispatcher-0.11.5/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): [#def55]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c: scope_hint: In function ‘festival_speak_command’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:535:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:568:9: note: in definition of macro ‘FEST_SPEAK_CMD’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:584:5: note: in expansion of macro ‘FEST_SPEAK_CMD’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.h:30: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:73: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.h:42: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:525:9: note: in expansion of macro ‘DBG’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:57: included_from: Included from here.
/usr/include/stdio.h:707:12: note: argument 2 of ‘fputs’ must be non-null
#  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): [#def56]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c: scope_hint: In function ‘festivalGetDataMulti’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:639:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
<built-in>: note: 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: CLANG_WARNING: [#def57]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/festival_client.c:645:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'wave'
#  643|   	do {
#  644|   		if (festival_get_ack(&info, ack)) {
#  645|-> 			DBG("Get ack failed");
#  646|   			g_free(resp);
#  647|   			return NULL;

Error: CPPCHECK_WARNING: [#def58]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/flite.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/generic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def60]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/generic.c: scope_hint: In function ‘string_replace’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/generic.c:349:21: warning[-Wanalyzer-null-argument]: use of NULL ‘mstring’ where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/generic.c:27: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/generic.c:346:19: note: in expansion of macro ‘g_strdup’
<built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null
#  347|   	while (1) {
#  348|   		/* Split the string in two parts, omit the token */
#  349|-> 		p = strstr(mstring, token);
#  350|   		if (p == NULL) {
#  351|   			return mstring;

Error: CPPCHECK_WARNING: [#def61]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_process.c: scope_hint: In function ‘cmd_speak’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_process.c:234:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘text’ where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_process.c: scope_hint: In function ‘cmd_speak’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  232|   			text_allocated = new_allocated;
#  233|   		}
#  234|-> 		memcpy(text + text_len, line, len);
#  235|   		text_len += len;
#  236|   		free(line - offset);

Error: CPPCHECK_WARNING: [#def64]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_readline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def66]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:59:22: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:58:24: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c: scope_hint: In function ‘MSG’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   57|   		t = time(NULL);
#   58|   		tstr = g_strdup(ctime(&t));
#   59|-> 		tstr[strlen(tstr)-1] = 0;
#   60|   		gettimeofday(&tv,NULL);
#   61|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c: scope_hint: In function ‘MSG’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:59:22: warning[-Wanalyzer-null-argument]: use of NULL ‘error’ where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.h:42: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:27: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:659:9: note: in expansion of macro ‘DBG’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.h:31: included_from: Included from here.
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:58:24: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c: scope_hint: In function ‘MSG’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   57|   		t = time(NULL);
#   58|   		tstr = g_strdup(ctime(&t));
#   59|-> 		tstr[strlen(tstr)-1] = 0;
#   60|   		gettimeofday(&tv,NULL);
#   61|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def68]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:59:22: warning[-Wanalyzer-null-argument]: use of NULL ‘first_error’ where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:659:9: note: in expansion of macro ‘DBG’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:659:9: note: in expansion of macro ‘DBG’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:677:25: note: in expansion of macro ‘DBG’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:677:25: note: in expansion of macro ‘DBG’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c:58:24: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils.c: scope_hint: In function ‘MSG’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#   57|   		t = time(NULL);
#   58|   		tstr = g_strdup(ctime(&t));
#   59|-> 		tstr[strlen(tstr)-1] = 0;
#   60|   		gettimeofday(&tv,NULL);
#   61|   		fprintf(stderr," %s [%d]",tstr, (int) tv.tv_usec);

Error: CPPCHECK_WARNING: [#def69]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/module_utils_addvoice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0.c: scope_hint: In function ‘module_list_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0.c:67:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def71]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0.c:68:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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: [#def72]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async-server.c: scope_hint: In function ‘module_list_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async-server.c:97:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def74]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async-server.c:98:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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): [#def75]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async-server.c:103:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#  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: [#def76]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async.c: scope_hint: In function ‘module_list_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async.c:96:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async.c:97:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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): [#def79]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-async.c:102:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#  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: [#def80]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync-server.c: scope_hint: In function ‘module_list_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync-server.c:97:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def82]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync-server.c:98:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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): [#def83]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync-server.c:103:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#  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: [#def84]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync.c: scope_hint: In function ‘module_list_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync.c:92:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def86]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync.c:93:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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): [#def87]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton0_espeak-ng-sync.c:98:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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): [#def88]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton_config.c: scope_hint: In function ‘module_list_voices’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton_config.c:80:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def89]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/modules/skeleton_config.c:81:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
#   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: [#def90]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/index_marking.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def91]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def92]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c: scope_hint: In function ‘load_output_module’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:375:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c: scope_hint: In function ‘load_output_module’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:367:27: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c: scope_hint: In function ‘load_output_module’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:368:29: note: in expansion of macro ‘g_strdup’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c: scope_hint: In function ‘load_output_module’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:29: included_from: Included from here.
/usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null
#  373|   	} else {
#  374|   		module->filename = (char *)spd_get_path(mod_prog, SpeechdOptions.user_module_dir);
#  375|-> 		if (stat(module->filename, &fileinfo) != 0) {
#  376|   			g_free(module->filename);
#  377|   			module->filename = (char *)spd_get_path(mod_prog, SpeechdOptions.module_dir);

Error: CLANG_WARNING: [#def93]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:457:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  455|   
#  456|   	if (fr == 0) {
#  457|-> 		ret = dup2(module->pipe_in[0], 0);
#  458|   		close(module->pipe_in[0]);
#  459|   		close(module->pipe_in[1]);

Error: CLANG_WARNING: [#def94]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:461:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  459|   		close(module->pipe_in[1]);
#  460|   
#  461|-> 		ret = dup2(module->pipe_out[1], 1);
#  462|   		close(module->pipe_out[1]);
#  463|   		close(module->pipe_out[0]);

Error: CLANG_WARNING: [#def95]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/module.c:467:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  465|   		/* Redirrect stderr to the appropriate logfile */
#  466|   		if (module->stderr_redirect >= 0) {
#  467|-> 			ret = dup2(module->stderr_redirect, 2);
#  468|   		}
#  469|   

Error: CPPCHECK_WARNING: [#def96]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-909): [#def97]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c:838: error[uninitStructMember]: Uninitialized struct member: output.audio
#  836|   		output = speaking_module;
#  837|   
#  838|-> 	if (output->audio)
#  839|   	{
#  840|   		if (output_end_queued) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c: scope_hint: In function ‘output_module_is_speaking’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c:1094:25: warning[-Wanalyzer-malloc-leak]: leak of ‘track.samples’
# 1092|   				"Audio event but server audio not set up");
# 1093|   			retcode = -5;
# 1094|-> 			goto out;
# 1095|   		}
# 1096|   

Error: CLANG_WARNING: [#def99]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c:1153:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'track.samples'
# 1151|   		end = memchr(p, '\n', end - p);
# 1152|   		if (!end) {
# 1153|-> 			MSG2(2, "output_module",
# 1154|   				"ERROR: bogus audio end of line %s", p);
# 1155|   			retcode = -5;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def100]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c:1181:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘track.samples’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1179|   			}
# 1180|   
# 1181|-> 			memcpy(data + filled, p, piece);
# 1182|   			filled += piece;
# 1183|   			p = q;

Error: CLANG_WARNING: [#def101]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/output.c:1410:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 1408|   			return 0;
# 1409|   		}
# 1410|-> 		ret = WIFEXITED(status);
# 1411|   
# 1412|   		/* TODO: Linux kernel implementation of threads is not very good :(  */

Error: CPPCHECK_WARNING: [#def102]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def103]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/parse.c:152:4: warning[deadcode.DeadStores]: Value stored to 'end_data' is never read
#  150|   
#  151|   			MSG(5, "Finishing data");
#  152|-> 			end_data = 0;
#  153|   
#  154|   			/* Set the flag to command mode */

Error: CPPCHECK_WARNING: [#def104]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def105]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/set.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def106]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/set.c: scope_hint: In function ‘set_language_uid’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/set.c:258:30: warning[-Wanalyzer-null-argument]: use of NULL ‘language’ where non-null expected
<built-in>: note: 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: CPPCHECK_WARNING: [#def107]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speaking.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def108]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speaking.c:89:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   87|   
#   88|   	while (1) {
#   89|-> 		ret = poll(poll_fds, poll_count, -1);
#   90|   		MSG(5,
#   91|   		    "Poll in speak() returned socket activity, main_pfd revents=%d, poll_pfd revents=%d",

Error: CLANG_WARNING: [#def109]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speaking.c:388:4: warning[deadcode.DeadStores]: Value stored to 'im' is never read
#  386|   		     msg->settings.index_mark, client_settings->pause_context);
#  387|   		if (im < 0) {
#  388|-> 			im = 0;
#  389|   			pos = msg->buf;
#  390|   		} else {

Error: CPPCHECK_WARNING: [#def110]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speechd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speechd.c: scope_hint: In function ‘create_pid_file’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speechd.c:848:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "r")’
#  846|   		/* If there is a lock, exit, otherwise remove the old file */
#  847|   		ret = fcntl(pid_fd, F_GETLK, &lock);
#  848|-> 		if (ret == -1) {
#  849|   			MSG(-1,
#  850|   			    "Can't check lock status of an existing pid file.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speechd.c:848:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "r")’
#  846|   		/* If there is a lock, exit, otherwise remove the old file */
#  847|   		ret = fcntl(pid_fd, F_GETLK, &lock);
#  848|-> 		if (ret == -1) {
#  849|   			MSG(-1,
#  850|   			    "Can't check lock status of an existing pid file.\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speechd.c:874:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "w")’
#  872|   
#  873|   	pid_fd = fileno(pid_file);
#  874|-> 	lock.l_type = F_WRLCK;
#  875|   	lock.l_whence = SEEK_SET;
#  876|   	lock.l_start = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/speechd.c:874:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "w")’
#  872|   
#  873|   	pid_fd = fileno(pid_file);
#  874|-> 	lock.l_type = F_WRLCK;
#  875|   	lock.l_whence = SEEK_SET;
#  876|   	lock.l_start = 1;

Error: CPPCHECK_WARNING: [#def115]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/symbols.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def116]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/symbols.c:330:22: warning[unix.Malloc]: Use of memory allocated with size zero
#  328|   				if (!filling_tag) {
#  329|   					/* Note the tags position in the text */
#  330|-> 					tags[ntags].pos = str->len;
#  331|   					/* A priori only deferrable tags */
#  332|   					tags[ntags].deferrable = 1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/symbols.c: scope_hint: In function ‘insert_symbols’
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/symbols.c:1407:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locale’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
# 1405|   		level = SYMLVL_CHAR;
# 1406|   
# 1407|-> 	dash = strchr(locale, '-');
# 1408|   	if (dash)
# 1409|   	{

Error: CLANG_WARNING: [#def118]
speech-dispatcher-0.11.5-build/speech-dispatcher-0.11.5/src/server/symbols.c:1417:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'locale'
# 1415|   
# 1416|   	MSG2(5, "symbols", "processing at level %d, supporting level %d", level, support_level);
# 1417|-> 	processed = process_speech_symbols(locale,
# 1418|   		msg->buf, level, support_level, msg->settings.ssml_mode);
# 1419|   	if (processed) {

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-93.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namespeech-dispatcher-0.11.5-6.fc41
store-results-to/tmp/tmp042ns9fh/speech-dispatcher-0.11.5-6.fc41.tar.xz
time-created2024-07-03 18:03:24
time-finished2024-07-03 18:05:40
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp042ns9fh/speech-dispatcher-0.11.5-6.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp042ns9fh/speech-dispatcher-0.11.5-6.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9