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/blktrace-1.2.0/act_mask.c
Examining data/blktrace-1.2.0/blkiomon.h
Examining data/blktrace-1.2.0/blkparse.c
Examining data/blktrace-1.2.0/blkparse_fmt.c
Examining data/blktrace-1.2.0/blkrawverify.c
Examining data/blktrace-1.2.0/blktrace.c
Examining data/blktrace-1.2.0/blktrace.h
Examining data/blktrace-1.2.0/blktrace_api.h
Examining data/blktrace-1.2.0/btreplay/btrecord.c
Examining data/blktrace-1.2.0/btreplay/btrecord.h
Examining data/blktrace-1.2.0/btreplay/btreplay.c
Examining data/blktrace-1.2.0/btt/aqd.c
Examining data/blktrace-1.2.0/btt/args.c
Examining data/blktrace-1.2.0/btt/bno_dump.c
Examining data/blktrace-1.2.0/btt/bt_timeline.c
Examining data/blktrace-1.2.0/btt/dip_rb.c
Examining data/blktrace-1.2.0/btt/globals.h
Examining data/blktrace-1.2.0/btt/inlines.h
Examining data/blktrace-1.2.0/btt/iostat.c
Examining data/blktrace-1.2.0/btt/latency.c
Examining data/blktrace-1.2.0/btt/list.h
Examining data/blktrace-1.2.0/btt/misc.c
Examining data/blktrace-1.2.0/btt/mmap.c
Examining data/blktrace-1.2.0/btt/output.c
Examining data/blktrace-1.2.0/btt/p_live.c
Examining data/blktrace-1.2.0/btt/plat.c
Examining data/blktrace-1.2.0/btt/proc.c
Examining data/blktrace-1.2.0/btt/q2d.c
Examining data/blktrace-1.2.0/btt/rstats.c
Examining data/blktrace-1.2.0/btt/seek.c
Examining data/blktrace-1.2.0/btt/trace.c
Examining data/blktrace-1.2.0/btt/trace_complete.c
Examining data/blktrace-1.2.0/btt/trace_im.c
Examining data/blktrace-1.2.0/btt/trace_issue.c
Examining data/blktrace-1.2.0/btt/trace_plug.c
Examining data/blktrace-1.2.0/btt/trace_queue.c
Examining data/blktrace-1.2.0/btt/trace_remap.c
Examining data/blktrace-1.2.0/btt/trace_requeue.c
Examining data/blktrace-1.2.0/btt/unplug_hist.c
Examining data/blktrace-1.2.0/btt/devmap.c
Examining data/blktrace-1.2.0/btt/devs.c
Examining data/blktrace-1.2.0/iowatcher/blkparse.c
Examining data/blktrace-1.2.0/iowatcher/blkparse.h
Examining data/blktrace-1.2.0/iowatcher/fio.c
Examining data/blktrace-1.2.0/iowatcher/fio.h
Examining data/blktrace-1.2.0/iowatcher/list.h
Examining data/blktrace-1.2.0/iowatcher/mpstat.c
Examining data/blktrace-1.2.0/iowatcher/mpstat.h
Examining data/blktrace-1.2.0/iowatcher/plot.c
Examining data/blktrace-1.2.0/iowatcher/plot.h
Examining data/blktrace-1.2.0/iowatcher/tracers.c
Examining data/blktrace-1.2.0/iowatcher/tracers.h
Examining data/blktrace-1.2.0/iowatcher/main.c
Examining data/blktrace-1.2.0/rbtree.c
Examining data/blktrace-1.2.0/rbtree.h
Examining data/blktrace-1.2.0/stats.h
Examining data/blktrace-1.2.0/verify_blkparse.c
Examining data/blktrace-1.2.0/blkiomon.c
Examining data/blktrace-1.2.0/jhash.h

FINAL RESULTS:

