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/fswebcam-20140113/dec_yuv.c
Examining data/fswebcam-20140113/src_test.c
Examining data/fswebcam-20140113/src.c
Examining data/fswebcam-20140113/dec_png.c
Examining data/fswebcam-20140113/src.h
Examining data/fswebcam-20140113/dec_bayer.c
Examining data/fswebcam-20140113/parse.c
Examining data/fswebcam-20140113/videodev.h
Examining data/fswebcam-20140113/src_raw.c
Examining data/fswebcam-20140113/fswebcam.c
Examining data/fswebcam-20140113/dec_grey.c
Examining data/fswebcam-20140113/fswebcam.h
Examining data/fswebcam-20140113/effects.c
Examining data/fswebcam-20140113/parse.h
Examining data/fswebcam-20140113/dec_s561.c
Examining data/fswebcam-20140113/log.c
Examining data/fswebcam-20140113/dec_jpeg.c
Examining data/fswebcam-20140113/src_file.c
Examining data/fswebcam-20140113/dec.h
Examining data/fswebcam-20140113/videodev2.h
Examining data/fswebcam-20140113/effects.h
Examining data/fswebcam-20140113/log.h
Examining data/fswebcam-20140113/dec_rgb.c
Examining data/fswebcam-20140113/src_v4l1.c
Examining data/fswebcam-20140113/src_v4l2.c
Examining data/fswebcam-20140113/videodev_mjpeg.h

FINAL RESULTS:

data/fswebcam-20140113/fswebcam.c:526:6:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	p = popen(cmdline, "r");
data/fswebcam-20140113/log.c:111:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		n = vsnprintf(p, size, fmt, apc);
data/fswebcam-20140113/fswebcam.c:1302:6:  [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.
	c = getopt_long(argc, argv, s->opts, s->long_opts, &s->opt_index);
data/fswebcam-20140113/dec_jpeg.c:105: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  = *dst), src, i - src);
data/fswebcam-20140113/dec_jpeg.c:106: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 += i - src), dht, sizeof(dht));
data/fswebcam-20140113/dec_jpeg.c:107: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 += sizeof(dht)), i, lsrc - (i - src));
data/fswebcam-20140113/dec_s561.c:749: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(outbuf + xwidth * 2 + 3, inbuf + 0x14, width);
data/fswebcam-20140113/dec_s561.c:750: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(outbuf + xwidth * 3 + 3, inbuf + 0x14 + width, width);
data/fswebcam-20140113/dec_s561.c:890:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char tmpimg[650 * 490];
data/fswebcam-20140113/effects.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char d[32];
data/fswebcam-20140113/effects.c:118: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 arg[32];
data/fswebcam-20140113/effects.c:215: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).
	int angle = atoi(options);
data/fswebcam-20140113/fswebcam.c:327:6:  [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(filename, "rb");
data/fswebcam-20140113/fswebcam.c:352: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 timestamp[200];
data/fswebcam-20140113/fswebcam.c:439: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 filename[FILENAME_MAX];
data/fswebcam-20140113/fswebcam.c:485:32:  [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).
	if(strncmp(name, "-", 2)) f = fopen(filename, "wb");
data/fswebcam-20140113/fswebcam.c:534: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 line[1024];
data/fswebcam-20140113/fswebcam.c:622:8:  [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(config->dumpframe, "wb");
data/fswebcam-20140113/fswebcam.c:939:53:  [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).
			MSG("Setting output format to JPEG, quality %i", atoi(options));
data/fswebcam-20140113/fswebcam.c:941:26:  [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).
			config->compression = atoi(options);
data/fswebcam-20140113/fswebcam.c:945:52:  [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).
			MSG("Setting output format to PNG, quality %i", atoi(options));
data/fswebcam-20140113/fswebcam.c:947:26:  [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).
			config->compression = atoi(options);
data/fswebcam-20140113/fswebcam.c:1037:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fpid = fopen(config->pidfile, "wt");
data/fswebcam-20140113/fswebcam.c:1223: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 line[1024];
data/fswebcam-20140113/fswebcam.c:1429:10:  [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).
			s.f = fopen(optarg, "rt");
data/fswebcam-20140113/fswebcam.c:1451:19:  [2] (integer) atol:
  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).
			config->loop = atol(optarg);
data/fswebcam-20140113/fswebcam.c:1454:21:  [2] (integer) atol:
  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).
			config->offset = atol(optarg);
data/fswebcam-20140113/fswebcam.c:1479: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).
			config->tuner = atoi(optarg);
data/fswebcam-20140113/fswebcam.c:1488: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).
			config->delay = atoi(optarg);
data/fswebcam-20140113/fswebcam.c:1495: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).
			config->fps = atoi(optarg);
data/fswebcam-20140113/fswebcam.c:1498: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).
			config->frames = atoi(optarg);
data/fswebcam-20140113/fswebcam.c:1501:25:  [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).
			config->skipframes = atoi(optarg);
