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/tsdecrypt-10.0/filter.c
Examining data/tsdecrypt-10.0/csa.c
Examining data/tsdecrypt-10.0/csa.h
Examining data/tsdecrypt-10.0/tables.c
Examining data/tsdecrypt-10.0/libfuncs/log.h
Examining data/tsdecrypt-10.0/libfuncs/list.h
Examining data/tsdecrypt-10.0/libfuncs/server.h
Examining data/tsdecrypt-10.0/libfuncs/http_response.h
Examining data/tsdecrypt-10.0/libfuncs/list.c
Examining data/tsdecrypt-10.0/libfuncs/libfuncs.h
Examining data/tsdecrypt-10.0/libfuncs/misc.h
Examining data/tsdecrypt-10.0/libfuncs/asyncdns.c
Examining data/tsdecrypt-10.0/libfuncs/cbuf.c
Examining data/tsdecrypt-10.0/libfuncs/misc.c
Examining data/tsdecrypt-10.0/libfuncs/io.c
Examining data/tsdecrypt-10.0/libfuncs/log.c
Examining data/tsdecrypt-10.0/libfuncs/queue.c
Examining data/tsdecrypt-10.0/libfuncs/io.h
Examining data/tsdecrypt-10.0/libfuncs/http_response.c
Examining data/tsdecrypt-10.0/libfuncs/cbuf.h
Examining data/tsdecrypt-10.0/libfuncs/asyncdns.h
Examining data/tsdecrypt-10.0/libfuncs/server.c
Examining data/tsdecrypt-10.0/libfuncs/queue.h
Examining data/tsdecrypt-10.0/filter.h
Examining data/tsdecrypt-10.0/FFdecsa/fftable.h
Examining data/tsdecrypt-10.0/FFdecsa/FFdecsa.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_generic.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_2long.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_16charA.h
Examining data/tsdecrypt-10.0/FFdecsa/stream.c
Examining data/tsdecrypt-10.0/FFdecsa/parallel_064_8char.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_std_def.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_4int.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_064_mmx.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_064_8charA.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_sse.h
Examining data/tsdecrypt-10.0/FFdecsa/logic/logic.c
Examining data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c
Examining data/tsdecrypt-10.0/FFdecsa/parallel_032_4char.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_032_int.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_2mmx.h
Examining data/tsdecrypt-10.0/FFdecsa/FFdecsa.c
Examining data/tsdecrypt-10.0/FFdecsa/parallel_064_long.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_032_4charA.h
Examining data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_16char.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_128_sse2.h
Examining data/tsdecrypt-10.0/FFdecsa/parallel_064_2int.h
Examining data/tsdecrypt-10.0/camd.c
Examining data/tsdecrypt-10.0/util.c
Examining data/tsdecrypt-10.0/notify.c
Examining data/tsdecrypt-10.0/tsdecrypt.c
Examining data/tsdecrypt-10.0/tables.h
Examining data/tsdecrypt-10.0/util.h
Examining data/tsdecrypt-10.0/libtsfuncs/log.h
Examining data/tsdecrypt-10.0/libtsfuncs/pes.c
Examining data/tsdecrypt-10.0/libtsfuncs/crc.c
Examining data/tsdecrypt-10.0/libtsfuncs/tsfuncs.h
Examining data/tsdecrypt-10.0/libtsfuncs/pat_desc.c
Examining data/tsdecrypt-10.0/libtsfuncs/time.c
Examining data/tsdecrypt-10.0/libtsfuncs/tdt_desc.c
Examining data/tsdecrypt-10.0/libtsfuncs/pat.c
Examining data/tsdecrypt-10.0/libtsfuncs/tsfuncs.c
Examining data/tsdecrypt-10.0/libtsfuncs/tstest.c
Examining data/tsdecrypt-10.0/libtsfuncs/sections.c
Examining data/tsdecrypt-10.0/libtsfuncs/nit.c
Examining data/tsdecrypt-10.0/libtsfuncs/misc.c
Examining data/tsdecrypt-10.0/libtsfuncs/eit_desc.c
Examining data/tsdecrypt-10.0/libtsfuncs/privsec.c
Examining data/tsdecrypt-10.0/libtsfuncs/descs.c
Examining data/tsdecrypt-10.0/libtsfuncs/pmt.c
Examining data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c
Examining data/tsdecrypt-10.0/libtsfuncs/sdt.c
Examining data/tsdecrypt-10.0/libtsfuncs/pes_data.c
Examining data/tsdecrypt-10.0/libtsfuncs/log.c
Examining data/tsdecrypt-10.0/libtsfuncs/secdata.c
Examining data/tsdecrypt-10.0/libtsfuncs/nit_desc.c
Examining data/tsdecrypt-10.0/libtsfuncs/tdt.c
Examining data/tsdecrypt-10.0/libtsfuncs/tsdata.h
Examining data/tsdecrypt-10.0/libtsfuncs/pes_es.c
Examining data/tsdecrypt-10.0/libtsfuncs/cat.c
Examining data/tsdecrypt-10.0/libtsfuncs/eit.c
Examining data/tsdecrypt-10.0/camd-cs378x.c
Examining data/tsdecrypt-10.0/data.h
Examining data/tsdecrypt-10.0/camd.h
Examining data/tsdecrypt-10.0/udp.h
Examining data/tsdecrypt-10.0/process.c
Examining data/tsdecrypt-10.0/udp.c
Examining data/tsdecrypt-10.0/process.h
Examining data/tsdecrypt-10.0/notify.h
Examining data/tsdecrypt-10.0/data.c
Examining data/tsdecrypt-10.0/camd-newcamd.c