data/blktrace-1.2.0/blkparse.c:1802:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(name, "%s (%u, ...)", ppm->comm, ppm->pid);
data/blktrace-1.2.0/blkparse.c:1804:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(name, "%s (%u)", ppm->comm, ppm->pid);
data/blktrace-1.2.0/blkparse.c:2493:3:  [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(pdi->name, basename(p));
data/blktrace-1.2.0/blkparse.c:2498:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		len = sprintf(pci->fname, "%s/", input_dir);
data/blktrace-1.2.0/blkparse_fmt.c:184:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "s"), act);
data/blktrace-1.2.0/blkparse_fmt.c:187:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "d"), pci->cpu);
data/blktrace-1.2.0/blkparse_fmt.c:192:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "s"), name);
data/blktrace-1.2.0/blkparse_fmt.c:199:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "s"), rwbs);
data/blktrace-1.2.0/blkparse_fmt.c:206:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "d"), t->error);
data/blktrace-1.2.0/blkparse_fmt.c:209:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "d"), MAJOR(t->device));
data/blktrace-1.2.0/blkparse_fmt.c:212:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "d"), MINOR(t->device));
data/blktrace-1.2.0/blkparse_fmt.c:215:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "u"), t_sec(t));
data/blktrace-1.2.0/blkparse_fmt.c:218:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "u"), t->bytes);
data/blktrace-1.2.0/blkparse_fmt.c:221:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "u"), t->pid);
data/blktrace-1.2.0/blkparse_fmt.c:230:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "ld"), t->sequence);
data/blktrace-1.2.0/blkparse_fmt.c:233:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "lu"), t->sector);
data/blktrace-1.2.0/blkparse_fmt.c:237:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, format, NANO_SECONDS(t->time));
data/blktrace-1.2.0/blkparse_fmt.c:240:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "d"), SECONDS(t->time));
data/blktrace-1.2.0/blkparse_fmt.c:247:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "llu"), elapsed / 1000);
data/blktrace-1.2.0/blkparse_fmt.c:250:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "u"), get_pdu_int(t));
data/blktrace-1.2.0/blkparse_fmt.c:253:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp, strcat(format, "s"), print_time(t->time));
data/blktrace-1.2.0/blkparse_fmt.c:256:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(ofp,strcat(format, "c"), field);
data/blktrace-1.2.0/blkrawverify.c:91:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "%s ", acts[act].string);
data/blktrace-1.2.0/blkrawverify.c:95:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf2, "| %s ", traces[i].string);
data/blktrace-1.2.0/blkrawverify.c:96:5:  [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(buf, buf2);
data/blktrace-1.2.0/blkrawverify.c:160:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ofname, "%s.verify.out", devname);
data/blktrace-1.2.0/blkrawverify.c:295:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ofname, "%s.verify.out", devname);
data/blktrace-1.2.0/blkrawverify.c:300:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(fname, "%s.blktrace.%d", devname, cpu);
data/blktrace-1.2.0/blktrace.c:2145:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			while (fscanf(ifp, "%s\n", dev_line) == 1) {
data/blktrace-1.2.0/btreplay/btrecord.c:192:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/blktrace-1.2.0/btreplay/btrecord.c:341:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(full_name, "%s/%s.blktrace.%d", idir, devnm, cpu);
data/blktrace-1.2.0/btreplay/btrecord.c:342:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(full_name, R_OK) != 0)
data/blktrace-1.2.0/btreplay/btrecord.c:397:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(idir, R_OK | X_OK) != 0) {
data/blktrace-1.2.0/btreplay/btrecord.c:406:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(odir, R_OK | X_OK) != 0) {
data/blktrace-1.2.0/btreplay/btrecord.c:688:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ofile_name, "%s/%s.%s.%d", odir, iip->devnm, obase, iip->cpu);
data/blktrace-1.2.0/btreplay/btrecord.c:706:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(vfile_name, "%s/%s.%s.%d.rec", odir, iip->devnm,
data/blktrace-1.2.0/btreplay/btreplay.c:219:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/blktrace-1.2.0/btreplay/btreplay.c:656:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	while (fscanf(fp, "%s %s", from_dev, to_dev) == 2) {
data/blktrace-1.2.0/btreplay/btreplay.c:807:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fn, "%s/%s.%s.%d.rep", idir, tip->devnm, ibase, 
data/blktrace-1.2.0/btreplay/btreplay.c:984:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(full_name, "%s/%s.%s.%d", idir, dip->devnm, ibase, cpu);
data/blktrace-1.2.0/btreplay/btreplay.c:985:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(full_name, R_OK) != 0)
data/blktrace-1.2.0/btreplay/btreplay.c:1345:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "/dev/%s", mdev);
data/blktrace-1.2.0/btreplay/btreplay.c:1508:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access(idir, R_OK | X_OK) != 0) {
data/blktrace-1.2.0/btt/aqd.c:43:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(oname, "%s_%s_aqd.dat", aqd_name, dip->dip_name);
data/blktrace-1.2.0/btt/args.c:278:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s.%s", output_name, sfx);
data/blktrace-1.2.0/btt/bno_dump.c:33:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(oname, "%s_%s_%c.dat", bno_dump_name, dip->dip_name, rwc);
data/blktrace-1.2.0/btt/devmap.c:39:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (sscanf(line, "%s %s", dmp->device, dmp->devno) != 2) {
data/blktrace-1.2.0/btt/latency.c:38:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(oname, "%s_%s_%s.dat", name, dip->dip_name, post);
data/blktrace-1.2.0/btt/output.c:713:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s_qhist.dat", output_name);
data/blktrace-1.2.0/btt/output.c:728:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fname, "%s_dhist.dat", output_name);
data/blktrace-1.2.0/btt/p_live.c:51:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(nm, "%s_live.dat", bn);
data/blktrace-1.2.0/btt/plat.c:42:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(oname, "%s%s_plat.dat", dip->dip_name, post);
data/blktrace-1.2.0/btt/rstats.c:42:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fip->nm, "%s_%s.dat", bn, pn);
data/blktrace-1.2.0/btt/seek.c:53:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(oname, "%s_%s_%c.dat", seek_name, str, rw);
data/blktrace-1.2.0/btt/seek.c:210:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "%s%s", dip->dip_name, post);
data/blktrace-1.2.0/btt/seek.c:225:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(oname, "%s_%s.dat", sps_name, dip->dip_name);
data/blktrace-1.2.0/btt/unplug_hist.c:73:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(oname, "%s_%s.dat", unplug_hist_name,
data/blktrace-1.2.0/iowatcher/blkparse.c:355:2:  [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(pm->name, name);
data/blktrace-1.2.0/iowatcher/main.c:236:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s%s%s", dest_dir, "/", filename);
data/blktrace-1.2.0/iowatcher/main.c:809:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "%sB/s", units);
data/blktrace-1.2.0/iowatcher/main.c:868:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "%sB/s", units);
data/blktrace-1.2.0/iowatcher/main.c:1036:6:  [4] (shell) system:
  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.
	if (system(cmd) < 0) {
data/blktrace-1.2.0/iowatcher/main.c:1231:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(line, "latency (%ss)", units);
data/blktrace-1.2.0/verify_blkparse.c:74:3:  [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(last_line, line);
data/blktrace-1.2.0/blkiomon.c:691: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, S_OPTS, l_opts, NULL)) != -1) {
data/blktrace-1.2.0/blkparse.c:2787: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, S_OPTS, l_opts, NULL)) != -1) {
data/blktrace-1.2.0/blktrace.c:2106: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, S_OPTS, l_opts, NULL)) >= 0) {
data/blktrace-1.2.0/btreplay/btrecord.c:393: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, S_OPTS, l_opts, NULL)) != -1) {
data/blktrace-1.2.0/btreplay/btreplay.c:1494: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, S_OPTS, l_opts, NULL)) != -1) {
data/blktrace-1.2.0/btt/args.c:294: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, S_OPTS, l_opts, NULL)) != -1) {
data/blktrace-1.2.0/iowatcher/main.c:1441:7:  [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(ac, av, option_string,
data/blktrace-1.2.0/blkiomon.c:539:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		out->fp = fopen(out->fn, "w");
data/blktrace-1.2.0/blkiomon.c:706: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).
			interval = atoi(optarg);
data/blktrace-1.2.0/blkiomon.c:712: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).
			msg_q_id = atoi(optarg);
data/blktrace-1.2.0/blkiomon.c:715: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).
			msg_id = atoi(optarg);
