Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_backend_common.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_backend_common.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_msgs.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_msgs.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_null.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/kernel-headers/linux/cs-protocol.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/sal_debug.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/sal_debug.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/sal_ring.h
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech_msgs.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_ring.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ramp_test.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/send_cmtspeech_reset.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c
Examining data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c

FINAL RESULTS:

data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:174:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONTRACE(printf(DEBUG_PREFIX "changed state to %d.\n", new_state));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:250:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ONTRACE(printf(DEBUG_PREFIX "read APE->CMT message %s on channel %d.\n", cmtspeech_msg_type_to_string(msg), channel));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:286:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: CMT->APE message received by CMT, type %d (%02X:%02X:%02X:%02x).\n", 
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:292:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: unknown control message of type %d (%02X:%02X:%02X:%02x).\n", 
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:302:14:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      ONINFO(printf(DEBUG_PREFIX "exit request received, exiting worked thread (running=%d)\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:326:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONDEBUG(printf(DEBUG_PREFIX "thread wakeup - inbound control message\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:348:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ONDEBUG(printf(DEBUG_PREFIX "ssi-audio-dummy thread started\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:372:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  ONDEBUG(fprintf(stderr, DEBUG_PREFIX "Poll error %d (%d).\n", res, errno));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:374:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  ONTRACE(printf(DEBUG_PREFIX "dummy backend thread idle (state=%d, poll=%d)\n", cur_state, res));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:437:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ONDEBUG(printf(DEBUG_PREFIX "thread stopping\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:467:14:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      ONINFO(fprintf (stderr, DEBUG_PREFIX "ERROR: unable to allocate resources (pipes %d+%d, tone=%p)\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:543:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: event queue overflow!\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:598:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      ONTRACE(printf(DEBUG_PREFIX "Emitting SPEECH_CONFIG_REQ(enable)\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:620:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ONDEBUG(printf(DEBUG_PREFIX "POP pubbuf r-old:%d, r-new:%d w:%d\n", 
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:636:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ONTRACE(printf(DEBUG_PREFIX "ServerStatus - %d\n", status));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:650:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        ONTRACE(printf(DEBUG_PREFIX "Emitting SPEECH_CONFIG_REQ(disable)\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:656:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONTRACE(printf(DEBUG_PREFIX "No change, ignoring ServerStatus indication\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:664:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ONTRACE(printf(DEBUG_PREFIX "AudioConnect state:%d\n", state));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:697:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: trying to release an unlocked DL buffer.\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:701:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: trying to release on invalid UL buffer.\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:777:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: trying to release an unlocked UL buffer.\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:781:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ONINFO(fprintf(stderr, DEBUG_PREFIX "ERROR: trying to release on invalid UL buffer.\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:145:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      ONTRACE(printf(DEBUG_PREFIX "tone buf created of length %d, sine tone\n", tone->tone_len));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:175:14:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    ONTRACE(printf(DEBUG_PREFIX "tone buf created of length %d, file %s, len %d, res %d.\n", tone->tone_len, dummysrc, len, res));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:186:14:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      ONINFO(printf(DEBUG_PREFIX "unable to open tone file %s\n", dummysrc));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:52:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __FILE__": pa_simple_new() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:59:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __FILE__": pa_simple_new() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:67:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, __FILE__": pa_simple_read() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:72:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, __FILE__": pa_simple_write() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:82:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, __FILE__": pa_simple_get_latency() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:86:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, __FILE__": pa_simple_get_latency() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:106:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	      fprintf(stderr, __FILE__": pa_simple_flush() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/pa_test.c:118:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __FILE__": pa_simple_drain() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/sal_debug.c:108:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(message, args);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:100:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, PREFIX "%s %s:%d: case '%s' with value %d (%d errors, %d warnings)\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:109:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(PREFIX "Changing tester state to %s (from %s).\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:138:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(PREFIX "cmtspeech event received, tr %d\n", tr);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:163:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, 
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:169:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(PREFIX "sleeping for %lds:%ldns (sleep %d/%lu)\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:222:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr, PREFIX "cmtspeech mainloop error\n");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:236:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, PREFIX "cmtspeech mainloop stuck after %f seconds\n", testrun_len);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:88:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  DEBUG(fprintf(stderr, PREFIX "priv_add_cb: socket %d, watch %p (tracking %p).\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:98:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  DEBUG(fprintf(stderr, PREFIX "priv_remove_cb: (%p).\n", (void*)watch));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:112:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  DEBUG(fprintf(stderr, PREFIX "priv_toggled_cb: (%p) enabled=%d.\n", (void*)watch, enabled));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:145:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    DEBUG(fprintf(stderr, PREFIX "Connection established to DBus (%d).\n", (int)dbus_type));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:148:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, PREFIX "ERROR: unable to connect to DBus\n");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:238:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, __FILE__": pa_simple_new() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:248:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, __FILE__": pa_simple_new() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:274:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, __FILE__": pa_simple_get_latency() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:280:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, __FILE__": pa_simple_get_latency() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:297:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    DEBUG(fprintf(stderr, PREFIX "received ofono AudioSettings change, params name='%s'\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:316:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    INFO(fprintf(stderr, PREFIX "org.ofono.AudioSettings.Active to %d.\n", state));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:334:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PREFIX "ERROR: error parsing org.ofono.AudioSettings property '%s'\n", property);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:337:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, PREFIX "ERROR: unsupported org.ofono.AudioSettings property '%s'\n", property);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:349:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  DEBUG(fprintf(stderr, PREFIX "got message to if:%s, member:%s.\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:356:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    INFO(fprintf(stderr, PREFIX "unknown/ignored signal: if=%s, member=%s.\n",
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:415:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PREFIX "Increasing verbosity to %d.\n", ctx->verbose);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:453:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, __FILE__": pa_simple_get_latency() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:466:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    fprintf(stderr, __FILE__": error during flushing: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:471:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    fprintf(stderr, __FILE__": pa_simple_get_latency() failed: %s\n", pa_strerror(error));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:506:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	DEBUG(fprintf(stderr, PREFIX "Received a DL packet (%u bytes).\n", dlbuf->count));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:510:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, PREFIX "have packet but no sink?.\n");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:527:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  DEBUG(fprintf(stderr, PREFIX "read cmtspeech event %d.\n", cmtevent.msg_type));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:530:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  DEBUG(fprintf(stderr, PREFIX "state transition %d.\n", state_tr));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:535:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, PREFIX "ERROR: invalid state transition\n");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:556:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      INFO(printf(PREFIX "WARNING: modem UL timing update ignored\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:682:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  INFO(fprintf(stderr, PREFIX "Setup succesful, entering mainloop.\n"));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:689:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  INFO(fprintf(stderr, PREFIX "Completed, exiting (%d).\n", res));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:117:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *getenv_dummysrc = getenv("DUMMYSRC");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/sal_debug.c:47:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *debstr = getenv("CMTSPEECHDEBUG");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:300:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while (res = getopt_long(argc, argv, "hv", opt_tbl, &opt_index), res != -1) {
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:409:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while (res = getopt_long(argc, argv, "hva", opt_tbl, &opt_index), res != -1) {
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:241:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(PM_VDD2_LOCK_INTERFACE, O_WRONLY, 0);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:244:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2];
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:563:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open(CS_DEV_FILE_NAME, O_RDWR);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:682:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(to, event, eventsize);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:713:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(event, from, eventsize);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:1228:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&cmtevent.msg.timing_config_ntf.tstamp, s, sizeof(*s));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:1494:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(desc->bd.data, mmap_slot, desc->bd.count);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:556:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(msg.d.buf, &priv->pubbuf[priv->pubbuf_write], CMTSPEECH_CTRL_LEN);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:589:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (msg.d.buf, pubbuf, CMTSPEECH_CTRL_LEN);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:79:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[i * 2], &value, sizeof(value));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:104:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&slot->buf.data[i * 2], &value, sizeof(value));
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:144:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(tone->tone_buf, sinwave, tone->tone_len);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/dummy_common.c:153:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen(dummysrc, "rw");
data/libcmtspeechdata-2.1.1+git20160721~8efc468/test_cmtspeech.c:50:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *test_state_strings[TEST_STATE_LAST] =
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:200:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char scratch[10240];
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:442:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scratch[10240];
data/libcmtspeechdata-2.1.1+git20160721~8efc468/cmtspeech_nokiamodem.c:1316:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  i = read(priv->d.fd, cmd.d.buf, CMTSPEECH_CTRL_LEN);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:329:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  i = read(fds->fd, msg.d.buf, CMTSPEECH_CTRL_LEN);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/dummy-backend/cmtspeech_dummy.c:549:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  res = read(priv->control_pipes[0], &priv->pubbuf[priv->pubbuf_write], CMTSPEECH_DATA_HEADER_LEN);
data/libcmtspeechdata-2.1.1+git20160721~8efc468/utils/cmtspeech_ofono_test.c:208:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    num = read(ctx->source_fd, scratch, 10240);

ANALYSIS SUMMARY:

Hits = 92
Lines analyzed = 7693 in approximately 0.27 seconds (28534 lines/second)
Physical Source Lines of Code (SLOC) = 4657
Hits@level = [0]  47 [1]   4 [2]  16 [3]   4 [4]  68 [5]   0
Hits@level+ = [0+] 139 [1+]  92 [2+]  88 [3+]  72 [4+]  68 [5+]   0
Hits/KSLOC@level+ = [0+] 29.8475 [1+] 19.7552 [2+] 18.8963 [3+] 15.4606 [4+] 14.6017 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.