FINAL RESULTS:

data/tsdecrypt-10.0/camd-newcamd.c:295:19:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	char *crPasswd = crypt(c->pass, "$1$abcdefgh$");
data/tsdecrypt-10.0/libfuncs/http_response.c:68:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(msg, 512, fmt, args);
data/tsdecrypt-10.0/libfuncs/io.c:222:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(msg, sizeof(msg)-1, fmt, args);
data/tsdecrypt-10.0/libfuncs/list.c:19:15:  [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.
	#define Ldbg fprintf
data/tsdecrypt-10.0/libfuncs/log.c:199:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(msg, sizeof(msg)-1, fmt, args);
data/tsdecrypt-10.0/libfuncs/log.h:22:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/tsdecrypt-10.0/libtsfuncs/log.c:23:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(msg, sizeof(msg)-1, fmt, args);
data/tsdecrypt-10.0/libtsfuncs/log.h:11:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/tsdecrypt-10.0/notify.c:164:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(msg_text, sizeof(msg_text) - 1, text_fmt, args);
data/tsdecrypt-10.0/notify.c:176:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(msg_text, sizeof(msg_text) - 1, text_fmt, args);
data/tsdecrypt-10.0/notify.h:23:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/tsdecrypt-10.0/notify.h:26:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/tsdecrypt-10.0/tsdecrypt.c:77:3:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
		syslog(LOG_INFO, msg, strlen(msg));
data/tsdecrypt-10.0/csa.c:197:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(0));
data/tsdecrypt-10.0/tsdecrypt.c:310:14:  [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 ((j = getopt_long(argc, argv, short_options, long_options, NULL)) != -1) {
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:137:11:  [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.
	unsigned char ck[8];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:146:11:  [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.
	unsigned char kk[56];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:201:25:  [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.
  static const unsigned char key_perm[0x40] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:343:25:  [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.
  static const unsigned char block_sbox[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:362:21:  [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.
  MEMALIGN unsigned char r[GROUP_PARALLELISM*(8+56)];  /* 56 because we will move back in memory while looping */
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:363:21:  [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.
  MEMALIGN unsigned char sbox_in[GROUP_PARALLELISM],sbox_out[GROUP_PARALLELISM],perm_out[GROUP_PARALLELISM];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:486:27:  [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.
    static const unsigned char pk[8] = { 0,0,0,0,0,0,0,0 };
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:503: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(key->ck,pk,8);
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:542: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(even,&((struct csa_keys_t *)keys)->even.ck,8);
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:543: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(odd,&((struct csa_keys_t *)keys)->odd.ck,8);
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:560:12:  [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.
  unsigned char *g_pkt[GROUP_PARALLELISM];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:572:12:  [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.
  unsigned char *encp[GROUP_PARALLELISM];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:573:21:  [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.
  MEMALIGN unsigned char stream_in[GROUP_PARALLELISM*8];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:574:21:  [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.
  MEMALIGN unsigned char stream_out[GROUP_PARALLELISM*8];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:575:21:  [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.
  MEMALIGN unsigned char ib[GROUP_PARALLELISM*8];
data/tsdecrypt-10.0/FFdecsa/FFdecsa.c:576:21:  [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.
  MEMALIGN unsigned char block_out[GROUP_PARALLELISM*8];
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:59:10:  [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.
unsigned char megabuf[188*TS_PKTS_FOR_TEST];
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:60:10:  [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.
unsigned char onebuf[188];
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:62:10:  [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.
unsigned char *cluster[10];
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:75: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(onebuf,test_1_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:81: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(onebuf,test_2_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:87: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(onebuf,test_3_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:93: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(onebuf,test_p_10_0_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:99: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(onebuf,test_p_1_6_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:123: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(&megabuf[188*i],s_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test.c:129: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(&megabuf[188*(TS_PKTS_FOR_TEST*2/3)],test_3_encrypted,188);
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:24:10:  [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.
unsigned char test_invalid_key[0x08] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:30:10:  [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.
unsigned char test_1_key[0x8] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:33:10:  [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.
unsigned char test_1_encrypted[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:48:10:  [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.
unsigned char test_1_expected[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:63:10:  [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.
unsigned char test_1_expected_stream[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:92:10:  [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.
unsigned char test_1_expected_block[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:138:10:  [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.
unsigned char test_2_key[0x8] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:141:10:  [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.
unsigned char test_2_encrypted[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:156:10:  [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.
unsigned char test_2_expected[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:174:10:  [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.
unsigned char test_3_key[0x8] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:177:10:  [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.
unsigned char test_3_encrypted[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:193:10:  [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.
unsigned char test_3_expected[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:211:10:  [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.
unsigned char test_p_10_0_key[0x8] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:214:10:  [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.
unsigned char test_p_10_0_encrypted[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:229:10:  [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.
unsigned char test_p_10_0_expected[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:247:10:  [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.
unsigned char test_p_1_6_key[0x8] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:250:10:  [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.
unsigned char test_p_1_6_encrypted[0x100] = {
data/tsdecrypt-10.0/FFdecsa/FFdecsa_test_testcases.h:265:10:  [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.
unsigned char test_p_1_6_expected[0x100] = {
data/tsdecrypt-10.0/FFdecsa/parallel_032_4charA.h:22:12:  [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.
  unsigned char s1[4];
data/tsdecrypt-10.0/FFdecsa/parallel_032_4charA.h:91:12:  [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.
  unsigned char s1[4];
data/tsdecrypt-10.0/FFdecsa/parallel_064_8charA.h:22:12:  [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.
  unsigned char s1[8];
data/tsdecrypt-10.0/FFdecsa/parallel_064_8charA.h:91:12:  [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.
  unsigned char s1[8];
data/tsdecrypt-10.0/FFdecsa/parallel_128_16charA.h:22:12:  [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.
  unsigned char s1[16];
data/tsdecrypt-10.0/FFdecsa/parallel_128_16charA.h:92:12:  [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.
  unsigned char s1[16];
data/tsdecrypt-10.0/camd-cs378x.c:68:11:  [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.
	unsigned char dump[16];
data/tsdecrypt-10.0/camd-cs378x.c:98:2:  [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(c->cs378x.buf + CAMD35_HDR_LEN, data, data_len); // Copy data to buf
data/tsdecrypt-10.0/camd-cs378x.c:166:2:  [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(cw, data + 20, 16);
data/tsdecrypt-10.0/camd-newcamd.c:103:2:  [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(data + len, padBytes, noPadBytes);
data/tsdecrypt-10.0/camd-newcamd.c:112:2:  [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(crypted + len, ivec, sizeof(ivec));
data/tsdecrypt-10.0/camd-newcamd.c:148:2:  [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(&netbuf[NEWCAMD_HDR_LEN + 4], data, data_len);
data/tsdecrypt-10.0/camd-newcamd.c:239: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 msg_buffer[32];
data/tsdecrypt-10.0/camd-newcamd.c:244:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&msg_buffer[i*2], "%02X", buffer[6 + i]);
data/tsdecrypt-10.0/camd-newcamd.c:248:2:  [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(nc->ua, &buffer[6], 8);
data/tsdecrypt-10.0/camd-newcamd.c:255:4:  [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(nc->provs_ident[i], &buffer[15+11*i], 3);
data/tsdecrypt-10.0/camd-newcamd.c:256:4:  [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(nc->provs_id[i], &buffer[18+11*i], 8);
data/tsdecrypt-10.0/camd-newcamd.c:260: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(nc->provs_id[0], &buffer[18+11*i], 8);
data/tsdecrypt-10.0/camd-newcamd.c:310:2:  [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(&buffer[3], c->user, userLen);
data/tsdecrypt-10.0/camd-newcamd.c:311:2:  [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(&buffer[3 + userLen], crPasswd, passLen);
data/tsdecrypt-10.0/camd-newcamd.c:418:2:  [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(cw, c->newcamd.buf + 3, 16);
data/tsdecrypt-10.0/camd.c:58: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 str_addr[INET6_ADDRSTRLEN] = { 0 };
data/tsdecrypt-10.0/camd.c:143: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 cw_dump[16 * 6];
data/tsdecrypt-10.0/camd.c:245:2:  [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(c->data, data, data_len);
data/tsdecrypt-10.0/data.c:63:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(ts->camd.newcamd.hex_des_key, "0102030405060708091011121314");
data/tsdecrypt-10.0/data.h:47: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		ident[512];			/* tsdecrypt ident (set by -i) */
data/tsdecrypt-10.0/data.h:48: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		program[512];		/* What program to exec */
data/tsdecrypt-10.0/data.h:126: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			hex_des_key[DESKEY_LENGTH + 1];
data/tsdecrypt-10.0/data.h:217: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		name[MAX_FILTER_NAME];	// Filter name (default: NO_NAME)
data/tsdecrypt-10.0/filter.c:184: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 tmp_data[MAX_FILTER_LEN * 6], tmp_mask[MAX_FILTER_LEN * 6];
data/tsdecrypt-10.0/libfuncs/asyncdns.c:85:4:  [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 IP[INET_ADDRSTRLEN];
data/tsdecrypt-10.0/libfuncs/cbuf.c:112:2:  [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(b->buffer + b->pos, data, to_copy);
data/tsdecrypt-10.0/libfuncs/http_response.c:25: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 buf[128];
data/tsdecrypt-10.0/libfuncs/http_response.c:65: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 msg[512];
data/tsdecrypt-10.0/libfuncs/io.c:219: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 msg[2048];
data/tsdecrypt-10.0/libfuncs/log.c:89: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 date[64], logline[1024], *msg=NULL;
data/tsdecrypt-10.0/libfuncs/log.c:196: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 msg[1024];
data/tsdecrypt-10.0/libfuncs/log.c:207: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 msg[1024];
data/tsdecrypt-10.0/libfuncs/server.c:26:13:  [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(pidfile,"w");
data/tsdecrypt-10.0/libtsfuncs/cat.c:100:2:  [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(cat->program_info, stream_data, cat->program_info_size);
data/tsdecrypt-10.0/libtsfuncs/cat.c:115:2:  [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(secdata + curpos, cat->program_info, cat->program_info_size);
data/tsdecrypt-10.0/libtsfuncs/descs.c:28:2:  [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(text, input, text_length);
data/tsdecrypt-10.0/libtsfuncs/descs.c:428:6:  [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 lang[4];
data/tsdecrypt-10.0/libtsfuncs/eit.c:156:4:  [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(sinfo->descriptor_data, stream_data, sinfo->descriptor_size);
data/tsdecrypt-10.0/libtsfuncs/eit.c:211:4:  [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(secdata + curpos, stream->descriptor_data, stream->descriptor_size);
data/tsdecrypt-10.0/libtsfuncs/eit_desc.c:20:2:  [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(eit->section_header->packet_data, ts_packets, num_packets * TS_PACKET_SIZE);
data/tsdecrypt-10.0/libtsfuncs/log.c:20: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 msg[1024];
data/tsdecrypt-10.0/libtsfuncs/misc.c:32:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf+(i*3), "%02x\n", d[i]);
data/tsdecrypt-10.0/libtsfuncs/misc.c:34:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf+(i*3), "%02x ", d[i]);
data/tsdecrypt-10.0/libtsfuncs/misc.c:78:2:  [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(dvbtext + 1, text, len);
data/tsdecrypt-10.0/libtsfuncs/nit.c:129:4:  [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(nit->network_info, stream_data - nit->network_info_size, nit->network_info_size);
data/tsdecrypt-10.0/libtsfuncs/nit.c:157:4:  [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(sinfo->descriptor_data, &stream_data[6], sinfo->descriptor_size);
data/tsdecrypt-10.0/libtsfuncs/nit.c:184: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(secdata + curpos, nit->network_info, nit->network_info_size);
data/tsdecrypt-10.0/libtsfuncs/nit.c:212:4:  [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(secdata + curpos, stream->descriptor_data, stream->descriptor_size);
data/tsdecrypt-10.0/libtsfuncs/nit_desc.c:20:2:  [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(nit->section_header->packet_data, ts_packets, num_packets * TS_PACKET_SIZE);
data/tsdecrypt-10.0/libtsfuncs/pat_desc.c:20:2:  [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(pat->section_header->packet_data, ts_packets, num_packets * TS_PACKET_SIZE);
data/tsdecrypt-10.0/libtsfuncs/pes.c:61:2:  [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(pes->pes_data + pes->pes_data_pos, payload, payload_size);
data/tsdecrypt-10.0/libtsfuncs/pmt.c:130:4:  [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(pmt->program_info, stream_data - pmt->program_info_size, pmt->program_info_size);
data/tsdecrypt-10.0/libtsfuncs/pmt.c:153:4:  [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(sinfo->ES_info, &stream_data[5], sinfo->ES_info_size);
data/tsdecrypt-10.0/libtsfuncs/pmt.c:184: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(secdata + curpos, pmt->program_info, pmt->program_info_size);
data/tsdecrypt-10.0/libtsfuncs/pmt.c:203:4:  [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(secdata + curpos, stream->ES_info, stream->ES_info_size);
data/tsdecrypt-10.0/libtsfuncs/sdt.c:144:4:  [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(sinfo->descriptor_data, &section_data[5], sinfo->descriptor_size);
data/tsdecrypt-10.0/libtsfuncs/sdt.c:188:4:  [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(secdata + curpos, stream->descriptor_data, stream->descriptor_size);
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:20:2:  [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(sdt->section_header->packet_data, ts_packets, num_packets * TS_PACKET_SIZE);
data/tsdecrypt-10.0/libtsfuncs/secdata.c:67:2:  [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(section_data, src->section_data, 4096);
data/tsdecrypt-10.0/libtsfuncs/secdata.c:68:2:  [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(packet_data , src->packet_data, 5120);
data/tsdecrypt-10.0/libtsfuncs/secdata.c:129: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(curpacket + dataofs, section_data + sect_pos, copied);	// Fill the data
data/tsdecrypt-10.0/libtsfuncs/secdata.c:154:2:  [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(sec->section_data + sec->section_pos, ts_packet + payload_offset, to_copy);
data/tsdecrypt-10.0/libtsfuncs/secdata.c:155:2:  [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(sec->packet_data + (sec->num_packets * TS_PACKET_SIZE), ts_packet, TS_PACKET_SIZE);
data/tsdecrypt-10.0/libtsfuncs/tdt.c:114:4:  [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(tdt->descriptors, data, tdt->descriptors_size);
data/tsdecrypt-10.0/libtsfuncs/tdt.c:144:4:  [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(secdata + curpos, tdt->descriptors, tdt->descriptors_size);
data/tsdecrypt-10.0/libtsfuncs/tdt_desc.c:21:2:  [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(tdt->section_header->packet_data, ts_packets, num_packets * TS_PACKET_SIZE);
data/tsdecrypt-10.0/notify.c:36: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	ident[512];
data/tsdecrypt-10.0/notify.c:37: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	program[512];
data/tsdecrypt-10.0/notify.c:38: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	msg_id[512];
data/tsdecrypt-10.0/notify.c:39: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	text[512];
data/tsdecrypt-10.0/notify.c:161: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 msg_text[MAX_MSG_TEXT];
data/tsdecrypt-10.0/notify.c:173: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 msg_text[MAX_MSG_TEXT];
data/tsdecrypt-10.0/process.c:69: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 pdump[188 * 6];
data/tsdecrypt-10.0/process.c:70: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 cw1_dump[8 * 6];
data/tsdecrypt-10.0/process.c:71: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 cw2_dump[8 * 6];
data/tsdecrypt-10.0/process.c:388: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(p->data, ts_packet, 188);
data/tsdecrypt-10.0/tables.c:278: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 dump[dump_buf_sz];
data/tsdecrypt-10.0/tables.c:317: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 dump[dump_buf_sz];
data/tsdecrypt-10.0/tsdecrypt.c:59: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 date[64];
data/tsdecrypt-10.0/tsdecrypt.c:292:12:  [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).
		io->fd = open(io->fname, open_flags, open_mode);
data/tsdecrypt-10.0/tsdecrypt.c:336:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ts->syslog_port = atoi(optarg);
data/tsdecrypt-10.0/tsdecrypt.c:376:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					ts->output.v6_if_index = atoi(optarg);
data/tsdecrypt-10.0/tsdecrypt.c:379:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ts->output.ttl = atoi(optarg);
data/tsdecrypt-10.0/tsdecrypt.c:477: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(key + 8, key, 8);
data/tsdecrypt-10.0/tsdecrypt.c:586:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ts->debug_level = atoi(optarg);
data/tsdecrypt-10.0/tsdecrypt.c:683:14:  [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).
		log_file = fopen(log_filename, "a");
data/tsdecrypt-10.0/tsdecrypt.c:716: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 cw_even[64], cw_odd[64];
data/tsdecrypt-10.0/tsdecrypt.c:736:25:  [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).
		ts->input_dump_file = fopen(ts->input_dump_filename, "w");
data/tsdecrypt-10.0/tsdecrypt.c:817:4:  [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 tmp[512];
data/tsdecrypt-10.0/tsdecrypt.c:1030: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(rtp_hdr[rtp_hdr_pos], ts_packet, RTP_HDR_SZ);
data/tsdecrypt-10.0/udp.c:75: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(addr, res->ai_addr, res->ai_addrlen);
data/tsdecrypt-10.0/udp.c:81: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(addr, res->ai_addr, res->ai_addrlen);
data/tsdecrypt-10.0/udp.c:86: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 str_addr[INET6_ADDRSTRLEN];
data/tsdecrypt-10.0/udp.c:128: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(&mreq6.ipv6mr_multiaddr, &(((struct sockaddr_in6 *)addr)->sin6_addr), sizeof(struct in6_addr));
data/tsdecrypt-10.0/udp.c:180:6:  [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 str_addr[INET6_ADDRSTRLEN];
data/tsdecrypt-10.0/util.c:244:12:  [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(filename, "r");
data/tsdecrypt-10.0/util.c:326:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(dest, "unknown");
data/tsdecrypt-10.0/camd-cs378x.c:75:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		c->cs378x.auth_token = crc32(0L, MD5((unsigned char *)c->user, strlen(c->user), dump), 16);
data/tsdecrypt-10.0/camd-cs378x.c:77:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		MD5((unsigned char *)c->pass, strlen(c->pass), dump);
data/tsdecrypt-10.0/camd-newcamd.c:303:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int userLen = strlen(c->user) + 1;
data/tsdecrypt-10.0/camd-newcamd.c:304:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int passLen = strlen(crPasswd) + 1;
data/tsdecrypt-10.0/camd.c:139:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(10000);
data/tsdecrypt-10.0/filter.c:56:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int i, len = strlen(data), consumed = 0;
data/tsdecrypt-10.0/libfuncs/asyncdns.c:130:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(DNS_SLEEP);
data/tsdecrypt-10.0/libfuncs/io.c:39:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int i=strlen(x)-1;
data/tsdecrypt-10.0/libfuncs/io.c:49:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		readen = read(fd, buf, len);
data/tsdecrypt-10.0/libfuncs/io.c:215:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return fdwrite(fd, msg, strlen(msg));
data/tsdecrypt-10.0/libfuncs/io.c:224:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return fdwrite(fd, msg, strlen(msg));
data/tsdecrypt-10.0/libfuncs/log.c:132:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (fdwrite(l->log_sock, logline, strlen(logline)) > 0)
data/tsdecrypt-10.0/libfuncs/log.c:174:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(1000);
data/tsdecrypt-10.0/libtsfuncs/eit_desc.c:119:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint8_t event_len = event_name ? strlen(event_name) : 0;
data/tsdecrypt-10.0/libtsfuncs/eit_desc.c:120:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint8_t descr_len = event_short_descr ? strlen(event_short_descr) : 0;
data/tsdecrypt-10.0/libtsfuncs/eit_desc.c:169:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int text_len = strlen(text);
data/tsdecrypt-10.0/libtsfuncs/misc.c:74:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(text);
data/tsdecrypt-10.0/libtsfuncs/nit_desc.c:63:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!network_name || strlen(network_name) > 255)
data/tsdecrypt-10.0/libtsfuncs/nit_desc.c:66:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	nit->network_info_size = strlen(network_name) + 2;
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:101:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	desc_size += 1 + (provider_name ? strlen(provider_name) : 0);
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:102:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	desc_size += 1 + (service_name  ? strlen(service_name)  : 0);
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:113:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	desc[dpos + 3] = (provider_name ? strlen(provider_name) : 0);
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:115:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!provider_name || strlen(provider_name) == 0) {
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:124:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!service_name || strlen(service_name) == 0) {
data/tsdecrypt-10.0/libtsfuncs/sdt_desc.c:127:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		desc[dpos++] = (service_name  ? strlen(service_name)  : 0);
data/tsdecrypt-10.0/notify.c:61:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		r = strlen(shared->msg_id);
data/tsdecrypt-10.0/notify.c:120:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(n->ident, ts->ident, sizeof(n->ident) - 1);
data/tsdecrypt-10.0/notify.c:122:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i=0; i<strlen(n->ident); i++) {
data/tsdecrypt-10.0/notify.c:126:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(n->program, ts->notify_program, sizeof(n->program) - 1);
data/tsdecrypt-10.0/notify.c:133:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(np->program, n->program, sizeof(np->program) - 1);
data/tsdecrypt-10.0/notify.c:134:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(np->ident, n->ident, sizeof(np->ident) - 1);
data/tsdecrypt-10.0/notify.c:148:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(np->msg_id, msg_id, sizeof(np->ident) - 1);
data/tsdecrypt-10.0/notify.c:151:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(np->text, msg_text, sizeof(np->text) - 1);
data/tsdecrypt-10.0/process.c:224:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(1000);
data/tsdecrypt-10.0/process.c:290:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(5000);
data/tsdecrypt-10.0/process.c:382:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
					usleep(10000);
data/tsdecrypt-10.0/process.c:398:8:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
							usleep(10000);
data/tsdecrypt-10.0/tsdecrypt.c:77:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		syslog(LOG_INFO, msg, strlen(msg));
data/tsdecrypt-10.0/tsdecrypt.c:436:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) > 2 && optarg[0] == '0' && optarg[1] == 'x')
data/tsdecrypt-10.0/tsdecrypt.c:438:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) != CODEWORD_LENGTH * 2) {
data/tsdecrypt-10.0/tsdecrypt.c:442:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (decode_hex_string(optarg, ts->camd.key->cw, strlen(optarg)) < 0) {
data/tsdecrypt-10.0/tsdecrypt.c:451:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) > 2 && optarg[0] == '0' && optarg[1] == 'x')
data/tsdecrypt-10.0/tsdecrypt.c:456:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) == (BISSKEY_LENGTH + 2) * 2) {
data/tsdecrypt-10.0/tsdecrypt.c:457:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (decode_hex_string(optarg, key, strlen(optarg)) < 0) {
data/tsdecrypt-10.0/tsdecrypt.c:463:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (strlen(optarg) != BISSKEY_LENGTH * 2) {
data/tsdecrypt-10.0/tsdecrypt.c:467:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (decode_hex_string(optarg, key, strlen(optarg)) < 0) {
data/tsdecrypt-10.0/tsdecrypt.c:496:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) < 64)
data/tsdecrypt-10.0/tsdecrypt.c:503:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) > 2 && optarg[0] == '0' && optarg[1] == 'x')
data/tsdecrypt-10.0/tsdecrypt.c:505:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(optarg) != DESKEY_LENGTH) {
data/tsdecrypt-10.0/tsdecrypt.c:509:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ts->camd.newcamd.hex_des_key, optarg, sizeof(ts->camd.newcamd.hex_des_key) - 1);
data/tsdecrypt-10.0/tsdecrypt.c:845:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(ts->ident);
data/tsdecrypt-10.0/tsdecrypt.c:1065:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			readen = read(ts.input.fd, ts_packet, FRAME_SIZE);
data/tsdecrypt-10.0/util.c:207:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getc(stream)) != EOF) {
data/tsdecrypt-10.0/util.c:286:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(input) == 0)

ANALYSIS SUMMARY:

Hits = 216
Lines analyzed = 18545 in approximately 0.55 seconds (33570 lines/second)
Physical Source Lines of Code (SLOC) = 14373
Hits@level = [0] 309 [1]  54 [2] 147 [3]   2 [4]  13 [5]   0
Hits@level+ = [0+] 525 [1+] 216 [2+] 162 [3+]  15 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 36.5268 [1+] 15.0282 [2+] 11.2711 [3+] 1.04362 [4+] 0.904474 [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.