data/blktrace-1.2.0/blkparse.c:77: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 comm[16];
data/blktrace-1.2.0/blkparse.c:332: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[20];
data/blktrace-1.2.0/blkparse.c:513: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(map, pdi->cpu_map, pdi->cpu_map_max / sizeof(long));
data/blktrace-1.2.0/blkparse.c:605: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 msg[bit->pdu_len+1];
data/blktrace-1.2.0/blkparse.c:607: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(msg, (char *)payload, bit->pdu_len);
data/blktrace-1.2.0/blkparse.c:1662:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(dst, "%'8Lu%c", num, suff[i]);
data/blktrace-1.2.0/blkparse.c:1669:9:  [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 x[256], y[256];
data/blktrace-1.2.0/blkparse.c:1799: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[64];
data/blktrace-1.2.0/blkparse.c:1821: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[3 + 8/*cpu*/ + 2 + 32/*dev*/ + 3];
data/blktrace-1.2.0/blkparse.c:1822: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/blktrace-1.2.0/blkparse.c:2507:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pci->fd = open(pci->fname, O_RDONLY);
data/blktrace-1.2.0/blkparse.c:2648: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).
		fd = open(pipename, O_RDONLY);
data/blktrace-1.2.0/blkparse.c:2826: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).
			rb_batch = atoi(optarg);
