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/dvbstream-0.6+cvs20090621/ts_filter.c
Examining data/dvbstream-0.6+cvs20090621/rtp.c
Examining data/dvbstream-0.6+cvs20090621/dumprtp.c
Examining data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c
Examining data/dvbstream-0.6+cvs20090621/mpegtools/remux.c
Examining data/dvbstream-0.6+cvs20090621/mpegtools/transform.h
Examining data/dvbstream-0.6+cvs20090621/mpegtools/remux.h
Examining data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.h
Examining data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c
Examining data/dvbstream-0.6+cvs20090621/mpegtools/ctools.h
Examining data/dvbstream-0.6+cvs20090621/mpegtools/transform.c
Examining data/dvbstream-0.6+cvs20090621/server.c
Examining data/dvbstream-0.6+cvs20090621/tune.h
Examining data/dvbstream-0.6+cvs20090621/rtp.h
Examining data/dvbstream-0.6+cvs20090621/rtpfeed.c
Examining data/dvbstream-0.6+cvs20090621/dvb_defaults.h
Examining data/dvbstream-0.6+cvs20090621/tune.c
Examining data/dvbstream-0.6+cvs20090621/dvbstream.c

FINAL RESULTS:

data/dvbstream-0.6+cvs20090621/dvbstream.c:1017:9:  [4] (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).
        strcpy(ipOut,argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1277:6:  [4] (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).
	    strcpy(fname, &argv[i][3]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1338:14:  [4] (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).
             strcpy(map->prognames[map->prognames_cnt-1], argv[i]);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2083:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(new_name,"%s-%03d.%s",base_name,i,ext);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2096:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(new_name,"%s-%03d.%s",base_name,i,ext);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2164:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(new_name,"%s-1.%s",base_name,ext);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2177:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(new_name,"%s-2.%s",base_name,ext);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2295:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat (req, sptr);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2296:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf (req + strlen(req),
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2300:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(req + strlen(req),
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2305:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat (req, ACCEPT);
data/dvbstream-0.6+cvs20090621/rtpfeed.c:113: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((c = getopt_long(argc, argv, "g:p:v:a:h",long_options, &option_index))!=-1)
data/dvbstream-0.6+cvs20090621/dumprtp.c:68:12:  [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).
    port = atoi(argv[2]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:120:24:  [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).
    if((*fd_frontend = open(frontenddev[card],O_RDWR | O_NONBLOCK)) < 0){
data/dvbstream-0.6+cvs20090621/dvbstream.c:186: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 hi_mappids[8192];
data/dvbstream-0.6+cvs20090621/dvbstream.c:187: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 lo_mappids[8192];
data/dvbstream-0.6+cvs20090621/dvbstream.c:192: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 hostname[64];
data/dvbstream-0.6+cvs20090621/dvbstream.c:214: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 cmd[1024];
data/dvbstream-0.6+cvs20090621/dvbstream.c:276:20:  [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).
              pid2=atoi(&ch[1]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:281:17:  [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).
            pid=atoi(&cmd[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:296:33:  [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).
                if((fd[npids] = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){
data/dvbstream-0.6+cvs20090621/dvbstream.c:326:18:  [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).
            freq=atoi(&cmd[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:334: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).
                srate=atoi(&cmd[i])*1000UL;
data/dvbstream-0.6+cvs20090621/dvbstream.c:366: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(&out_buffer[out_buffer_n],buf,count);
data/dvbstream-0.6+cvs20090621/dvbstream.c:440: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 buf[MTU];
data/dvbstream-0.6+cvs20090621/dvbstream.c:441: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 net[20];
data/dvbstream-0.6+cvs20090621/dvbstream.c:591: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(&(section->buf[section->pos]), buf, len);
data/dvbstream-0.6+cvs20090621/dvbstream.c:678:20:  [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).
    if((SI_fd[i] = open(demuxdev[card], O_RDWR|O_NONBLOCK)) < 0)
data/dvbstream-0.6+cvs20090621/dvbstream.c:802:11:  [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->name, &buf[n+1], name_len);
data/dvbstream-0.6+cvs20090621/dvbstream.c:910: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 ipOut[20];
data/dvbstream-0.6+cvs20090621/dvbstream.c:941:3:  [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(ipOut,"224.0.1.2");
data/dvbstream-0.6+cvs20090621/dvbstream.c:1033:17:  [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).
        portOut=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1042: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 addr[20];
data/dvbstream-0.6+cvs20090621/dvbstream.c:1048:21:  [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).
	  port = portOut = atoi(tmp+1);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1073:14:  [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).
        freq=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1085:14:  [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).
        SLOF=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1089:14:  [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).
        LOF1=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1093:14:  [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).
        LOF2=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1098:15:  [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).
        srate=atoi(argv[i])*1000UL;
data/dvbstream-0.6+cvs20090621/dvbstream.c:1117:13:  [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).
        if (atoi(argv[i])==0)
data/dvbstream-0.6+cvs20090621/dvbstream.c:1119:18:  [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).
        else if (atoi(argv[i])==1)
data/dvbstream-0.6+cvs20090621/dvbstream.c:1134:14:  [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).
        secs=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1137:14:  [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).
        card=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1149:16:  [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).
        switch(atoi(argv[i])) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1163:16:  [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).
        switch(atoi(argv[i])) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1174:16:  [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).
        switch(atoi(argv[i])) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1185:16:  [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).
        switch(atoi(argv[i])) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1194:16:  [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).
        switch(atoi(argv[i])) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1254:8:  [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).
	ttl = atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1258:42:  [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).
          pids_map[map_cnt-1].start_time=atoi(argv[i])*60;
data/dvbstream-0.6+cvs20090621/dvbstream.c:1260: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).
          start_time=atoi(argv[i])*60;
data/dvbstream-0.6+cvs20090621/dvbstream.c:1265:40:  [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).
          pids_map[map_cnt-1].end_time=atoi(argv[i])*60;
data/dvbstream-0.6+cvs20090621/dvbstream.c:1267:20:  [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).
          end_time=atoi(argv[i])*60;
data/dvbstream-0.6+cvs20090621/dvbstream.c:1273:13:  [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.
	  fname = (char *) malloc(strlen(argv[i]) - 2);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1294:16:  [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).
          pid2=atoi(&ch[1]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1299:13:  [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).
        pid=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1385:9:  [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).
    f = fopen(pids_map[i].filename, "w+b");
data/dvbstream-0.6+cvs20090621/dvbstream.c:1442:17:  [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).
    if((fd[i] = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){
data/dvbstream-0.6+cvs20090621/dvbstream.c:1449:16:  [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).
  if((fd_dvr = open(dvrdev[card],O_RDONLY|O_NONBLOCK)) < 0){
data/dvbstream-0.6+cvs20090621/dvbstream.c:1591: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(&(pids_map[i].buf[pids_map[i].pos]), buf, bytes_read);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:135: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(buf,headr,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:152: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(buf+count,p->pes_pckt_data,p->length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:171: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(buf+count,&p->flags1,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:173: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(buf+count,&p->flags2,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:175: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(buf+count,&p->pes_hlength,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:179: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+count,p->pts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:183: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(buf+count,p->pts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:185: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(buf+count,p->dts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:189: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+count,p->escr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:193: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+count,p->es_rate,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:197: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+count,&p->trick,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:201: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+count,&p->add_cpy,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:205: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+count,p->prev_pes_crc,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:209: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+count,&p->priv_flags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:213: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(buf+count,p->pes_priv_data,16);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:217: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(buf+count,&p->pack_field_length,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:220: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(buf+count,p->pack_header,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:227: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(buf+count,&p->pck_sqnc_cntr,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:229: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(buf+count,&p->org_stuff_length,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:235: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(buf+count,p->p_std,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:239: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(buf+count,&p->pes_ext_lngth,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:241: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(buf+count,p->pes_ext,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:248: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+count,&dummy,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:253: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+count,p->mpeg1_headr,p->mpeg1_pad);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:257: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+count,p->pts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:262: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+count,p->pts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:264: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+count,p->dts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:268: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(buf+count,p->pes_pckt_data,p->length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:345: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(p->pes_pckt_data,buf+c,p->length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:350: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(p->pes_pckt_data,buf+c,p->length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:365: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(&p->flags1,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:371: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(&p->flags2,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:373: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(&p->pes_hlength,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:380: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(p->pts,buf+c,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:385: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->pts,buf+c,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:387: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->dts,buf+c,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:393: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(p->escr,buf+c,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:399: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(p->es_rate,buf+c,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:405: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(&p->trick,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:411: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(&p->add_cpy,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:417: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(p->prev_pes_crc,buf+c,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:423: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(&p->priv_flags,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:428: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->pes_priv_data,buf+c,16);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:434: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->pack_field_length,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:438: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->pack_header,buf+c,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:445: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->pck_sqnc_cntr,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:447: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->org_stuff_length,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:453: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->p_std,buf+c,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:459: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->pes_ext_lngth,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:463: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->pes_ext,buf+c,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:471: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(&dummy,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:478: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(&check,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:484: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(&check,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:487: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(&check,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:505: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->mpeg1_headr,buf+c,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:512: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->pts,buf+c,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:519: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->pts,buf+c,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:521: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->dts,buf+c,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:529: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(p->mpeg1_headr,buf+c,
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:534: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(p->pes_pckt_data,buf+c,p->length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:634: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(buf,&sync,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:636: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(buf+count,p->pid,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:638: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(buf+count,&p->flags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:643: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(buf+count,p->data,184);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:646: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(buf+count,&p->adapt_length,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:648: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(buf+count,&p->adapt_flags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:652: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(buf+count, p->pcr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:656: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(buf+count, p->opcr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:660: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(buf+count, &p->splice_count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:664: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(buf+count,&p->priv_dat_len,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:666: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(buf+count,p->priv_dat,p->priv_dat_len);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:671: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(buf+count,&p->adapt_ext_len,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:673: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(buf+count,&p->adapt_eflags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:677: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+count,p->ltw,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:681: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+count,p->piece_rate,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:685: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+count,p->dts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:691: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(buf+count,&dummy,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:695: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(buf+count,p->data,p->rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:793: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(p->pid,buf+count,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:801: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(p->data,buf+count,184);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:811: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(&p->adapt_flags,buf+count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:815: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( p->pcr,buf+count,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:819: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( p->opcr,buf+count,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:823: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( &p->splice_count,buf+count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:827: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(&p->priv_dat_len,buf+count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:830: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(p->priv_dat,buf+count,p->priv_dat_len);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:835: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(&p->adapt_ext_len,buf+count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:837: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(&p->adapt_eflags,buf+count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:840: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->ltw,buf+count,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:844: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->piece_rate,buf+count,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:848: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->dts,buf+count,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:857: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(p->data,buf+count,p->rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:975: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(buf,headr1,4);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:978: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(buf+count,p->scr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:980: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(buf+count,p->mux_rate,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:982: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(buf+count,&p->stuff_length,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:985: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(buf+count,&buffy,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:989: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(buf+count,p->scr,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:991: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(buf+count,p->mux_rate,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:995: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(buf+count,headr2,4);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:997: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(buf+count,p->sheader_llength,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1000: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(buf+count,p->rate_bound,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1002: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(buf+count,&p->audio_bound,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1004: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(buf+count,&p->video_bound,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1006: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(buf+count,&p->reserved,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1009: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(buf+count,p->data,p->sheader_length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1128: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(p->scr,buf+c,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1136: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(p->mux_rate,buf+c,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1138: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(&p->stuff_length,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1144: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(p->mux_rate+1,buf+c,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1153: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(p->sheader_llength,buf+c,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1157: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->rate_bound,buf+c,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1159: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->audio_bound,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1161: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->video_bound,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1163: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->reserved,buf+c,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1166: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(p->data,buf+c,p->sheader_length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1381: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(p->transbuf+c,buf,count);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1674: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->pes+p->pos,buf+c,TS_SIZE-4-p->pos);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1694: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(p->pes+p->pos,buf,l);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1720: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(p->pes,buf+c+l,rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1763: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(obuf+l, buf+c, TS_SIZE-l);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1768: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(obuf+l, buf+c, TS_SIZE-l);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1892: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(path, "./");
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2029: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 base_name[MAX_BASE];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2030: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 path[MAX_PATH];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2031: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 ext[MAX_EXT];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2032: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 new_name[256];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2045:15:  [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).
	if ( (fdin = open(name, O_RDONLY|O_LARGEFILE)) < 0){
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2086:17:  [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).
		if ( (fdout = open(new_name,O_WRONLY|O_CREAT|O_TRUNC
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2099:16:  [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).
	if ( (fdout = open(new_name,O_WRONLY|O_CREAT|O_TRUNC
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2114: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 base_name[MAX_BASE];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2115: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 path[MAX_PATH];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2116: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 ext[MAX_EXT];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2117: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 new_name[256];
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2129:15:  [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).
	if ( (fdin = open(name, O_RDONLY|O_LARGEFILE)) < 0){
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2167:16:  [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).
	if ( (fdout = open(new_name,O_WRONLY|O_CREAT|O_TRUNC
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2180:16:  [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).
	if ( (fdout = open(new_name,O_WRONLY|O_CREAT|O_TRUNC
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2266:10:  [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).
	*port = atoi(++murl);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2277: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 purl[1024], *host, req[1024], *sptr;
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2290:3:  [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 (req, "GET ");
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2306:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (req, "\r\n");
data/dvbstream-0.6+cvs20090621/mpegtools/remux.c:10:1:  [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 *frames[3] = {"I-Frame","P-Frame","B-Frame"};
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:62: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 (rbuf->buffy+pos, data, rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:64: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 (rbuf->buffy, data+rest, count - rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:67: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 (rbuf->buffy+pos, data, count);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:92: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(data, rbuf->buffy+pos, count);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:94: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(data, rbuf->buffy+pos, rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:96: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(data+rest, rbuf->buffy, count - rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:117: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(data, rbuf->buffy+pos, count);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:120: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(data, rbuf->buffy+pos, rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:122: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(data+rest, rbuf->buffy, count - rest);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:145:9:  [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,tshead,4);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:183: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(obuf+c,headr,3);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:185: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(obuf+c,&id,1);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:194: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(obuf+c,le,2);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:210: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(obuf+c,dummy,3);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:215: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(obuf+c,ppts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:267: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(p->buf+4,(char *)&p->bigend_repack,2);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:276: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(buf+4,(char *)&p->bigend_repack,2);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:282: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(p->buf+4,(char *)&p->bigend_repack,2);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:287: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(buf,p->buf,9+p->hlength);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:298: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(buf+9,p->buf+count,repack-3);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:318: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+9+bfill+diff,p->buf+count,rest);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:323: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+9+bfill,p->buf+count,rest);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:335: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(p->buf+4,(char *)&p->bigend_repack,2);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:340: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(buf,p->buf,6+p->hlength);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:349: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(buf+7,p->buf+count,repack-1);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:367: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+7+diff,p->buf+count,rest+bfill);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:374: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(buf+7,p->buf+count,rest);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:377: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(buf+6,p->buf+count,rest+bfill);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:572: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(obuf+l, p->buf+c, TS_SIZE-l);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:577: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(obuf+l, p->buf+c, TS_SIZE-l);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:731: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(buf,mbuf+i,TS_SIZE-i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:734: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(buf+TS_SIZE-i,mbuf,i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:819: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(buf,mbuf+i,TS_SIZE-i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:821: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(buf+TS_SIZE-i,mbuf,i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:977: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(p->buf, headr, 3);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:979: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(p->buf+4,p->plen,2);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1097: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->buf+p->found, buf+c, l);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1611: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(p->last_pts, p->pts, 5);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1613: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(p->buf+p->count, headr, 3);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1624: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(p->buf+p->count, data, count); 
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1629: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(p->buf+p->count, data, rest);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1974: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(buf,mbuf+i,TS_SIZE-i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1977: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(buf+TS_SIZE-i,mbuf,i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:2087: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(buf,mbuf+i,TS_SIZE-i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:2090: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(buf+TS_SIZE-i,mbuf,i);
data/dvbstream-0.6+cvs20090621/rtp.c:83: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.
  static char buf[1600];
data/dvbstream-0.6+cvs20090621/rtp.c:106: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(charP+2,&buf[2],2);
data/dvbstream-0.6+cvs20090621/rtp.c:109: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(charP,&buf[4],4);
data/dvbstream-0.6+cvs20090621/rtp.c:140: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(&buf[2],charP+2,2);
data/dvbstream-0.6+cvs20090621/rtp.c:142: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(&buf[4],&intP,4);
data/dvbstream-0.6+cvs20090621/rtp.c:149: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(buf+headerSize,data,len);
data/dvbstream-0.6+cvs20090621/rtp.c:163: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.
  static char buf[1600];
data/dvbstream-0.6+cvs20090621/rtpfeed.c:121:14:  [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).
      port = atoi(optarg);
data/dvbstream-0.6+cvs20090621/rtpfeed.c:124:14:  [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).
      vpid = atoi(optarg);
data/dvbstream-0.6+cvs20090621/rtpfeed.c:127:14:  [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).
      apid = atoi(optarg);
data/dvbstream-0.6+cvs20090621/rtpfeed.c:137:16:  [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).
  if((fd_dvr = open("/dev/ost/dvr",O_WRONLY)) < 0){
data/dvbstream-0.6+cvs20090621/rtpfeed.c:144:15:  [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).
    if((fdv = open("/dev/ost/demux",O_RDWR|O_NONBLOCK)) < 0){
data/dvbstream-0.6+cvs20090621/rtpfeed.c:154:15:  [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).
    if((fda = open("/dev/ost/demux",O_RDWR|O_NONBLOCK)) < 0){
data/dvbstream-0.6+cvs20090621/server.c:15:1:  [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 *strs[NSTRS] = {
data/dvbstream-0.6+cvs20090621/server.c:29: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 hostname[64];
data/dvbstream-0.6+cvs20090621/server.c:67:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(hp->h_addr, &sin.sin_addr, hp->h_length);
data/dvbstream-0.6+cvs20090621/ts_filter.c:17: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 buf[188];
data/dvbstream-0.6+cvs20090621/ts_filter.c:18: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 my_cc[8192];
data/dvbstream-0.6+cvs20090621/ts_filter.c:24:9:  [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).
    pid=atoi(argv[i]);
data/dvbstream-0.6+cvs20090621/dvbstream.c:72: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).
#define writes(f,x) write((f),(x),strlen(x))
data/dvbstream-0.6+cvs20090621/dvbstream.c:239:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while (read(ns,&in_ch,1)>0) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:873: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).
  len = strlen(s);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1044:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(ipOut, argv[i], len);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1046:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(addr, argv[i], len);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1060:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(pids_map[map_cnt-1].net, addr, len);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1271: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).
        if (strlen(argv[i]) > 3) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1273:28:  [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).
	  fname = (char *) malloc(strlen(argv[i]) - 2);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1337:60:  [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).
             map->prognames[map->prognames_cnt-1] = malloc(strlen(argv[i])+1);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1540:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((bytes_read = read(fd_dvr,free_bytes,PACKET_SIZE)) > 0) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1564:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       if (read(fd_dvr,buf,TS_SIZE) > 0) {
data/dvbstream-0.6+cvs20090621/dvbstream.c:1569:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       bytes_read = read(fd_dvr, buf, TS_SIZE);
data/dvbstream-0.6+cvs20090621/dvbstream.c:1605:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(fd_dvr,buf,TS_SIZE) > 0) {
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:300:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,&sync4,4);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:549:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((neof = read(f,&sync4,4)) < 4) return -1;
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:565:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if((neof = read(f,p->llength,2)) < 2)
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:586:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if((neof = read(f,buf,p->length))< p->length) return -1;
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:720:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,&sync,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:724:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	neof = read(f,p->pid,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:725:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	neof = read(f,&p->flags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:730:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,p->data,184);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:737:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,&p->adapt_length,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:739:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,&p->adapt_flags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:742:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f, p->pcr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:745:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f, p->opcr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:748:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f, &p->splice_count,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:751:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,&p->priv_dat_len,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:753:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,p->priv_dat,p->priv_dat_len);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:757:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,&p->adapt_ext_len,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:758:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,&p->adapt_eflags,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:760:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,p->ltw,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:763:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,p->piece_rate,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:766:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,p->dts,5);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:773:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,p->data,p->rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1036:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,&headr,4);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1048:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,p->scr,6);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1055:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,p->mux_rate,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1056:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,&p->stuff_length,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1061:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,p->mux_rate+1,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1065:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		neof = read(f,headr,4);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1068:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,p->sheader_llength,2);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1071:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,p->rate_bound,3);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1072:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,&p->audio_bound,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1073:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,&p->video_bound,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1074:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				neof = read(f,&p->reserved,1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1076:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,p->data,p->sheader_length);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1087:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			neof = read(f,headr,4);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1871: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).
	l = strlen(name);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1880:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(base_name, name+sstart, sstop-sstart);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1884:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(path, name, sstart);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1897:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ext, name+sstop+1, l-sstop-1);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:1905:4:  [1] (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 character.
			strcpy(ext, "");
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2014:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ( count < length && (l = read(fdin,buf,buf_size)) >= 0){
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2064:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fdin, buf, csize);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2077:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(fdin, buf, csize);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2148:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fdin, buf, csize);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2158:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fdin, buf, csize);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2212:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if( read(fd, data+c, 1) == 1) {
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2285:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (purl, url, 1023);
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2296:18:  [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).
		sprintf (req + strlen(req),
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2300:18:  [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).
			sprintf(req + strlen(req),
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2323: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).
		write_all (sock, req, strlen(req));
data/dvbstream-0.6+cvs20090621/mpegtools/ctools.c:2346:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy (purl, req+10, 1023);
data/dvbstream-0.6+cvs20090621/mpegtools/remux.c:1034:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t    read;
data/dvbstream-0.6+cvs20090621/mpegtools/remux.c:1172:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,buf,SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:146:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rr = read (fd, rbuf->buffy+pos, rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:148:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rr += read (fd, rbuf->buffy, count - rest);
data/dvbstream-0.6+cvs20090621/mpegtools/ringbuffy.c:152:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rr = read (fd, rbuf->buffy+pos, count);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:417:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			count = read(fdin,buf,SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:517:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,buf,SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:613:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,buf,SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:640:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                count = read(fd, buf, IN_SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:721:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 	if ((count = read(fdin,mbuf,TS_SIZE))<0)
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:732:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((count = read(fdin,mbuf,i))<0)
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:739:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((count = read(fdin,buf+i,IN_SIZE-i))<0)
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:811:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 	count = read(fdin,mbuf,TS_SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:820:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,mbuf,i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:835:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,buf+i,INN_SIZE-i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1965:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 	count = read(fdin,mbuf,TS_SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1975:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,mbuf,i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:1983:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,buf+i,IN_SIZE-i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:2078:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 	count = read(fdin,mbuf,TS_SIZE);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:2088:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,mbuf,i);
data/dvbstream-0.6+cvs20090621/mpegtools/transform.c:2096:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		count = read(fdin,buf+i,IN_SIZE-i);
data/dvbstream-0.6+cvs20090621/server.c:111:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = fgetc(fp)) != EOF) {
data/dvbstream-0.6+cvs20090621/tune.c:63: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(15 * 1000);
data/dvbstream-0.6+cvs20090621/tune.c:68:5:  [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(cmd->wait * 1000);
data/dvbstream-0.6+cvs20090621/tune.c:69:5:  [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(15 * 1000);
data/dvbstream-0.6+cvs20090621/tune.c:76:5:  [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(15 * 1000);
data/dvbstream-0.6+cvs20090621/tune.c:118:2:  [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(15 * 1000);
data/dvbstream-0.6+cvs20090621/tune.c:150:5:  [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/dvbstream-0.6+cvs20090621/tune.c:286: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(100000);

ANALYSIS SUMMARY:

Hits = 358
Lines analyzed = 9544 in approximately 0.30 seconds (32224 lines/second)
Physical Source Lines of Code (SLOC) = 7615
Hits@level = [0] 278 [1]  92 [2] 254 [3]   1 [4]  11 [5]   0
Hits@level+ = [0+] 636 [1+] 358 [2+] 266 [3+]  12 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 83.5194 [1+] 47.0125 [2+] 34.9311 [3+] 1.57584 [4+] 1.44452 [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.