data/fswebcam-20140113/fswebcam.c:1619: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 timestamp[32];
data/fswebcam-20140113/log.c:53:7:  [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).
	fd = open(f, O_CREAT | O_WRONLY | O_APPEND | O_SYNC,
data/fswebcam-20140113/parse.c:198:11:  [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).
		int i = atoi(p + 1);
data/fswebcam-20140113/src.c:114:28:  [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).
			i = src_mod[src->type]->open(src);
data/fswebcam-20140113/src.c:152:28:  [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).
			r = src_mod[src->type]->open(src);
data/fswebcam-20140113/src.h:109:8:  [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).
	int (*open)(src_t *);
data/fswebcam-20140113/src_file.c:160: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).
	s->f = fopen(src->source, "rb");
data/fswebcam-20140113/src_raw.c:95:10:  [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).
	s->fd = open(src->source, O_RDONLY);
data/fswebcam-20140113/src_v4l1.c:382: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 t[64];
data/fswebcam-20140113/src_v4l1.c:417:52:  [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).
		vp.brightness = SCALE(0x0000, 0xFFFF, -100, 100, atoi(value));
data/fswebcam-20140113/src_v4l1.c:420:52:  [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).
		vp.hue        = SCALE(0x0000, 0xFFFF, -100, 100, atoi(value));
data/fswebcam-20140113/src_v4l1.c:423:52:  [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).
		vp.colour     = SCALE(0x0000, 0xFFFF, -100, 100, atoi(value));
data/fswebcam-20140113/src_v4l1.c:426:52:  [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).
		vp.contrast   = SCALE(0x0000, 0xFFFF, -100, 100, atoi(value));
data/fswebcam-20140113/src_v4l1.c:429:52:  [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).
		vp.whiteness  = SCALE(0x0000, 0xFFFF, -100, 100, atoi(value));
data/fswebcam-20140113/src_v4l1.c:725:10:  [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).
	s->fd = open(src->source, O_RDWR | O_NONBLOCK);
data/fswebcam-20140113/src_v4l2.c:392: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).
		iv = atoi(sv);
data/fswebcam-20140113/src_v4l2.c:810:10:  [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).
	s->fd = open(src->source, O_RDWR | O_NONBLOCK);
data/fswebcam-20140113/videodev.h:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/fswebcam-20140113/videodev.h:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/fswebcam-20140113/videodev.h:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/fswebcam-20140113/videodev.h:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    name[16];
data/fswebcam-20140113/videodev.h:242: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	loadwhat[16];	/* name or tag of file being passed */
data/fswebcam-20140113/videodev2.h:468: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 APP_data[60];      /* Data in the JPEG APPn segment. */
data/fswebcam-20140113/videodev2.h:471: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 COM_data[60];      /* Data in JPEG COM segment */
data/fswebcam-20140113/videodev2.h:1450: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 name[32];
data/fswebcam-20140113/videodev_mjpeg.h:54: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 APP_data[60];	/* Data in the JPEG APPn segment. */
data/fswebcam-20140113/videodev_mjpeg.h:57: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 COM_data[60];	/* Data in JPEG COM segment */
data/fswebcam-20140113/videodev_mjpeg.h:81: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 reserved[312];	/* Makes 512 bytes for this structure */
data/fswebcam-20140113/effects.c:345:5:  [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(options) != 2)
data/fswebcam-20140113/fswebcam.c:254: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(src) * 2;
data/fswebcam-20140113/fswebcam.c:1017:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/fswebcam-20140113/fswebcam.c:1638: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(250000);
data/fswebcam-20140113/log.c:193: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).
	if(!use_syslog) write(fd_log, o, strlen(o));
data/fswebcam-20140113/parse.c:193: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(src);
data/fswebcam-20140113/parse.c:211:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(*font, src, l);
data/fswebcam-20140113/parse.c:222:43:  [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).
	while(*str != '\0' && strspn(str, ws) != strlen(str))
data/fswebcam-20140113/src.c:84:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sl = strlen(source) + 1;
data/fswebcam-20140113/src_raw.c:132:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int r = read(s->fd, s->img, i);
data/fswebcam-20140113/src_v4l1.c:778: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(src->delay * 1000 * 1000);
data/fswebcam-20140113/src_v4l1.c:929:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t r = read(s->fd, s->buffer, s->buffer_length);
data/fswebcam-20140113/src_v4l2.c:338:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(t, (char *) querymenu.name, 32);
data/fswebcam-20140113/src_v4l2.c:339:32:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
				if(m < queryctrl->maximum) strncat(t, " | ", 3);
data/fswebcam-20140113/src_v4l2.c:852: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(src->delay * 1000 * 1000);
data/fswebcam-20140113/src_v4l2.c:957:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(s->fd, s->buffer[0].start, s->buffer[0].length);

ANALYSIS SUMMARY:

Hits = 76
Lines analyzed = 9199 in approximately 0.26 seconds (35959 lines/second)
Physical Source Lines of Code (SLOC) = 6893
Hits@level = [0]  13 [1]  16 [2]  57 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  89 [1+]  76 [2+]  60 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 12.9116 [1+] 11.0257 [2+] 8.70448 [3+] 0.435224 [4+] 0.290149 [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.