data/blktrace-1.2.0/blkparse.c:2901: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 ofname[PATH_MAX];
data/blktrace-1.2.0/blkparse.c:2904: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).
			ofp = fopen(ofname, "w");
data/blktrace-1.2.0/blkparse.c:2924:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			dump_fp = fopen(dump_binary, "w");
data/blktrace-1.2.0/blkparse_fmt.c:18:8:  [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 *override_format[256];
data/blktrace-1.2.0/blkparse_fmt.c:91:9:  [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	timebuf[128];
data/blktrace-1.2.0/blkparse_fmt.c:115:9:  [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 zero[4096];
data/blktrace-1.2.0/blkparse_fmt.c:122:9:  [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 p[4096];
data/blktrace-1.2.0/blkparse_fmt.c:132:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		len += sprintf(p + len, "%02x", pdu_buf[i]);
data/blktrace-1.2.0/blkparse_fmt.c:140:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(p + len, " ..");
data/blktrace-1.2.0/blkparse_fmt.c:172: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 format[64];
data/blktrace-1.2.0/blkparse_fmt.c:176:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(format, "%%-%d", width);
data/blktrace-1.2.0/blkparse_fmt.c:178:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(format, "%%%d", width);
data/blktrace-1.2.0/blkparse_fmt.c:180:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(format, "%%");
data/blktrace-1.2.0/blkparse_fmt.c:196: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 rwbs[8];
data/blktrace-1.2.0/blkparse_fmt.c:230:16:  [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.
		fprintf(ofp, strcat(format, "ld"), t->sequence);
data/blktrace-1.2.0/blkparse_fmt.c:233:16:  [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.
		fprintf(ofp, strcat(format, "lu"), t->sector);
data/blktrace-1.2.0/blkparse_fmt.c:236:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(format, "%%0%dlu", has_w ? width : 9);
data/blktrace-1.2.0/blkparse_fmt.c:247:16:  [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.
		fprintf(ofp, strcat(format, "llu"), elapsed / 1000);
data/blktrace-1.2.0/blkparse_fmt.c:293: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 rwbs[8];
data/blktrace-1.2.0/blkrawverify.c:85:9:  [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[1024];
data/blktrace-1.2.0/blkrawverify.c:94: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 buf2[1024];
data/blktrace-1.2.0/blkrawverify.c:100:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "Invalid action=%08x", action);
data/blktrace-1.2.0/blkrawverify.c:154: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 ofname[1024];
data/blktrace-1.2.0/blkrawverify.c:156: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).
	ifp = fopen(file, "r");
data/blktrace-1.2.0/blkrawverify.c:163: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).
		*fp = fopen(ofname, "w");
data/blktrace-1.2.0/blktrace.c:184: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 buts_name[32];	/* trace name */
data/blktrace-1.2.0/blktrace.c:265: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 ifn[MAXPATHLEN + 64];
data/blktrace-1.2.0/blktrace.c:266: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 ofn[MAXPATHLEN + 64];
data/blktrace-1.2.0/blktrace.c:322:8:  [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 hostname[MAXHOSTNAMELEN];
data/blktrace-1.2.0/blktrace.c:682: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).
		fp = fopen(path, mode);
data/blktrace-1.2.0/blktrace.c:693: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).
		fd = open(path, flags);
data/blktrace-1.2.0/blktrace.c:993: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(&addr->sin_addr, hent->h_addr, 4);
data/blktrace-1.2.0/blktrace.c:1117: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 fn[MAXPATHLEN + 64], tmp[256];
data/blktrace-1.2.0/blktrace.c:1136: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).
		drops = atoi(tmp);
data/blktrace-1.2.0/blktrace.c:1360: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(prev->buf + prev->len, tbp->buf, tbp->len);
data/blktrace-1.2.0/blktrace.c:1570: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 hostdir[MAXPATHLEN + 64];
data/blktrace-1.2.0/blktrace.c:1903: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 fname[MAXPATHLEN + 64];
data/blktrace-1.2.0/blktrace.c:2135: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 dev_line[256];
data/blktrace-1.2.0/blktrace.c:2166: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).
			stop_watch = atoi(optarg);
data/blktrace-1.2.0/blktrace.c:2209: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).
			net_port = atoi(optarg);
data/blktrace-1.2.0/blktrace.h:53: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 fname[PATH_MAX];
data/blktrace-1.2.0/blktrace_api.h:123: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];			/* output */
data/blktrace-1.2.0/btreplay/btrecord.c:314:13:  [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).
	iip->ifd = open(file_name, O_RDONLY);
