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/openwince-jtag-0.5.1/sysdep.h
Examining data/openwince-jtag-0.5.1/libbrux/sysdep.h
Examining data/openwince-jtag-0.5.1/libbrux/gettext.h
Examining data/openwince-jtag-0.5.1/libbrux/cmd/cmd.c
Examining data/openwince-jtag-0.5.1/libbrux/cmd/help.c
Examining data/openwince-jtag-0.5.1/libbrux/cmd/quit.c
Examining data/openwince-jtag-0.5.1/libbrux/cmd/cmd_detectflash.c
Examining data/openwince-jtag-0.5.1/libbrux/flash/jedec.c
Examining data/openwince-jtag-0.5.1/libbrux/flash/amd.c
Examining data/openwince-jtag-0.5.1/libbrux/flash/intel.c
Examining data/openwince-jtag-0.5.1/libbrux/flash/cfi.c
Examining data/openwince-jtag-0.5.1/libbrux/flash/detectflash.c
Examining data/openwince-jtag-0.5.1/include/bsbit.h
Examining data/openwince-jtag-0.5.1/include/bus.h
Examining data/openwince-jtag-0.5.1/include/cable.h
Examining data/openwince-jtag-0.5.1/include/chain.h
Examining data/openwince-jtag-0.5.1/include/data_register.h
Examining data/openwince-jtag-0.5.1/include/cmd.h
Examining data/openwince-jtag-0.5.1/include/flash.h
Examining data/openwince-jtag-0.5.1/include/gettext.h
Examining data/openwince-jtag-0.5.1/include/instruction.h
Examining data/openwince-jtag-0.5.1/include/parport.h
Examining data/openwince-jtag-0.5.1/include/part.h
Examining data/openwince-jtag-0.5.1/include/register.h
Examining data/openwince-jtag-0.5.1/include/bssignal.h
Examining data/openwince-jtag-0.5.1/include/state.h
Examining data/openwince-jtag-0.5.1/include/jtag.h
Examining data/openwince-jtag-0.5.1/include/tap.h
Examining data/openwince-jtag-0.5.1/src/bsdl2jtag.c
Examining data/openwince-jtag-0.5.1/src/jtag.c
Examining data/openwince-jtag-0.5.1/src/detect.c
Examining data/openwince-jtag-0.5.1/src/discovery.c
Examining data/openwince-jtag-0.5.1/src/readmem.c
Examining data/openwince-jtag-0.5.1/src/flash.c
Examining data/openwince-jtag-0.5.1/src/lib/getdelim.c
Examining data/openwince-jtag-0.5.1/src/lib/getline.c
Examining data/openwince-jtag-0.5.1/src/tap/tap.c
Examining data/openwince-jtag-0.5.1/src/tap/register.c
Examining data/openwince-jtag-0.5.1/src/tap/state.c
Examining data/openwince-jtag-0.5.1/src/tap/chain.c
Examining data/openwince-jtag-0.5.1/src/tap/parport.c
Examining data/openwince-jtag-0.5.1/src/tap/parport/direct.c
Examining data/openwince-jtag-0.5.1/src/tap/parport/ppdev.c
Examining data/openwince-jtag-0.5.1/src/tap/cable.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/generic.h
Examining data/openwince-jtag-0.5.1/src/tap/cable/generic.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/arcom.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/byteblaster.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/dlc5.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/ea253.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/ei012.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/keithkoep.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/mpcbdm.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/triton.c
Examining data/openwince-jtag-0.5.1/src/tap/cable/wiggler.c
Examining data/openwince-jtag-0.5.1/src/part/signal.c
Examining data/openwince-jtag-0.5.1/src/part/instruction.c
Examining data/openwince-jtag-0.5.1/src/part/data_register.c
Examining data/openwince-jtag-0.5.1/src/part/bsbit.c
Examining data/openwince-jtag-0.5.1/src/part/part.c
Examining data/openwince-jtag-0.5.1/src/bus/buses.c
Examining data/openwince-jtag-0.5.1/src/bus/buses.h
Examining data/openwince-jtag-0.5.1/src/bus/bcm1250.c
Examining data/openwince-jtag-0.5.1/src/bus/ixp425.c
Examining data/openwince-jtag-0.5.1/src/bus/pxa2x0.c
Examining data/openwince-jtag-0.5.1/src/bus/sa1110.c
Examining data/openwince-jtag-0.5.1/src/bus/sh7727.c
Examining data/openwince-jtag-0.5.1/src/bus/sh7750r.c
Examining data/openwince-jtag-0.5.1/src/bus/sh7751r.c
Examining data/openwince-jtag-0.5.1/src/bus/s3c4510x.c
Examining data/openwince-jtag-0.5.1/src/cmd/frequency.c
Examining data/openwince-jtag-0.5.1/src/cmd/cable.c
Examining data/openwince-jtag-0.5.1/src/cmd/discovery.c
Examining data/openwince-jtag-0.5.1/src/cmd/detect.c
Examining data/openwince-jtag-0.5.1/src/cmd/signal.c
Examining data/openwince-jtag-0.5.1/src/cmd/bit.c
Examining data/openwince-jtag-0.5.1/src/cmd/register.c
Examining data/openwince-jtag-0.5.1/src/cmd/initbus.c
Examining data/openwince-jtag-0.5.1/src/cmd/part.c
Examining data/openwince-jtag-0.5.1/src/cmd/bus.c
Examining data/openwince-jtag-0.5.1/src/cmd/instruction.c
Examining data/openwince-jtag-0.5.1/src/cmd/shift.c
Examining data/openwince-jtag-0.5.1/src/cmd/dr.c
Examining data/openwince-jtag-0.5.1/src/cmd/get.c
Examining data/openwince-jtag-0.5.1/src/cmd/set.c
Examining data/openwince-jtag-0.5.1/src/cmd/endian.c
Examining data/openwince-jtag-0.5.1/src/cmd/peekpoke.c
Examining data/openwince-jtag-0.5.1/src/cmd/readmem.c
Examining data/openwince-jtag-0.5.1/src/cmd/flashmem.c
Examining data/openwince-jtag-0.5.1/src/cmd/eraseflash.c
Examining data/openwince-jtag-0.5.1/src/cmd/script.c
Examining data/openwince-jtag-0.5.1/src/cmd/include.c
Examining data/openwince-jtag-0.5.1/src/cmd/cmd.c
Examining data/openwince-jtag-0.5.1/src/cmd/print.c