data/blktrace-1.2.0/btreplay/btrecord.c:339: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 full_name[MAXPATHLEN];
data/blktrace-1.2.0/btreplay/btrecord.c:525: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 buf[pdu_len];
data/blktrace-1.2.0/btreplay/btrecord.c:678: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 ofile_name[MAXPATHLEN];
data/blktrace-1.2.0/btreplay/btrecord.c:689:16:  [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).
	stream->ofp = fopen(ofile_name, "w");
data/blktrace-1.2.0/btreplay/btrecord.c:704: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 vfile_name[MAXPATHLEN];
data/blktrace-1.2.0/btreplay/btrecord.c:708:17:  [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).
		stream->vfp = fopen(vfile_name, "w");
data/blktrace-1.2.0/btreplay/btreplay.c:648: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 from_dev[256], to_dev[256];
data/blktrace-1.2.0/btreplay/btreplay.c:650:7:  [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).
	fp = fopen(file_name, "r");
data/blktrace-1.2.0/btreplay/btreplay.c:805: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 fn[MAXPATHLEN];
data/blktrace-1.2.0/btreplay/btreplay.c:809:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		tip->vfp = fopen(fn, "w");
data/blktrace-1.2.0/btreplay/btreplay.c:888:13:  [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).
	tip->ifd = open(file_name, O_RDONLY);
data/blktrace-1.2.0/btreplay/btreplay.c:982: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 full_name[MAXPATHLEN];
data/blktrace-1.2.0/btreplay/btreplay.c:1337: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[MAXPATHLEN];
data/blktrace-1.2.0/btreplay/btreplay.c:1358:13:  [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).
	tip->ofd = open(path, O_RDWR | O_DIRECT | oflags);
data/blktrace-1.2.0/btreplay/btreplay.c:1497: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).
			cpus_to_use = atoi(optarg);
data/blktrace-1.2.0/btreplay/btreplay.c:1529: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).
			def_iterations = atoi(optarg);
data/blktrace-1.2.0/btt/args.c:276: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 fname[strlen(output_name) + 32];
data/blktrace-1.2.0/btt/devmap.c:26: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 device[PATH_MAX], devno[PATH_MAX];
data/blktrace-1.2.0/btt/devmap.c:50: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 this[128];
data/blktrace-1.2.0/btt/devmap.c:53:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(this, "%u,%u", MAJOR(device), MINOR(device));
data/blktrace-1.2.0/btt/devmap.c:66: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[256];
data/blktrace-1.2.0/btt/devs.c:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[sizeof(dip->dip_name)+8]; /* "_pit.dat" is 8 chars */
data/blktrace-1.2.0/btt/globals.h:134: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 *devmap, dip_name[256];
data/blktrace-1.2.0/btt/iostat.c:85: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 hdr[16];
data/blktrace-1.2.0/btt/latency.c:36: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 oname[tlen];
data/blktrace-1.2.0/btt/misc.c:159: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).
		fp = fopen(path, mode);
data/blktrace-1.2.0/btt/misc.c:170: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).
		fd = open(path, flags);
data/blktrace-1.2.0/btt/mmap.c:57: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(tp, t, sizeof(*tp));
data/blktrace-1.2.0/btt/mmap.c:74: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(*pdu, t+1, tp->pdu_len);
data/blktrace-1.2.0/btt/output.c:89:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(string, "%13.9f", ap->avg);
data/blktrace-1.2.0/btt/output.c:104: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:129: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:172: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:265: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:398: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:499: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 proc_name[15];
data/blktrace-1.2.0/btt/output.c:524: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:570: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:641: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:679: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 dev_info[15];
data/blktrace-1.2.0/btt/output.c:709: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 fname[256];
data/blktrace-1.2.0/btt/output.c:869: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 header[128];
data/blktrace-1.2.0/btt/output.c:872:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(header, "%d,%d", MAJOR(dip->device), MINOR(dip->device));
data/blktrace-1.2.0/btt/proc.c:199:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(name, "pid%09u", pid);
data/blktrace-1.2.0/btt/seek.c:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[256];
data/blktrace-1.2.0/btt/trace.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scratch[15];
data/blktrace-1.2.0/btt/trace.c:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char msg[iop->t.pdu_len + 1];
data/blktrace-1.2.0/btt/trace.c:67:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg, iop->pdu, iop->t.pdu_len);
data/blktrace-1.2.0/iowatcher/blkparse.c:178: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[0];
data/blktrace-1.2.0/iowatcher/blkparse.c:337:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/blktrace-1.2.0/iowatcher/blkparse.c:349:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "[%u]", pid);
data/blktrace-1.2.0/iowatcher/blkparse.c:923: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(filename, O_RDONLY);
data/blktrace-1.2.0/iowatcher/fio.c:64: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).
		val = atoi(p);
data/blktrace-1.2.0/iowatcher/fio.c:131: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(trace_name, O_RDONLY);
data/blktrace-1.2.0/iowatcher/main.c:48:8:  [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 line[1024];
data/blktrace-1.2.0/iowatcher/main.c:148:8:  [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 *blktrace_devices[MAX_DEVICES_PER_TRACE];
data/blktrace-1.2.0/iowatcher/main.c:779: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[128];
data/blktrace-1.2.0/iowatcher/main.c:842: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[128];
data/blktrace-1.2.0/iowatcher/main.c:1207: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[128];
data/blktrace-1.2.0/iowatcher/main.c:1465: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).
			set_rolling_avg(atoi(optarg));
data/blktrace-1.2.0/iowatcher/main.c:1513: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).
			opt_graph_height = atoi(optarg);
data/blktrace-1.2.0/iowatcher/main.c:1516: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).
			opt_graph_width = atoi(optarg);
data/blktrace-1.2.0/iowatcher/main.c:1519: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).
			columns = atoi(optarg);
data/blktrace-1.2.0/iowatcher/mpstat.c:38: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 line[1024];
data/blktrace-1.2.0/iowatcher/mpstat.c:170:27:  [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).
	trace->mpstat_num_cpus = atoi(cur);
data/blktrace-1.2.0/iowatcher/mpstat.c:216: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(line, O_RDONLY);
data/blktrace-1.2.0/iowatcher/plot.c:67:8:  [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 line[1024];
data/blktrace-1.2.0/iowatcher/plot.c:707: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(filename, O_CREAT | O_TRUNC | O_WRONLY, 0600);
data/blktrace-1.2.0/iowatcher/tracers.c:56: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 *argv[15 + MAX_DEVICES_PER_TRACE * 2];
data/blktrace-1.2.0/verify_blkparse.c:11: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[256], last_line[256], *p;
data/blktrace-1.2.0/verify_blkparse.c:41: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(argv[1], "r");
data/blktrace-1.2.0/blkiomon.c:593:20:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		leftover, match, mismatch, driverdata, sequence);
data/blktrace-1.2.0/blkparse.c:566:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ppm->comm, name, sizeof(ppm->comm));
data/blktrace-1.2.0/blkparse.c:2174:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, p, bytes_left);
data/blktrace-1.2.0/blkparse.c:2191: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(10);
data/blktrace-1.2.0/blkparse_fmt.c:130:11:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			len += sprintf(p + len, " ");
data/blktrace-1.2.0/blkparse_fmt.c:184:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "s"), act);
data/blktrace-1.2.0/blkparse_fmt.c:187:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "d"), pci->cpu);
data/blktrace-1.2.0/blkparse_fmt.c:192:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "s"), name);
data/blktrace-1.2.0/blkparse_fmt.c:199:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "s"), rwbs);
data/blktrace-1.2.0/blkparse_fmt.c:206:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "d"), t->error);
data/blktrace-1.2.0/blkparse_fmt.c:209:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "d"), MAJOR(t->device));
data/blktrace-1.2.0/blkparse_fmt.c:212:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "d"), MINOR(t->device));
data/blktrace-1.2.0/blkparse_fmt.c:215:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "u"), t_sec(t));
data/blktrace-1.2.0/blkparse_fmt.c:218:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "u"), t->bytes);
data/blktrace-1.2.0/blkparse_fmt.c:221:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "u"), t->pid);
data/blktrace-1.2.0/blkparse_fmt.c:240:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "d"), SECONDS(t->time));
data/blktrace-1.2.0/blkparse_fmt.c:250:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "u"), get_pdu_int(t));
data/blktrace-1.2.0/blkparse_fmt.c:253:16:  [1] (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 character.
		fprintf(ofp, strcat(format, "s"), print_time(t->time));
data/blktrace-1.2.0/blkparse_fmt.c:256:15:  [1] (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 character.
		fprintf(ofp,strcat(format, "c"), field);
data/blktrace-1.2.0/blktrace.c:836: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(50);
data/blktrace-1.2.0/blktrace.c:885:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hdr.buts_name, buts_name, sizeof(hdr.buts_name));
data/blktrace-1.2.0/blktrace.c:977: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(100);
data/blktrace-1.2.0/blktrace.c:995:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(hostname, hent->h_name, sizeof(hostname));
data/blktrace-1.2.0/blktrace.c:1132:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} else if (read(fd, tmp, sizeof(tmp)) < 0) {
data/blktrace-1.2.0/blktrace.c:1734:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(iop->ifd, mip->fs_buf + mip->fs_off,
data/blktrace-1.2.0/blktrace.c:1804:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			tbp->len = read(iop->ifd, tbp->buf, buf_size);
data/blktrace-1.2.0/blktrace.c:2202:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(hostname, optarg, sizeof(hostname));
data/blktrace-1.2.0/btreplay/btrecord.c:491:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(iip->ifd, &t, sizeof(t));
data/blktrace-1.2.0/btreplay/btrecord.c:527:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(iip->ifd, buf, pdu_len);
data/blktrace-1.2.0/btreplay/btreplay.c:903:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(tip->ifd, &hdr, sizeof(hdr)) != sizeof(hdr)) {
data/blktrace-1.2.0/btreplay/btreplay.c:1140:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = read(tip->ifd, &bunch->hdr, sizeof(bunch->hdr));
data/blktrace-1.2.0/btreplay/btreplay.c:1152:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	result = read(tip->ifd, &bunch->pkts, count);
data/blktrace-1.2.0/btreplay/btreplay.c:1324:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(tip->ifd, &hdr, sizeof(hdr)) != sizeof(hdr)) {
data/blktrace-1.2.0/btreplay/btreplay.c:1350: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).
	for (i = 0; i < strlen(mdev); i++)
data/blktrace-1.2.0/btreplay/btreplay.c:1351:19:  [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 (path[strlen("/dev/") + i] == '_')
data/blktrace-1.2.0/btreplay/btreplay.c:1352:16:  [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).
		        path[strlen("/dev/") + i] = '/';
data/blktrace-1.2.0/btt/aqd.c:42:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(aqd_name) + strlen(dip->dip_name) + 32);
data/blktrace-1.2.0/btt/aqd.c:42:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(aqd_name) + strlen(dip->dip_name) + 32);
data/blktrace-1.2.0/btt/args.c:276: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).
	char fname[strlen(output_name) + 32];