FINAL RESULTS:

data/openwince-jtag-0.5.1/src/bsdl2jtag.c:65:22:  [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(dev_name[0]==0) sscanf(pline, "entity %s", dev_name);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:69:5:  [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.
		i=sscanf(pline, "attribute %s", att);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:72: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.
			i=sscanf(pline, "attribute INSTRUCTION_LENGTH of %s : entity is %i ;", tmp, &j);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:77: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.
			i=sscanf(pline, "attribute BOUNDARY_LENGTH of %s : entity is %i ;", tmp, &j);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:84: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.
			i=sscanf(pline, "attribute IDCODE_REGISTER of %s : entity is %n", tmp, &j);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:90: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.
			i=sscanf(pline, "attribute BOUNDARY_REGISTER of %s : entity is %n", tmp, &j);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:96: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.
			i=sscanf(pline, "attribute INSTRUCTION_OPCODE of %s : entity is %n", tmp, &j);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:175:7:  [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.
				i=sscanf(pline, " %i %s %s %s %s %i %i %s %c", 
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:179:8:  [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.
					i=sscanf(pline, " %i %s %s %s %s %c",
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:205:5:  [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(bs_bits[bit].name, name);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:215:7:  [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.
				i=sscanf(pline, "%s %s", att, tmp);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:227:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(insts[inst_num][0], att);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:228:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(insts[inst_num][1], tmp);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:241: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.
					sscanf(pline, " %s %n", pins[pins_num], &i);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:244:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(pinsp[pins_num], pline+i);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:249:6:  [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(pinsp[pins_num], pline);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:258:5:  [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.
				sscanf(pline, "%s %s %n\n", pins[pins_num], tmp, &i);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:261:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(tmp, pins[pins_num]);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:269:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
						sprintf(pins[pins_num], "%s%i",tmp,f);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:314:5:  [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.
		i=fscanf(infile, " %s", line);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:323:4:  [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(pline, line);
data/openwince-jtag-0.5.1/src/cmd/print.c:73:3:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
		swprintf( wheader, 100, wformat, _("Manufacturer"), _("Part"), _("Stepping"), _("Instruction"), _("Register") );
data/openwince-jtag-0.5.1/src/cmd/print.c:77:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf( header, 100, format, _("Manufacturer"), _("Part"), _("Stepping"), _("Instruction"), _("Register") );
data/openwince-jtag-0.5.1/src/detect.c:132: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( idr->name, p );
data/openwince-jtag-0.5.1/src/detect.c:150: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( idr->fullname, p );
data/openwince-jtag-0.5.1/src/detect.c:262: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( data_path, db_path );		/* FIXME: Buffer overrun */
data/openwince-jtag-0.5.1/src/detect.c:288:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat( data_path, idr.name );
data/openwince-jtag-0.5.1/src/detect.c:312:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat( data_path, idr.name );
data/openwince-jtag-0.5.1/src/detect.c:336:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat( data_path, idr.name );
data/openwince-jtag-0.5.1/src/detect.c:342: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( part->manufacturer, manufacturer );
data/openwince-jtag-0.5.1/src/detect.c:343: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( part->part, partname );
data/openwince-jtag-0.5.1/src/detect.c:344: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( part->stepping, stepping );
data/openwince-jtag-0.5.1/src/jtag.c:73: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( jdir, home );
data/openwince-jtag-0.5.1/src/jtag.c:75:2:  [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( jdir, JTAGDIR );
data/openwince-jtag-0.5.1/src/jtag.c:98: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( file, home );
data/openwince-jtag-0.5.1/src/jtag.c:100:2:  [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( file, JTAGDIR );
data/openwince-jtag-0.5.1/src/jtag.c:102:2:  [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( file, HISTORYFILE );
data/openwince-jtag-0.5.1/src/jtag.c:122: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( file, home );
data/openwince-jtag-0.5.1/src/jtag.c:124:2:  [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( file, JTAGDIR );
data/openwince-jtag-0.5.1/src/jtag.c:126:2:  [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( file, HISTORYFILE );
data/openwince-jtag-0.5.1/src/jtag.c:234: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( file, home );
data/openwince-jtag-0.5.1/src/jtag.c:236:2:  [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( file, JTAGDIR );
data/openwince-jtag-0.5.1/src/jtag.c:238:2:  [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( file, RCFILE );
data/openwince-jtag-0.5.1/src/part/part.c:239:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf( format, p->manufacturer, p->part, p->stepping, instruction, dr );
data/openwince-jtag-0.5.1/src/jtag.c:63:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv( "HOME" );
data/openwince-jtag-0.5.1/src/jtag.c:86:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv( "HOME" );
data/openwince-jtag-0.5.1/src/jtag.c:112:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv( "HOME" );
data/openwince-jtag-0.5.1/src/jtag.c:223:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *home = getenv( "HOME" );
data/openwince-jtag-0.5.1/include/data_register.h:35: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[MAXLEN_DATA_REGISTER + 1];	/* (public) register name */
data/openwince-jtag-0.5.1/include/instruction.h:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[MAXLEN_INSTRUCTION + 1];
data/openwince-jtag-0.5.1/include/parport.h:39:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int (*open)( parport_t * );
data/openwince-jtag-0.5.1/include/part.h:43: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 manufacturer[MAXLEN_MANUFACTURER + 1];
data/openwince-jtag-0.5.1/include/part.h:44: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 part[MAXLEN_PART + 1];
data/openwince-jtag-0.5.1/include/part.h:45: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 stepping[MAXLEN_STEPPING + 1];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:34: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 dev_name[64]="";
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:41: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/openwince-jtag-0.5.1/src/bsdl2jtag.c:49: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 insts[100][2][64];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:51: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 pins[2048][16], pinsp[2048][1024];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:54: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], pline[1024];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char att[64], tmp[64], id[32];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:132:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[32], cell[16], type[16], safe[4], ds[4], sep; 
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:359: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.
							char types[6]="OXIOCO"; /* why internal is O */
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:217:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[32];
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:240:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[32];
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:292: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 buff[10];
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:314:9:  [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( buff, "IO_AD%d", i );
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:323:9:  [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( buff, "IO_CS_L%d", i );
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:363: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 ctrl[15]="010000000000";
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:364: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 addrr[80]="0000" "111" "000" 
data/openwince-jtag-0.5.1/src/bus/ixp425.c:255: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 buff[15];
data/openwince-jtag-0.5.1/src/bus/ixp425.c:277: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( buff, "EX_CS[%d]", i );
data/openwince-jtag-0.5.1/src/bus/ixp425.c:286: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( buff, "EX_ADDR[%d]", i );
data/openwince-jtag-0.5.1/src/bus/ixp425.c:295: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( buff, "EX_DATA[%d]", i );
data/openwince-jtag-0.5.1/src/bus/pxa2x0.c:361: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 buff[10];
data/openwince-jtag-0.5.1/src/bus/pxa2x0.c:383: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( buff, "MA[%d]", i );
data/openwince-jtag-0.5.1/src/bus/pxa2x0.c:392: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( buff, "MD[%d]", i );
data/openwince-jtag-0.5.1/src/bus/pxa2x0.c:401: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( buff, "nCS[%d]", i );
data/openwince-jtag-0.5.1/src/bus/pxa2x0.c:410: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( buff, "DQM[%d]", i );
data/openwince-jtag-0.5.1/src/bus/s3c4510x.c:315: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.
        char buff[10];
data/openwince-jtag-0.5.1/src/bus/s3c4510x.c:337:17:  [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( buff, "ADDR%d", i );
data/openwince-jtag-0.5.1/src/bus/s3c4510x.c:346:17:  [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( buff, "XDATA%d", i );
data/openwince-jtag-0.5.1/src/bus/s3c4510x.c:355:17:  [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( buff, "nRCS%d", i );
data/openwince-jtag-0.5.1/src/bus/s3c4510x.c:364:17:  [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( buff, "nWBE%d", i );
data/openwince-jtag-0.5.1/src/bus/sa1110.c:269: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 buff[10];
data/openwince-jtag-0.5.1/src/bus/sa1110.c:291: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( buff, "A%d", i );
data/openwince-jtag-0.5.1/src/bus/sa1110.c:300: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( buff, "D%d", i );
data/openwince-jtag-0.5.1/src/bus/sa1110.c:309: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( buff, "nCS%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7727.c:301: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 buff[10];
data/openwince-jtag-0.5.1/src/bus/sh7727.c:323: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( buff, "A%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7727.c:332: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( buff, "D%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7727.c:343: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( buff, "CS%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7727.c:352: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( buff, "WE%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7750r.c:283: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 buff[10];
data/openwince-jtag-0.5.1/src/bus/sh7750r.c:305: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( buff, "A%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7750r.c:314: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( buff, "D%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7750r.c:323: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( buff, "CS%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7750r.c:332: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( buff, "WE%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7751r.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 buff[10];
data/openwince-jtag-0.5.1/src/bus/sh7751r.c:298: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( buff, "A%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7751r.c:307: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( buff, "D%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7751r.c:316: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( buff, "CS%d", i );
data/openwince-jtag-0.5.1/src/bus/sh7751r.c:325: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( buff, "WE%d", i );
data/openwince-jtag-0.5.1/src/cmd/flashmem.c:55: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( params[2], "r" );
data/openwince-jtag-0.5.1/src/cmd/print.c:40: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[100];
data/openwince-jtag-0.5.1/src/cmd/print.c:42:2:  [2] (buffer) wchar_t:
  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.
	wchar_t wformat[100];
data/openwince-jtag-0.5.1/src/cmd/print.c:44:2:  [2] (buffer) wchar_t:
  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.
	wchar_t wheader[100];
data/openwince-jtag-0.5.1/src/cmd/print.c:45: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[100];
data/openwince-jtag-0.5.1/src/cmd/readmem.c:52: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( params[3], "w" );
data/openwince-jtag-0.5.1/src/detect.c:43: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[20];
data/openwince-jtag-0.5.1/src/detect.c:44: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 fullname[100];
data/openwince-jtag-0.5.1/src/detect.c:54: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).
	file = fopen( filename, "r" );
data/openwince-jtag-0.5.1/src/detect.c:65: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 line[1024];
data/openwince-jtag-0.5.1/src/detect.c:176: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 data_path[1024];
data/openwince-jtag-0.5.1/src/detect.c:177: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 *cmd[3] = {"script", data_path, NULL};
data/openwince-jtag-0.5.1/src/detect.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 manufacturer[MAXLEN_MANUFACTURER + 1];
data/openwince-jtag-0.5.1/src/detect.c:179: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 partname[MAXLEN_PART + 1];
data/openwince-jtag-0.5.1/src/detect.c:180: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 stepping[MAXLEN_STEPPING + 1];
data/openwince-jtag-0.5.1/src/detect.c:265:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat( data_path, "/MANUFACTURERS" );
data/openwince-jtag-0.5.1/src/detect.c:268:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( key->data, &id->data[1], key->len );
data/openwince-jtag-0.5.1/src/detect.c:289:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat( data_path, "/PARTS" );
data/openwince-jtag-0.5.1/src/detect.c:292:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( key->data, &id->data[12], key->len );
data/openwince-jtag-0.5.1/src/detect.c:313:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat( data_path, "/STEPPINGS" );
data/openwince-jtag-0.5.1/src/detect.c:316:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( key->data, &id->data[28], key->len );
data/openwince-jtag-0.5.1/src/flash.c:128: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 sync[8];
data/openwince-jtag-0.5.1/src/jtag.c:203: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).
		f = fopen( filename, "r" );
data/openwince-jtag-0.5.1/src/part/part.c:222: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[100];
data/openwince-jtag-0.5.1/src/tap/parport.c:49:23:  [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).
	return port->driver->open( port );
data/openwince-jtag-0.5.1/src/tap/parport/ppdev.c:167:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	p->fd = open( p->portname, O_RDWR );
data/openwince-jtag-0.5.1/libbrux/cmd/cmd.c:73:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen( s );
data/openwince-jtag-0.5.1/libbrux/flash/amd.c:108:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep( 100 );
data/openwince-jtag-0.5.1/libbrux/flash/amd.c:144:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep( 100 );
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:86: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).
			memmove(pline, pline+j, strlen(pline+j)+1);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:92: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).
			memmove(pline, pline+j, strlen(pline+j)+1);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:98: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).
			memmove(pline, pline+j, strlen(pline+j)+1);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:108:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for(i=1;i<strlen(pline);i++) {
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:111: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).
			memmove(pline, pline+i+1, strlen(pline+i+1)+1);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:117: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).
		for(i=1;i<strlen(pline);i++) {
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:120:29:  [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).
		memmove(pline, pline+i+1, strlen(pline+i+1)+1);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:162: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).
				for(i=0;i<strlen(pline);i++)
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:164: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).
				for(i=0;i<strlen(pline);i++)
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:169: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).
				for(i=strlen(pline)-1;i>0;i--)
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:212: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).
                for(i=0;i<strlen(pline);i++)
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:217:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(!strlen(att)==IR_l) {
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:222: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).
				if(pline[strlen(pline)-1]==';')mode=0;
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:234: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).
				for(i=0;i<strlen(pline);i++)if(pline[i]==':'){j=1; break;};
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:235: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).
                for(i=0;i<strlen(pline);i++)
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:242: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).
					pins[pins_num][strlen(pins[pins_num])-1]='\0';
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:245: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).
					k=pinsp[pins_num][strlen(pinsp[pins_num])-1];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:246: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).
					pinsp[pins_num][strlen(pinsp[pins_num])-1]='\0';
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:248:6:  [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.
					strcat(pinsp[pins_num], " ");
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:250: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).
					k=pinsp[pins_num][strlen(pinsp[pins_num])-1];
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:251: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).
					pinsp[pins_num][strlen(pinsp[pins_num])-1]='\0';
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:256: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).
				for(i=0;i<strlen(pline);i++)if(pline[i]==':')pline[i]=' ';
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:291:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l=strlen(s);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:315:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		b=fgetc(infile);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:316:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		j=strlen(line);
data/openwince-jtag-0.5.1/src/bsdl2jtag.c:322: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.
			if(pline[0])strcat(pline, " ");
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:358:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int bcm1250_ejtag_do(bus_t *bus, uint64_t ad, uint64_t da, int read, int type, 
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:370:73:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(verbose)printf("BCM1250: ejtag_do(%08Lx, %08Lx, %i, %i)\n", ad, da, read, type);
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:387:4:  [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).
	j=strlen(ctrl);
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:396:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(read) {
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:408:4:  [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).
	j=strlen(addrr);
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:416:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(!read) {
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:449:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(!read)ctrl[3]='1';
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:452:4:  [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).
	j=strlen(ctrl);
data/openwince-jtag-0.5.1/src/bus/bcm1250.c:459:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if(verbose || read) {
data/openwince-jtag-0.5.1/src/cmd/bit.c:82: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( params[2] ) != 1)
data/openwince-jtag-0.5.1/src/cmd/bit.c:105: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( params[3] ) != 1)
data/openwince-jtag-0.5.1/src/cmd/bit.c:132: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( params[6] ) != 1)
data/openwince-jtag-0.5.1/src/cmd/bit.c:137:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen( params[7] ) != 1) || (params[7][0] != 'Z'))
data/openwince-jtag-0.5.1/src/cmd/include.c:45: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).
	path = malloc( len = strlen( JTAG_DATA_DIR ) + strlen( params[1] ) + 2 );
data/openwince-jtag-0.5.1/src/cmd/include.c:45:49:  [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 = malloc( len = strlen( JTAG_DATA_DIR ) + strlen( params[1] ) + 2 );
data/openwince-jtag-0.5.1/src/cmd/instruction.c:83:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( params[2] ) != part->instruction_length) {
data/openwince-jtag-0.5.1/src/cmd/print.c:83:19:  [1] (buffer) wcslen:
  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 < wcslen( wheader ); i++ )
data/openwince-jtag-0.5.1/src/detect.c:101:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( p ) != key->len)
data/openwince-jtag-0.5.1/src/detect.c:128:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( p ) >= sizeof idr->name)
data/openwince-jtag-0.5.1/src/detect.c:146:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( p ) >= sizeof idr->fullname)
data/openwince-jtag-0.5.1/src/detect.c:277:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( idr.fullname ) > MAXLEN_MANUFACTURER)
data/openwince-jtag-0.5.1/src/detect.c:279:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( manufacturer, idr.fullname, MAXLEN_MANUFACTURER );
data/openwince-jtag-0.5.1/src/detect.c:301:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( idr.fullname ) > MAXLEN_PART)
data/openwince-jtag-0.5.1/src/detect.c:303:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( partname, idr.fullname, MAXLEN_PART );
data/openwince-jtag-0.5.1/src/detect.c:325:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen( idr.fullname ) > MAXLEN_STEPPING)
data/openwince-jtag-0.5.1/src/detect.c:327:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( stepping, idr.fullname, MAXLEN_STEPPING );
data/openwince-jtag-0.5.1/src/jtag.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).
	jdir = malloc( strlen(home) + strlen(JTAGDIR) + 2 );	/* "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:69: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).
	jdir = malloc( strlen(home) + strlen(JTAGDIR) + 2 );	/* "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:74:2:  [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.
	strcat( jdir, "/" );
data/openwince-jtag-0.5.1/src/jtag.c:94: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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(HISTORYFILE) + 3 );	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:94: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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(HISTORYFILE) + 3 );	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:94:50:  [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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(HISTORYFILE) + 3 );	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:99:2:  [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.
	strcat( file, "/" );
data/openwince-jtag-0.5.1/src/jtag.c:101:2:  [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.
	strcat( file, "/" );
data/openwince-jtag-0.5.1/src/jtag.c:118: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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(HISTORYFILE) + 3);	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:118: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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(HISTORYFILE) + 3);	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:118:50:  [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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(HISTORYFILE) + 3);	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:123:2:  [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.
	strcat( file, "/" );
data/openwince-jtag-0.5.1/src/jtag.c:125:2:  [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.
	strcat( file, "/");
data/openwince-jtag-0.5.1/src/jtag.c:142: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).
	if (!line || !(strlen( line ) > 0))
data/openwince-jtag-0.5.1/src/jtag.c:188: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).
		if (line && (strlen( line ) > 0))
data/openwince-jtag-0.5.1/src/jtag.c:210: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(line) > 0) && (line[0] != '#'))
data/openwince-jtag-0.5.1/src/jtag.c:230: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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(RCFILE) + 3 );	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:230: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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(RCFILE) + 3 );	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:230:50:  [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).
	file = malloc( strlen(home) + strlen(JTAGDIR) + strlen(RCFILE) + 3 );	/* 2 x "/" and trailing \0 */
data/openwince-jtag-0.5.1/src/jtag.c:235:2:  [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.
	strcat( file, "/" );
data/openwince-jtag-0.5.1/src/jtag.c:237:2:  [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.
	strcat( file, "/" );
data/openwince-jtag-0.5.1/src/lib/getdelim.c:58:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = fgetc( stream )) != EOF) {
data/openwince-jtag-0.5.1/src/part/data_register.c:45: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( name ) > MAXLEN_DATA_REGISTER)
data/openwince-jtag-0.5.1/src/part/data_register.c:47:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( dr->name, name, MAXLEN_DATA_REGISTER );
data/openwince-jtag-0.5.1/src/part/instruction.c:45: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( name ) > MAXLEN_INSTRUCTION)
data/openwince-jtag-0.5.1/src/part/instruction.c:47:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( i->name, name, MAXLEN_INSTRUCTION );
data/openwince-jtag-0.5.1/src/tap/cable.c:113:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep( s );
data/openwince-jtag-0.5.1/src/tap/register.c:154:34:  [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 (!tr || !expr || (tr->len != strlen( expr )))

ANALYSIS SUMMARY:

Hits = 211
Lines analyzed = 13114 in approximately 0.39 seconds (33441 lines/second)
Physical Source Lines of Code (SLOC) = 8449
Hits@level = [0] 408 [1]  83 [2]  80 [3]   4 [4]  44 [5]   0
Hits@level+ = [0+] 619 [1+] 211 [2+] 128 [3+]  48 [4+]  44 [5+]   0
Hits/KSLOC@level+ = [0+] 73.2631 [1+] 24.9734 [2+] 15.1497 [3+] 5.68115 [4+] 5.20772 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.