data/blktrace-1.2.0/btt/bno_dump.c:32:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(bno_dump_name) + strlen(dip->dip_name) + 32);
data/blktrace-1.2.0/btt/bno_dump.c:32:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(bno_dump_name) + strlen(dip->dip_name) + 32);
data/blktrace-1.2.0/btt/latency.c:34:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t tlen = strlen(name) + strlen(dip->dip_name)
data/blktrace-1.2.0/btt/latency.c:34:32:  [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).
		size_t tlen = strlen(name) + strlen(dip->dip_name)
data/blktrace-1.2.0/btt/latency.c:35:11:  [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).
					   + strlen(post) + 32;
data/blktrace-1.2.0/btt/output.c:91:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		sprintf(string, " ");
data/blktrace-1.2.0/btt/p_live.c:49:21:  [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).
		char *nm = malloc(strlen(bn) + 16);
data/blktrace-1.2.0/btt/plat.c:41:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(dip->dip_name) + strlen(post) + 32);
data/blktrace-1.2.0/btt/plat.c:41:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(dip->dip_name) + strlen(post) + 32);
data/blktrace-1.2.0/btt/rstats.c:41:19:  [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).
	fip->nm = malloc(strlen(bn) + 16);
data/blktrace-1.2.0/btt/seek.c:52:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	oname = malloc(strlen(seek_name) + strlen(str) + 32);
data/blktrace-1.2.0/btt/seek.c:52:37:  [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).
	oname = malloc(strlen(seek_name) + strlen(str) + 32);
data/blktrace-1.2.0/btt/seek.c:224: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).
		oname = malloc(strlen(sps_name) + strlen(dip->dip_name) + 32);
data/blktrace-1.2.0/btt/seek.c:224:37:  [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).
		oname = malloc(strlen(sps_name) + strlen(dip->dip_name) + 32);
data/blktrace-1.2.0/btt/unplug_hist.c:69:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t tlen = strlen(unplug_hist_name)
data/blktrace-1.2.0/btt/unplug_hist.c:70:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					+ strlen(hbp->dip->dip_name) + 32;
data/blktrace-1.2.0/iowatcher/blkparse.c:352:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pm = malloc(sizeof(struct pid_map) + strlen(name) + 1);
data/blktrace-1.2.0/iowatcher/blkparse.c:714:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	match_len = strlen(name);
data/blktrace-1.2.0/iowatcher/blkparse.c:736:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int dlen = strlen(dir_name);
data/blktrace-1.2.0/iowatcher/blkparse.c:820:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(filename);
data/blktrace-1.2.0/iowatcher/main.c:235:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *path = malloc(strlen(dest_dir) + strlen(filename) + 2);
data/blktrace-1.2.0/iowatcher/main.c:235:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *path = malloc(strlen(dest_dir) + strlen(filename) + 2);
data/blktrace-1.2.0/iowatcher/main.c:502:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(label);
data/blktrace-1.2.0/iowatcher/main.c:1545:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(optarg) != 1) {
data/blktrace-1.2.0/iowatcher/main.c:1696: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).
		set_legend_width(longest_label + longest_proc_name + 1 + strlen("writes"));
data/blktrace-1.2.0/iowatcher/main.c:1704: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).
		set_legend_width(longest_label + longest_proc_name + 1 + strlen("writes"));
data/blktrace-1.2.0/iowatcher/mpstat.c:167:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = line + strlen(line) - record;
data/blktrace-1.2.0/iowatcher/mpstat.c:212:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		record_header_len = strlen(record_header);
data/blktrace-1.2.0/iowatcher/plot.c:183:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(label) > longest_proc_name)
data/blktrace-1.2.0/iowatcher/plot.c:184:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		longest_proc_name = strlen(label);
data/blktrace-1.2.0/iowatcher/plot.c:292:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, header, strlen(header));
data/blktrace-1.2.0/iowatcher/plot.c:294:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, spaces, strlen(spaces));
data/blktrace-1.2.0/iowatcher/plot.c:295:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, spaces, strlen(spaces));
data/blktrace-1.2.0/iowatcher/plot.c:296:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, spaces, strlen(spaces));
data/blktrace-1.2.0/iowatcher/plot.c:298:30:  [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_check(fd, defs_start, strlen(defs_start));
data/blktrace-1.2.0/iowatcher/plot.c:299:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, filter1, strlen(filter1));
data/blktrace-1.2.0/iowatcher/plot.c:300:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, filter2, strlen(filter2));
data/blktrace-1.2.0/iowatcher/plot.c:301:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, filter3, strlen(filter3));
data/blktrace-1.2.0/iowatcher/plot.c:302:30:  [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_check(fd, defs_close, strlen(defs_close));
data/blktrace-1.2.0/iowatcher/plot.c:366:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:374:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:386:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:392:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:421:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:430:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:441:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:462:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:471:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:528:32:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:545:32:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:561:31:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:579:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:594:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:619:32:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:627:31:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:633:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:646:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/blktrace-1.2.0/iowatcher/plot.c:654:30:  [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_check(fd, close_line, strlen(close_line));
data/blktrace-1.2.0/iowatcher/plot.c:692:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:695:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:820: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).
				write_check(fd, start, strlen(start));
data/blktrace-1.2.0/iowatcher/plot.c:827:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			write_check(fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:832: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).
				write_check(fd, start, strlen(start));
data/blktrace-1.2.0/iowatcher/plot.c:846:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			write_check(fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:853: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_check(fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:867:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:877:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_check(fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:934:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:938:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:962:31:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:1079:30:  [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_check(plot->fd, line, strlen(line));
data/blktrace-1.2.0/iowatcher/plot.c:1082: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).
		      strlen(plot->legend_lines[i]));
data/blktrace-1.2.0/iowatcher/plot.c:1095:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!text && (!extra || strlen(extra) == 0))

ANALYSIS SUMMARY:

Hits = 314
Lines analyzed = 22573 in approximately 0.60 seconds (37716 lines/second)
Physical Source Lines of Code (SLOC) = 16704
Hits@level = [0] 592 [1] 112 [2] 131 [3]   7 [4]  64 [5]   0
Hits@level+ = [0+] 906 [1+] 314 [2+] 202 [3+]  71 [4+]  64 [5+]   0
Hits/KSLOC@level+ = [0+] 54.2385 [1+] 18.7979 [2+] 12.0929 [3+] 4.25048 [4+] 3.83142 [5+]   0
Dot directories skipped = 2 (--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.