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/urjtag-0.10+r2007/src/stapl/jamstack.c
Examining data/urjtag-0.10+r2007/src/stapl/jamytab.h
Examining data/urjtag-0.10+r2007/src/stapl/jamheap.h
Examining data/urjtag-0.10+r2007/src/stapl/jamarray.c
Examining data/urjtag-0.10+r2007/src/stapl/jamutil.h
Examining data/urjtag-0.10+r2007/src/stapl/jamcomp.h
Examining data/urjtag-0.10+r2007/src/stapl/jamstack.h
Examining data/urjtag-0.10+r2007/src/stapl/jamarray.h
Examining data/urjtag-0.10+r2007/src/stapl/jamnote.c
Examining data/urjtag-0.10+r2007/src/stapl/jamdefs.h
Examining data/urjtag-0.10+r2007/src/stapl/jamcrc.c
Examining data/urjtag-0.10+r2007/src/stapl/jamcomp.c
Examining data/urjtag-0.10+r2007/src/stapl/jamsym.h
Examining data/urjtag-0.10+r2007/src/stapl/jamsym.c
Examining data/urjtag-0.10+r2007/src/stapl/stapl.c
Examining data/urjtag-0.10+r2007/src/stapl/jamexp.h
Examining data/urjtag-0.10+r2007/src/stapl/jamjtag.h
Examining data/urjtag-0.10+r2007/src/stapl/jamexec.c
Examining data/urjtag-0.10+r2007/src/stapl/jamjtag.c
Examining data/urjtag-0.10+r2007/src/stapl/jamexp.c
Examining data/urjtag-0.10+r2007/src/stapl/jamheap.c
Examining data/urjtag-0.10+r2007/src/stapl/jamexprt.h
Examining data/urjtag-0.10+r2007/src/stapl/jamexec.h
Examining data/urjtag-0.10+r2007/src/bus/buses.c
Examining data/urjtag-0.10+r2007/src/bus/au1500.c
Examining data/urjtag-0.10+r2007/src/bus/sh7750r.c
Examining data/urjtag-0.10+r2007/src/bus/bcm1250.c
Examining data/urjtag-0.10+r2007/src/bus/writemem.c
Examining data/urjtag-0.10+r2007/src/bus/slsup3.c
Examining data/urjtag-0.10+r2007/src/bus/arm9tdmi.c
Examining data/urjtag-0.10+r2007/src/bus/lh7a400.c
Examining data/urjtag-0.10+r2007/src/bus/generic_bus.h
Examining data/urjtag-0.10+r2007/src/bus/h7202.c
Examining data/urjtag-0.10+r2007/src/bus/bf533_stamp.c
Examining data/urjtag-0.10+r2007/src/bus/sharc21369_ezkit.c
Examining data/urjtag-0.10+r2007/src/bus/ejtag_dma.c
Examining data/urjtag-0.10+r2007/src/bus/zefant-xs3.c
Examining data/urjtag-0.10+r2007/src/bus/pxa2x0.c
Examining data/urjtag-0.10+r2007/src/bus/bf561_ezkit.c
Examining data/urjtag-0.10+r2007/src/bus/tx4925.c
Examining data/urjtag-0.10+r2007/src/bus/sharc21065l.c
Examining data/urjtag-0.10+r2007/src/bus/ejtag.c
Examining data/urjtag-0.10+r2007/src/bus/ixp465.c
Examining data/urjtag-0.10+r2007/src/bus/readmem.c
Examining data/urjtag-0.10+r2007/src/bus/blackfin.h
Examining data/urjtag-0.10+r2007/src/bus/mpc8313.c
Examining data/urjtag-0.10+r2007/src/bus/blackfin.c
Examining data/urjtag-0.10+r2007/src/bus/bf518f_ezbrd.c
Examining data/urjtag-0.10+r2007/src/bus/jopcyc.c
Examining data/urjtag-0.10+r2007/src/bus/sh7727.c
Examining data/urjtag-0.10+r2007/src/bus/ixp425.c
Examining data/urjtag-0.10+r2007/src/bus/pxa2x0_mc.h
Examining data/urjtag-0.10+r2007/src/bus/sa1110.c
Examining data/urjtag-0.10+r2007/src/bus/prototype.c
Examining data/urjtag-0.10+r2007/src/bus/buses.h
Examining data/urjtag-0.10+r2007/src/bus/buses_list.h
Examining data/urjtag-0.10+r2007/src/bus/mpc837x.c
Examining data/urjtag-0.10+r2007/src/bus/ppc440gx_ebc8.c
Examining data/urjtag-0.10+r2007/src/bus/avr32.c
Examining data/urjtag-0.10+r2007/src/bus/generic_bus.c
Examining data/urjtag-0.10+r2007/src/bus/bf537_stamp.c
Examining data/urjtag-0.10+r2007/src/bus/ixp435.c
Examining data/urjtag-0.10+r2007/src/bus/fjmem.c
Examining data/urjtag-0.10+r2007/src/bus/bf548_ezkit.c
Examining data/urjtag-0.10+r2007/src/bus/mpc824x.c
Examining data/urjtag-0.10+r2007/src/bus/mpc5200.c
Examining data/urjtag-0.10+r2007/src/bus/ppc405ep.c
Examining data/urjtag-0.10+r2007/src/bus/bscoach.c
Examining data/urjtag-0.10+r2007/src/bus/sh7751r.c
Examining data/urjtag-0.10+r2007/src/bus/s3c4510x.c
Examining data/urjtag-0.10+r2007/src/apps/jtag/jtag.c
Examining data/urjtag-0.10+r2007/src/apps/bsdl2jtag/bsdl2jtag.c
Examining data/urjtag-0.10+r2007/src/lib/usleep.c
Examining data/urjtag-0.10+r2007/src/lib/getdelim.c
Examining data/urjtag-0.10+r2007/src/lib/hex.c
Examining data/urjtag-0.10+r2007/src/lib/fclock.c
Examining data/urjtag-0.10+r2007/src/lib/lbasename.c
Examining data/urjtag-0.10+r2007/src/lib/lrealpath.c
Examining data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c
Examining data/urjtag-0.10+r2007/src/lib/getline.c
Examining data/urjtag-0.10+r2007/src/lib/safe-ctype.c
Examining data/urjtag-0.10+r2007/src/bsdl/bsdl_types.h
Examining data/urjtag-0.10+r2007/src/bsdl/bsdl_parser.h
Examining data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c
Examining data/urjtag-0.10+r2007/src/bsdl/bsdl_msg.h
Examining data/urjtag-0.10+r2007/src/bsdl/vhdl_parser.h
Examining data/urjtag-0.10+r2007/src/bsdl/bsdl.c
Examining data/urjtag-0.10+r2007/src/bsdl/bsdl_sysdep.h
Examining data/urjtag-0.10+r2007/src/svf/svf.h
Examining data/urjtag-0.10+r2007/src/svf/svf.c
Examining data/urjtag-0.10+r2007/src/tap/parport/ppdev.c
Examining data/urjtag-0.10+r2007/src/tap/parport/ppi.c
Examining data/urjtag-0.10+r2007/src/tap/parport/direct.c
Examining data/urjtag-0.10+r2007/src/tap/parport_list.h
Examining data/urjtag-0.10+r2007/src/tap/parport.c
Examining data/urjtag-0.10+r2007/src/tap/detect.c
Examining data/urjtag-0.10+r2007/src/tap/usbconn_list.h
Examining data/urjtag-0.10+r2007/src/tap/idcode.c
Examining data/urjtag-0.10+r2007/src/tap/cable.c
Examining data/urjtag-0.10+r2007/src/tap/usbconn.h
Examining data/urjtag-0.10+r2007/src/tap/cable/generic_usbconn_list.h
Examining data/urjtag-0.10+r2007/src/tap/cable/generic_parport.c
Examining data/urjtag-0.10+r2007/src/tap/cable/ice100.c
Examining data/urjtag-0.10+r2007/src/tap/cable/ea253.c
Examining data/urjtag-0.10+r2007/src/tap/cable/arcom.c
Examining data/urjtag-0.10+r2007/src/tap/cable/triton.c
Examining data/urjtag-0.10+r2007/src/tap/cable/cmd_xfer.h
Examining data/urjtag-0.10+r2007/src/tap/cable/jim.c
Examining data/urjtag-0.10+r2007/src/tap/cable/xpc.c
Examining data/urjtag-0.10+r2007/src/tap/cable/dlc5.c
Examining data/urjtag-0.10+r2007/src/tap/cable/generic.c
Examining data/urjtag-0.10+r2007/src/tap/cable/keithkoep.c
Examining data/urjtag-0.10+r2007/src/tap/cable/generic_usbconn.h
Examining data/urjtag-0.10+r2007/src/tap/cable/ft2232.c
Examining data/urjtag-0.10+r2007/src/tap/cable/jlink.c
Examining data/urjtag-0.10+r2007/src/tap/cable/ts7800.c
Examining data/urjtag-0.10+r2007/src/tap/cable/generic_usbconn.c
Examining data/urjtag-0.10+r2007/src/tap/cable/cmd_xfer.c
Examining data/urjtag-0.10+r2007/src/tap/cable/vsllink.c
Examining data/urjtag-0.10+r2007/src/tap/cable/mpcbdm.c
Examining data/urjtag-0.10+r2007/src/tap/cable/ei012.c
Examining data/urjtag-0.10+r2007/src/tap/cable/lattice.c
Examining data/urjtag-0.10+r2007/src/tap/cable/gpio.c
Examining data/urjtag-0.10+r2007/src/tap/cable/generic.h
Examining data/urjtag-0.10+r2007/src/tap/cable/generic_parport.h
Examining data/urjtag-0.10+r2007/src/tap/cable/minimal.c
Examining data/urjtag-0.10+r2007/src/tap/cable/wiggler2.c
Examining data/urjtag-0.10+r2007/src/tap/cable/usbblaster.c
Examining data/urjtag-0.10+r2007/src/tap/cable/wiggler.c
Examining data/urjtag-0.10+r2007/src/tap/cable/vision_ep9307.c
Examining data/urjtag-0.10+r2007/src/tap/cable/byteblaster.c
Examining data/urjtag-0.10+r2007/src/tap/tap.c
Examining data/urjtag-0.10+r2007/src/tap/usbconn.c
Examining data/urjtag-0.10+r2007/src/tap/register.c
Examining data/urjtag-0.10+r2007/src/tap/cable_list.h
Examining data/urjtag-0.10+r2007/src/tap/chain.c
Examining data/urjtag-0.10+r2007/src/tap/usbconn/libusb.c
Examining data/urjtag-0.10+r2007/src/tap/usbconn/libusb.h
Examining data/urjtag-0.10+r2007/src/tap/usbconn/libftdx.h
Examining data/urjtag-0.10+r2007/src/tap/usbconn/libftd2xx.c
Examining data/urjtag-0.10+r2007/src/tap/usbconn/libftdi.c
Examining data/urjtag-0.10+r2007/src/tap/state.c
Examining data/urjtag-0.10+r2007/src/tap/discovery.c
Examining data/urjtag-0.10+r2007/src/tap/cable.h
Examining data/urjtag-0.10+r2007/src/tap/parport.h
Examining data/urjtag-0.10+r2007/src/global/data_dir.c
Examining data/urjtag-0.10+r2007/src/global/params.c
Examining data/urjtag-0.10+r2007/src/global/log-error.c
Examining data/urjtag-0.10+r2007/src/global/parse.c
Examining data/urjtag-0.10+r2007/src/pld/xilinx.c
Examining data/urjtag-0.10+r2007/src/pld/xilinx_bitstream.c
Examining data/urjtag-0.10+r2007/src/pld/xilinx.h
Examining data/urjtag-0.10+r2007/src/pld/pld.c
Examining data/urjtag-0.10+r2007/src/bfin/insn-gen.c
Examining data/urjtag-0.10+r2007/src/bfin/bfin.c
Examining data/urjtag-0.10+r2007/src/flash/cfi.c
Examining data/urjtag-0.10+r2007/src/flash/amd.c
Examining data/urjtag-0.10+r2007/src/flash/flash.h
Examining data/urjtag-0.10+r2007/src/flash/intel.h
Examining data/urjtag-0.10+r2007/src/flash/mic.h
Examining data/urjtag-0.10+r2007/src/flash/detectflash.c
Examining data/urjtag-0.10+r2007/src/flash/flash.c
Examining data/urjtag-0.10+r2007/src/flash/amd_flash.c
Examining data/urjtag-0.10+r2007/src/flash/cfi.h
Examining data/urjtag-0.10+r2007/src/flash/amd.h
Examining data/urjtag-0.10+r2007/src/flash/jedec_exp.c
Examining data/urjtag-0.10+r2007/src/flash/intel.c
Examining data/urjtag-0.10+r2007/src/flash/jedec.c
Examining data/urjtag-0.10+r2007/src/flash/jedec.h
Examining data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_include.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd.h
Examining data/urjtag-0.10+r2007/src/cmd/cmd_shell.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_get.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_test.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_endian.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_bit.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_usleep.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_detectflash.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_writemem.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_salias.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_bus.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_part.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_addpart.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_discovery.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_dr.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_bsdl.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_signal.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_print.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_svf.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_eraseflash.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_set.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_peekpoke.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_detect.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_pld.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_idcode.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_frequency.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_quit.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_stapl.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_lockflash.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_initbus.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_readmem.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_debug.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_reset.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_register.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_pod.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_shift.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_instruction.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_flashmem.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_list.h
Examining data/urjtag-0.10+r2007/src/cmd/cmd_scan.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_help.c
Examining data/urjtag-0.10+r2007/src/cmd/cmd_cable.c
Examining data/urjtag-0.10+r2007/src/part/signal.c
Examining data/urjtag-0.10+r2007/src/part/bsbit.c
Examining data/urjtag-0.10+r2007/src/part/data_register.c
Examining data/urjtag-0.10+r2007/src/part/part.c
Examining data/urjtag-0.10+r2007/src/part/instruction.c
Examining data/urjtag-0.10+r2007/src/jim/some_cpu.c
Examining data/urjtag-0.10+r2007/src/jim/intel_28f800b3.c
Examining data/urjtag-0.10+r2007/src/jim/jim_tap.c
Examining data/urjtag-0.10+r2007/sysdep.h
Examining data/urjtag-0.10+r2007/include/lex.h
Examining data/urjtag-0.10+r2007/include/ansidecl.h
Examining data/urjtag-0.10+r2007/include/libiberty.h
Examining data/urjtag-0.10+r2007/include/urjtag/cmd.h
Examining data/urjtag-0.10+r2007/include/urjtag/bus_driver.h
Examining data/urjtag-0.10+r2007/include/urjtag/flash.h
Examining data/urjtag-0.10+r2007/include/urjtag/jtag.h
Examining data/urjtag-0.10+r2007/include/urjtag/bus.h
Examining data/urjtag-0.10+r2007/include/urjtag/pod.h
Examining data/urjtag-0.10+r2007/include/urjtag/tap_register.h
Examining data/urjtag-0.10+r2007/include/urjtag/usbconn.h
Examining data/urjtag-0.10+r2007/include/urjtag/types.h
Examining data/urjtag-0.10+r2007/include/urjtag/tap_state.h
Examining data/urjtag-0.10+r2007/include/urjtag/svf.h
Examining data/urjtag-0.10+r2007/include/urjtag/bssignal.h
Examining data/urjtag-0.10+r2007/include/urjtag/error.h
Examining data/urjtag-0.10+r2007/include/urjtag/bitmask.h
Examining data/urjtag-0.10+r2007/include/urjtag/stapl.h
Examining data/urjtag-0.10+r2007/include/urjtag/bsdl_mode.h
Examining data/urjtag-0.10+r2007/include/urjtag/jim.h
Examining data/urjtag-0.10+r2007/include/urjtag/bitops.h
Examining data/urjtag-0.10+r2007/include/urjtag/params.h
Examining data/urjtag-0.10+r2007/include/urjtag/bsdl.h
Examining data/urjtag-0.10+r2007/include/urjtag/gettext.h
Examining data/urjtag-0.10+r2007/include/urjtag/tap.h
Examining data/urjtag-0.10+r2007/include/urjtag/parse.h
Examining data/urjtag-0.10+r2007/include/urjtag/bsbit.h
Examining data/urjtag-0.10+r2007/include/urjtag/fclock.h
Examining data/urjtag-0.10+r2007/include/urjtag/data_register.h
Examining data/urjtag-0.10+r2007/include/urjtag/pld.h
Examining data/urjtag-0.10+r2007/include/urjtag/chain.h
Examining data/urjtag-0.10+r2007/include/urjtag/log.h
Examining data/urjtag-0.10+r2007/include/urjtag/cable.h
Examining data/urjtag-0.10+r2007/include/urjtag/part.h
Examining data/urjtag-0.10+r2007/include/urjtag/parport.h
Examining data/urjtag-0.10+r2007/include/urjtag/part_instruction.h
Examining data/urjtag-0.10+r2007/include/urjtag/bfin.h
Examining data/urjtag-0.10+r2007/include/filenames.h
Examining data/urjtag-0.10+r2007/include/safe-ctype.h

FINAL RESULTS:

data/urjtag-0.10+r2007/include/libiberty.h:601:12:  [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.
extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3;
data/urjtag-0.10+r2007/include/libiberty.h:606:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0);
data/urjtag-0.10+r2007/include/urjtag/error.h:120:9:  [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 (urj_error_state.msg, sizeof urj_error_state.msg, \
data/urjtag-0.10+r2007/include/urjtag/log.h:46:49:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                        __attribute__ ((format (printf, 5, 6)))
data/urjtag-0.10+r2007/src/apps/bsdl2jtag/bsdl2jtag.c:40:12:  [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.
    return vfprintf (jtag_file, fmt, ap);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:86:13:  [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 (home, drive);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:87:13:  [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 (home, path);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:111: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 (ret, home);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:113: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 (ret, JTAGDIR);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:117:9:  [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 (ret, subpath);
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:282:21:  [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 (name, globs->path_list[idx]);
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:284:21:  [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 (name, elem->d_name);
data/urjtag-0.10+r2007/src/bus/avr32.c:125:25:  [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( f, ## __VA_ARGS__ );            \
data/urjtag-0.10+r2007/src/bus/blackfin.c:34:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "%s%i", spin, i + off);
data/urjtag-0.10+r2007/src/bus/prototype.c:76:13:  [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.
    switch (sscanf (str, "%[^0-9]%d%s", pre, inst, suf))
data/urjtag-0.10+r2007/src/bus/prototype.c:79:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (fmt, str);
data/urjtag-0.10+r2007/src/bus/prototype.c:82:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (fmt, "%s%s", pre, "%d");
data/urjtag-0.10+r2007/src/bus/prototype.c:85:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (fmt, "%s%s%s", pre, "%d", suf);
data/urjtag-0.10+r2007/src/bus/prototype.c:177:17:  [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 (afmt, fmt);
data/urjtag-0.10+r2007/src/bus/prototype.c:182:17:  [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 (afmt, fmt);
data/urjtag-0.10+r2007/src/bus/prototype.c:187:17:  [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 (dfmt, fmt);
data/urjtag-0.10+r2007/src/bus/prototype.c:192:17:  [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 (dfmt, fmt);
data/urjtag-0.10+r2007/src/bus/prototype.c:225:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf (buff, afmt, min);
data/urjtag-0.10+r2007/src/bus/prototype.c:232:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf (buff, afmt, max);
data/urjtag-0.10+r2007/src/bus/prototype.c:246:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf (buff, afmt, j);
data/urjtag-0.10+r2007/src/bus/prototype.c:264:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf (buff, dfmt, min);
data/urjtag-0.10+r2007/src/bus/prototype.c:271:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf (buff, dfmt, max);
data/urjtag-0.10+r2007/src/bus/prototype.c:285:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf (buff, dfmt, j);
data/urjtag-0.10+r2007/src/bus/pxa2x0.c:372:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (NCS_MAP[ncs_index].label_buf,
data/urjtag-0.10+r2007/src/bus/pxa2x0.c:475:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (NCS_MAP[ncs_index].label_buf,
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:243:25:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
                    if (sscanf (params[i], "0%[xX]%"PRIx64, tmp, &n) != 2)
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:328:31:  [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.
                        ret = system (tmp_buf);
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:138:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (search_text, "%s/%s", jtag_data_dir, text);
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:130:13:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
            swprintf (wheader, sizeof format, wformat, _("Instruction"), _("Register"));
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:135:13:  [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, sizeof format, format, _("Instruction"), _("Register"));
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:173:9:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
        swprintf (wheader, sizeof format, wformat, _("Manufacturer"), _("Part"),
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:179:9:  [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, sizeof format, format, _("Manufacturer"), _("Part"),
data/urjtag-0.10+r2007/src/cmd/cmd_shell.c:74: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 (shell_cmd, params[1]);
data/urjtag-0.10+r2007/src/cmd/cmd_shell.c:78:9:  [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 (shell_cmd, params[i]);
data/urjtag-0.10+r2007/src/cmd/cmd_shell.c:82:9:  [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.
    i = system (shell_cmd);
data/urjtag-0.10+r2007/src/global/log-error.c:50:12:  [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.
    return vfprintf (stderr, fmt, ap);
data/urjtag-0.10+r2007/src/global/log-error.c:56:13:  [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.
    int r = vfprintf (stdout, fmt, ap);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:274: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 (nstore, progname);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:275:11:  [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 (nstore, X_OK)
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:277:28:  [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.
                      || ! access (strcat (nstore, HOST_EXECUTABLE_SUFFIX), X_OK)
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:277:36:  [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).
                      || ! access (strcat (nstore, HOST_EXECUTABLE_SUFFIX), X_OK)
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:365: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 (ret, prog_dirs[i]);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:371:7:  [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 (ptr, DIR_UP);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:379: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 (ret, prefix_dirs[i]);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:1577:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (block_buffer, block_name);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:1924:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (procedure_buffer, procedure_name);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:2769:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (goto_label, &statement_buffer[label_begin]);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:4455:17:  [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 (statement_buffer, &statement_buffer[index]);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:6936:25:  [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 ((char *) heap_record->data,
data/urjtag-0.10+r2007/src/stapl/jamexp.c:1329: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 (urj_jam_parse_string, expression);
data/urjtag-0.10+r2007/src/stapl/stapl.c:437:14:  [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.
    else if (access (filename, 0) != 0)
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:130:23:  [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.
#define DEBUG(...)    printf(__VA_ARGS__)
data/urjtag-0.10+r2007/src/tap/cable/jlink.c:412:13:  [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 (line, s);
data/urjtag-0.10+r2007/src/tap/detect.c:422:13:  [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/urjtag-0.10+r2007/src/tap/detect.c:423:13:  [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/urjtag-0.10+r2007/src/tap/detect.c:424:13:  [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/urjtag-0.10+r2007/src/tap/register.c:151:13:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf (str, "%"PRIX64, &val) != 1)
data/urjtag-0.10+r2007/sysdep.h:53:9:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define swprintf _snwprintf
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:66:18:  [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/urjtag-0.10+r2007/src/apps/jtag/jtag.c:74:29:  [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.
        const char *drive = getenv ("HOMEDRIVE");
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:75:28:  [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.
        const char *path = getenv ("HOMEPATH");
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:393:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long (argc, argv, "vnhiq", long_options, &option_index);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:577:36:  [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.
        jtag_readline_loop (chain, getenv ("JTAG_PROMPT") ? : "jtag> ");
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:304:35:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
                        tmpfile = tmpnam (NULL);
data/urjtag-0.10+r2007/src/lib/lrealpath.c:85:22:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    const char *rp = realpath (filename, buf);
data/urjtag-0.10+r2007/src/lib/lrealpath.c:123:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	rp = realpath (filename, buf);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:242:14:  [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.
      temp = getenv ("PATH");
data/urjtag-0.10+r2007/src/tap/parport/direct.c:141:31:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        inpout32_dll_handle = LoadLibrary ("inpout32.dll");
data/urjtag-0.10+r2007/include/libiberty.h:349:23:  [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.
extern const unsigned char _hex_value[_hex_array_size];
data/urjtag-0.10+r2007/include/libiberty.h:631:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); }))
data/urjtag-0.10+r2007/include/libiberty.h:645:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len))
data/urjtag-0.10+r2007/include/safe-ctype.h:114:23:  [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.
extern const unsigned char  _sch_toupper[256];
data/urjtag-0.10+r2007/include/safe-ctype.h:115:23:  [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.
extern const unsigned char  _sch_tolower[256];
data/urjtag-0.10+r2007/include/urjtag/data_register.h:34: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 name[URJ_DATA_REGISTER_MAXLEN + 1];    /* (public) register name */
data/urjtag-0.10+r2007/include/urjtag/error.h:95: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                msg[URJ_ERROR_MSG_LEN]; /**< printf-style message */
data/urjtag-0.10+r2007/include/urjtag/parport.h:49:11:  [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) (urj_parport_t *);
data/urjtag-0.10+r2007/include/urjtag/part.h:45: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 manufacturer[URJ_PART_MANUFACTURER_MAXLEN + 1];
data/urjtag-0.10+r2007/include/urjtag/part.h:46: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 part[URJ_PART_PART_MAXLEN + 1];
data/urjtag-0.10+r2007/include/urjtag/part.h:47: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 stepping[URJ_PART_STEPPING_MAXLEN + 1];
data/urjtag-0.10+r2007/include/urjtag/part.h:101: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 part[URJ_PART_PART_MAXLEN + 1];
data/urjtag-0.10+r2007/include/urjtag/part_instruction.h:34: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 name[URJ_INSTRUCTION_MAXLEN_INSTRUCTION + 1];
data/urjtag-0.10+r2007/include/urjtag/usbconn.h:52:11:  [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) (urj_usbconn_t *);
data/urjtag-0.10+r2007/src/apps/bsdl2jtag/bsdl2jtag.c:83: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).
    jtag_file = fopen (argv[2], FOPEN_W);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:85:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy (home, "HOME=");
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:313: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 line[1024];
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:115: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).
    BSDL_File = fopen (BSDL_File_Name, FOPEN_R);
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:216:13:  [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 (pathelem, elem, len);
data/urjtag-0.10+r2007/src/bsdl/bsdl_types.h:162: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 Package_File_Name[100];
data/urjtag-0.10+r2007/src/bus/au1500.c:69: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/urjtag-0.10+r2007/src/bus/au1500.c:80: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, "RAD%d", i);
data/urjtag-0.10+r2007/src/bus/au1500.c:86: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, "RCE_N%d", i);
data/urjtag-0.10+r2007/src/bus/au1500.c:97: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, "RD%d", i);
data/urjtag-0.10+r2007/src/bus/bcm1250.c:67: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/urjtag-0.10+r2007/src/bus/bcm1250.c:78: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/urjtag-0.10+r2007/src/bus/bcm1250.c:84: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/urjtag-0.10+r2007/src/bus/bcm1250.c:301: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 ctrl[15] = "010000000000";
data/urjtag-0.10+r2007/src/bus/bcm1250.c:302: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 addrr[80] = "0000" "111" "000"
data/urjtag-0.10+r2007/src/bus/bcm1250.c:481:14:  [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/urjtag-0.10+r2007/src/bus/bcm1250.c:517:14:  [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/urjtag-0.10+r2007/src/bus/blackfin.c:29:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[16];
data/urjtag-0.10+r2007/src/bus/h7202.c:65: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/urjtag-0.10+r2007/src/bus/h7202.c:76: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, "RA%d", i);
data/urjtag-0.10+r2007/src/bus/h7202.c:82: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, "RD%d", i);
data/urjtag-0.10+r2007/src/bus/h7202.c:88: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, "nRCS%d", i);
data/urjtag-0.10+r2007/src/bus/h7202.c:96: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, "nRWE%d", i);
data/urjtag-0.10+r2007/src/bus/ixp425.c:65: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[15];
data/urjtag-0.10+r2007/src/bus/ixp425.c:76: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, "EX_CS[%d]", i);
data/urjtag-0.10+r2007/src/bus/ixp425.c:82: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, "EX_ADDR[%d]", i);
data/urjtag-0.10+r2007/src/bus/ixp425.c:88: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, "EX_DATA[%d]", i);
data/urjtag-0.10+r2007/src/bus/ixp435.c:65: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[15];
data/urjtag-0.10+r2007/src/bus/ixp435.c:75: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, "ex_cs_n%d", i);
data/urjtag-0.10+r2007/src/bus/ixp435.c:80: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, "ex_addr%d", i);
data/urjtag-0.10+r2007/src/bus/ixp435.c:85: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, "ex_data%d", i);
data/urjtag-0.10+r2007/src/bus/ixp465.c:66: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[15];
data/urjtag-0.10+r2007/src/bus/ixp465.c:91: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, "ex_cs_n_%d", i);
data/urjtag-0.10+r2007/src/bus/ixp465.c:96: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, "ex_addr_%d", i);
data/urjtag-0.10+r2007/src/bus/ixp465.c:101: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, "ex_data_%d", i);
data/urjtag-0.10+r2007/src/bus/lh7a400.c:81: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/urjtag-0.10+r2007/src/bus/lh7a400.c:92: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, "A%d", i);
data/urjtag-0.10+r2007/src/bus/lh7a400.c:98: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, "D%d", i);
data/urjtag-0.10+r2007/src/bus/lh7a400.c:104: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, "nCS%d", i);
data/urjtag-0.10+r2007/src/bus/lh7a400.c:110: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, "WIDTH%d", i);
data/urjtag-0.10+r2007/src/bus/mpc5200.c:82: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/urjtag-0.10+r2007/src/bus/mpc5200.c:118: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, "EXT_AD_%d", i);
data/urjtag-0.10+r2007/src/bus/mpc5200.c:124: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, "LP_CS%d_B", i);
data/urjtag-0.10+r2007/src/bus/mpc824x.c:81: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/urjtag-0.10+r2007/src/bus/mpc824x.c:188: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, "SDMA%d", i);
data/urjtag-0.10+r2007/src/bus/mpc824x.c:196: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, "PAR%d", i);
data/urjtag-0.10+r2007/src/bus/mpc824x.c:225: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, "MDH%d", 31 - i);
data/urjtag-0.10+r2007/src/bus/mpc8313.c:77: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/urjtag-0.10+r2007/src/bus/mpc8313.c:138: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, "LA%d", i);
data/urjtag-0.10+r2007/src/bus/mpc8313.c:144: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, "LAD%d", i);
data/urjtag-0.10+r2007/src/bus/mpc837x.c:80: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/urjtag-0.10+r2007/src/bus/mpc837x.c:152:13:  [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, "LAD%d", i);
data/urjtag-0.10+r2007/src/bus/mpc837x.c:164:13:  [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, "LAD%d", i + 5);
data/urjtag-0.10+r2007/src/bus/mpc837x.c:171: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, "LA%d", i);
data/urjtag-0.10+r2007/src/bus/mpc837x.c:177: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, "LCS_B%d", i);
data/urjtag-0.10+r2007/src/bus/mpc837x.c:183: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, "LWE_B%d", i);
data/urjtag-0.10+r2007/src/bus/ppc405ep.c:65: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/urjtag-0.10+r2007/src/bus/ppc405ep.c:76: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, "PerAddr%d", i);
data/urjtag-0.10+r2007/src/bus/ppc405ep.c:82: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, "PerData%d", i);
data/urjtag-0.10+r2007/src/bus/ppc440gx_ebc8.c:65: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/urjtag-0.10+r2007/src/bus/ppc440gx_ebc8.c:76: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, "EBCADR%d", i);
data/urjtag-0.10+r2007/src/bus/ppc440gx_ebc8.c:82: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, "EBCDATA%d", i);
data/urjtag-0.10+r2007/src/bus/prototype.c:74: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 pre[16], suf[16];
data/urjtag-0.10+r2007/src/bus/prototype.c:100: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[16], fmt[16], afmt[16], dfmt[16];
data/urjtag-0.10+r2007/src/bus/pxa2x0.c:68: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 label_buf[81];
data/urjtag-0.10+r2007/src/bus/pxa2x0.c:154: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/urjtag-0.10+r2007/src/bus/pxa2x0.c:182: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, "MA[%d]", i);
data/urjtag-0.10+r2007/src/bus/pxa2x0.c:188: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, "MD[%d]", i);
data/urjtag-0.10+r2007/src/bus/pxa2x0.c:223: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, "DQM[%d]", i);
data/urjtag-0.10+r2007/src/bus/s3c4510x.c:109: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/urjtag-0.10+r2007/src/bus/s3c4510x.c:122: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, "ADDR%d", i);
data/urjtag-0.10+r2007/src/bus/s3c4510x.c:128: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, "XDATA%d", i);
data/urjtag-0.10+r2007/src/bus/s3c4510x.c:134: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, "nRCS%d", i);
data/urjtag-0.10+r2007/src/bus/s3c4510x.c:140: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, "nECS%d", i);
data/urjtag-0.10+r2007/src/bus/s3c4510x.c:146: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, "nRAS%d", i);    /* those are nSDCS for SDRAMs only */
data/urjtag-0.10+r2007/src/bus/s3c4510x.c:152: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, "nWBE%d", i);
data/urjtag-0.10+r2007/src/bus/sa1110.c:70: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/urjtag-0.10+r2007/src/bus/sa1110.c:81: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, "A%d", i);
data/urjtag-0.10+r2007/src/bus/sa1110.c:87: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, "D%d", i);
data/urjtag-0.10+r2007/src/bus/sa1110.c:93: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, "nCS%d", i);
data/urjtag-0.10+r2007/src/bus/sh7727.c:71: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/urjtag-0.10+r2007/src/bus/sh7727.c:82: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, "A%d", i);
data/urjtag-0.10+r2007/src/bus/sh7727.c:88: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, "D%d", i);
data/urjtag-0.10+r2007/src/bus/sh7727.c:96: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, "CS%d", i);
data/urjtag-0.10+r2007/src/bus/sh7727.c:102: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, "WE%d", i);
data/urjtag-0.10+r2007/src/bus/sh7750r.c:71: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/urjtag-0.10+r2007/src/bus/sh7750r.c:82: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, "A%d", i);
data/urjtag-0.10+r2007/src/bus/sh7750r.c:88: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, "D%d", i);
data/urjtag-0.10+r2007/src/bus/sh7750r.c:94: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, "CS%d", i);
data/urjtag-0.10+r2007/src/bus/sh7750r.c:100: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, "WE%d", i);
data/urjtag-0.10+r2007/src/bus/sh7751r.c:69: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/urjtag-0.10+r2007/src/bus/sh7751r.c:80: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, "A%d", i);
data/urjtag-0.10+r2007/src/bus/sh7751r.c:86: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, "D%d", i);
data/urjtag-0.10+r2007/src/bus/sh7751r.c:92: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, "CS%d", i);
data/urjtag-0.10+r2007/src/bus/sh7751r.c:98: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, "WE%d", i);
data/urjtag-0.10+r2007/src/bus/sharc21065l.c:73: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[15];
data/urjtag-0.10+r2007/src/bus/sharc21065l.c:84: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, "ADDR%d", i);
data/urjtag-0.10+r2007/src/bus/sharc21065l.c:90: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, "DATA%d", i);
data/urjtag-0.10+r2007/src/bus/sharc21369_ezkit.c:75: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[15];
data/urjtag-0.10+r2007/src/bus/sharc21369_ezkit.c:85: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, "ADDR%d", i );
data/urjtag-0.10+r2007/src/bus/sharc21369_ezkit.c:90: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, "DATA%d", i );
data/urjtag-0.10+r2007/src/bus/slsup3.c:105: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/urjtag-0.10+r2007/src/bus/slsup3.c:116: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%d", addrbusio[i]);
data/urjtag-0.10+r2007/src/bus/slsup3.c:122: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%d", databusio[i]);
data/urjtag-0.10+r2007/src/bus/tx4925.c:79: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[15];
data/urjtag-0.10+r2007/src/bus/tx4925.c:94: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, "ROMCE_%d", i);
data/urjtag-0.10+r2007/src/bus/tx4925.c:100: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, "SDCS_%d", i);
data/urjtag-0.10+r2007/src/bus/tx4925.c:106: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, "ADDR_%d", i);
data/urjtag-0.10+r2007/src/bus/tx4925.c:112: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, "DATA_%d", i);
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:218:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tmp[8];
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:262:30:  [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 raw_insn[4];
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:269:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char insns_string[1024];
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:302:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                    if (!tmpfile)
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:305:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                        if (!tmpfile)
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:307:43:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                        tmpfile = strdup (tmpfile);
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:308:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                        if (!tmpfile)
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:322:55:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                                        insns_string, tmpfile, tuples[t]);
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:353:26:  [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 (tmpfile, FOPEN_R);
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:353:33:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                    fp = fopen (tmpfile, FOPEN_R);
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:411:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
            if (tmpfile)
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:413:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                unlink (tmpfile);
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:414:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                free (tmpfile);
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:68: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 command[1024];
data/urjtag-0.10+r2007/src/cmd/cmd_bus.c:80: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 num[16];
data/urjtag-0.10+r2007/src/cmd/cmd_bus.c:82: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 (num, "%i", i);
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:279:17:  [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 *help_params[3] = { "help", params[0], NULL };
data/urjtag-0.10+r2007/src/cmd/cmd_flashmem.c:73:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (params[2], FOPEN_R);
data/urjtag-0.10+r2007/src/cmd/cmd_part.c:144: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 num[16];
data/urjtag-0.10+r2007/src/cmd/cmd_part.c:146: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 (num, "%i", i);
data/urjtag-0.10+r2007/src/cmd/cmd_pld.c:69:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((pld_file = fopen (params[2], FOPEN_R)) != NULL)
data/urjtag-0.10+r2007/src/cmd/cmd_pod.c:91:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (atoi (eq + 1) != 0)
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:56: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 format[FORMAT_LENGTH];
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:58:5:  [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[FORMAT_LENGTH];
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:60:5:  [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[FORMAT_LENGTH];
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:61: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 header[FORMAT_LENGTH];
data/urjtag-0.10+r2007/src/cmd/cmd_readmem.c:65:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (params[3], FOPEN_W);
data/urjtag-0.10+r2007/src/cmd/cmd_svf.c:81:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((SVF_FILE = fopen (params[1], FOPEN_R)) != NULL)
data/urjtag-0.10+r2007/src/cmd/cmd_writemem.c:63:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (params[3], FOPEN_R);
data/urjtag-0.10+r2007/src/flash/detectflash.c:259:15:  [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.
        const char *required_or_not[2] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:262:15:  [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.
        const char *supported_or_not[2] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:265:15:  [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.
        const char *process_technology[6] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:273:15:  [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.
        const char *process_technology_13[3] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:276:15:  [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.
        const char *erase_suspend[3] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:279:15:  [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.
        const char *sector_protect_scheme[8] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:287:15:  [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.
        const char *page_mode_type[4] = {
data/urjtag-0.10+r2007/src/flash/detectflash.c:292:15:  [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.
        const char *top_bottom[6] = {
data/urjtag-0.10+r2007/src/flash/flash.c:127: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 sync[8];
data/urjtag-0.10+r2007/src/global/log-error.c:214:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char msg[URJ_ERROR_MSG_LEN + 1024 + 256 + 20];
data/urjtag-0.10+r2007/src/global/params.c:284:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[PARAM_BUF_SIZE];
data/urjtag-0.10+r2007/src/global/parse.c:228:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (filename, FOPEN_R);
data/urjtag-0.10+r2007/src/jim/intel_28f800b3.c:61:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *intel_28fxxx_opstate_name[16] = {
data/urjtag-0.10+r2007/src/jim/some_cpu.c:227:13:  [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 (dev->state, some_cpu_attached,
data/urjtag-0.10+r2007/src/jim/some_cpu.c:241:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (*b, some_cpu_attached[i].part,
data/urjtag-0.10+r2007/src/lib/hex.c:75:16:  [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.
const unsigned char _hex_value[_hex_array_size] =
data/urjtag-0.10+r2007/src/lib/hex.c:154:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char _hex_value[_hex_array_size];
data/urjtag-0.10+r2007/src/lib/lrealpath.c:84: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 buf[REALPATH_LIMIT];
data/urjtag-0.10+r2007/src/lib/lrealpath.c:139: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 buf[MAX_PATH];
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:107: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 (result, s, len);
data/urjtag-0.10+r2007/src/lib/safe-ctype.c:191:16:  [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.
const unsigned char _sch_tolower[256] =
data/urjtag-0.10+r2007/src/lib/safe-ctype.c:220:16:  [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.
const unsigned char _sch_toupper[256] =
data/urjtag-0.10+r2007/src/part/part.c:299: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 format[100];
data/urjtag-0.10+r2007/src/stapl/jamarray.c:33: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 string[4];
data/urjtag-0.10+r2007/src/stapl/jamarray.c:802: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 expr_buffer[JAMC_MAX_STATEMENT_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamarray.c:1720: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 expr_buffer[JAMC_MAX_STATEMENT_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:393: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 string[JAMC_MAX_INSTR_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:453: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 instr_name[JAMC_MAX_INSTR_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:1544: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 block_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:1545: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 label_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:1893: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 procedure_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:1894: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 label_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:2734: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 label_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:2735: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 goto_label[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:7866: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 *signal_names[JAMC_MAX_VECTOR_SIGNALS];
data/urjtag-0.10+r2007/src/stapl/jamexec.c:8483: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 label_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamexp.c:132: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 urj_jam_token_buffer[MAX_BUFFER_LENGTH];
data/urjtag-0.10+r2007/src/stapl/jamexp.c:134: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 urj_jam_parse_string[MAX_BUFFER_LENGTH];
data/urjtag-0.10+r2007/src/stapl/jamexp.c:1154:26:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *value = 0 - atol (&string[1]);
data/urjtag-0.10+r2007/src/stapl/jamexp.c:1158:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *value = atol (string);
data/urjtag-0.10+r2007/src/stapl/jamjtag.c:58: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 string[JAMC_MAX_JTAG_STATE_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamnote.c:216: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 statement_buffer[JAMC_MAX_STATEMENT_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamnote.c:217: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 label_buffer[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamsym.c:182:31:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        val = atol (&init_string[ch_index]);
data/urjtag-0.10+r2007/src/stapl/jamsym.h:43: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 name[JAMC_MAX_NAME_LENGTH + 1];
data/urjtag-0.10+r2007/src/stapl/jamutil.h:37:5:  [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, "%i", value);
data/urjtag-0.10+r2007/src/stapl/stapl.c:195: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 string[HEX_LINE_CHARS + 1];
data/urjtag-0.10+r2007/src/stapl/stapl.c:373: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 key[33] = { 0 };
data/urjtag-0.10+r2007/src/stapl/stapl.c:374: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 value[257] = { 0 };
data/urjtag-0.10+r2007/src/stapl/stapl.c:383: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 *init_list[10];
data/urjtag-0.10+r2007/src/stapl/stapl.c:449:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fp = fopen (filename, "rb")) == NULL)
data/urjtag-0.10+r2007/src/tap/cable.c:192:21:  [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 (&q->data[q->max_items], &q->data[0],
data/urjtag-0.10+r2007/src/tap/cable.c:207:21:  [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 (&q->data[q->max_items], &q->data[0],
data/urjtag-0.10+r2007/src/tap/cable.c:451:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (out,
data/urjtag-0.10+r2007/src/tap/cable.c:512:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (ibuf, in, len);
data/urjtag-0.10+r2007/src/tap/cable/generic.c:295:25:  [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 (in + bits,
data/urjtag-0.10+r2007/src/tap/cable/generic.c:361:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (p, out + bits, len);
data/urjtag-0.10+r2007/src/tap/cable/generic_usbconn.c:233:30:  [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.
                params[1] = (char *)urj_tap_cable_usbconn_cables[j]->name;
data/urjtag-0.10+r2007/src/tap/cable/gpio.c:72: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).
    fp = fopen (fname, FOPEN_W);
data/urjtag-0.10+r2007/src/tap/cable/gpio.c:88: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 fname[50];
data/urjtag-0.10+r2007/src/tap/cable/gpio.c:95: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).
    fp = fopen (fname, FOPEN_W);
data/urjtag-0.10+r2007/src/tap/cable/gpio.c:150: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 fname[50];
data/urjtag-0.10+r2007/src/tap/cable/gpio.c:168:26:  [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_gpios[i] = open (fname, O_RDWR);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:368: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).
    hex_file = fopen (filename, FOPEN_R);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:621:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buffer + 4, &address, 4);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:622:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buffer + 8, &count, 4);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:623:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buffer + 12, &crc, 2);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:624:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buffer + 16, p->data + p->bytes - remaining - count, count);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1003:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tms[64], tdi[64];
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1009: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 (&tms[x], " %2.2X", tap_info->pairs[z].tms);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1010: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 (&tdi[x], " %2.2X", tap_info->pairs[z].tdi);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1114:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char tms[128], tdi[128];
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1119: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 (&tms[x], " %2.2X", tap_info->pairs[z].tms);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1120: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 (&tdi[x], " %2.2X", tap_info->pairs[z].tdi);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1837:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (raw_buf + i, &data, 4);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1839:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (raw_buf + i + 2, &data, 4);
data/urjtag-0.10+r2007/src/tap/cable/ice100.c:1842:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (raw_buf + i + 4, &dof_start, 4);
data/urjtag-0.10+r2007/src/tap/cable/jlink.c:64:14:  [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 usb_in_buffer[JLINK_IN_BUFFER_SIZE];
data/urjtag-0.10+r2007/src/tap/cable/jlink.c:65:14:  [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 usb_out_buffer[JLINK_OUT_BUFFER_SIZE];
data/urjtag-0.10+r2007/src/tap/cable/jlink.c:401: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 line[81];
data/urjtag-0.10+r2007/src/tap/cable/jlink.c:402: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 s[4];
data/urjtag-0.10+r2007/src/tap/cable/ts7800.c:86:21:  [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_dev_mem = open ("/dev/mem", O_RDWR | O_SYNC);
data/urjtag-0.10+r2007/src/tap/cable/vision_ep9307.c:92:21:  [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_dev_mem = open ("/dev/mem", O_RDWR | O_SYNC);
data/urjtag-0.10+r2007/src/tap/cable/vsllink.c:142:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&data->usb_buffer[out_length], data->tdi_buffer, byte_length);
data/urjtag-0.10+r2007/src/tap/cable/vsllink.c:144:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&data->usb_buffer[out_length], data->tms_buffer, byte_length);
data/urjtag-0.10+r2007/src/tap/cable/wiggler.c:130: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).
    bitnum = atoi (pin) % 8;
data/urjtag-0.10+r2007/src/tap/detect.c:63:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, FOPEN_R);
data/urjtag-0.10+r2007/src/tap/detect.c:189: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 data_path[1024];
data/urjtag-0.10+r2007/src/tap/detect.c:190: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 manufacturer[URJ_PART_MANUFACTURER_MAXLEN + 1];
data/urjtag-0.10+r2007/src/tap/detect.c:191: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 partname[URJ_PART_PART_MAXLEN + 1];
data/urjtag-0.10+r2007/src/tap/detect.c:192: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 stepping[URJ_PART_STEPPING_MAXLEN + 1];
data/urjtag-0.10+r2007/src/tap/detect.c:285:17:  [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 (id->data, &all_ids->data[i * 32 + 1], 31 * sizeof (id->data[0]));
data/urjtag-0.10+r2007/src/tap/detect.c:332:13:  [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/urjtag-0.10+r2007/src/tap/detect.c:362:13:  [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/urjtag-0.10+r2007/src/tap/detect.c:392:13:  [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/urjtag-0.10+r2007/src/tap/idcode.c:81:13:  [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 (rout->data, &all_rout->data[i * 8], 8 * sizeof (rout->data[0]));
data/urjtag-0.10+r2007/src/tap/parport.c:43:26:  [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/urjtag-0.10+r2007/src/tap/parport/ppdev.c:139: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).
    p->fd = open (p->portname, O_RDWR);
data/urjtag-0.10+r2007/src/tap/parport/ppi.c:137: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).
    p->fd = open (p->portname, O_RDWR);
data/urjtag-0.10+r2007/src/tap/usbconn.c:43:26:  [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 conn->driver->open (conn);
data/urjtag-0.10+r2007/src/tap/usbconn/libftd2xx.c:211:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buf, &p->recv_buf[p->recv_read_idx], cpy_len);
data/urjtag-0.10+r2007/src/tap/usbconn/libftd2xx.c:271:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&p->send_buf[p->send_buffered], buf, len);
data/urjtag-0.10+r2007/src/tap/usbconn/libftdi.c:194:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buf, &(p->recv_buf[p->recv_read_idx]), cpy_len);
data/urjtag-0.10+r2007/src/tap/usbconn/libftdi.c:249:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (&(p->send_buf[p->send_buffered]), buf, len);
data/urjtag-0.10+r2007/src/tap/usbconn/libusb.c:50: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 buf[256];
data/urjtag-0.10+r2007/include/libiberty.h:629:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \
data/urjtag-0.10+r2007/include/libiberty.h:643:20:  [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).
   libiberty_len = strlen (libiberty_optr) + 1, \
data/urjtag-0.10+r2007/include/urjtag/bus_driver.h:116:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint32_t (*read) (urj_bus_t *bus, uint32_t adr);
data/urjtag-0.10+r2007/include/urjtag/bus_driver.h:143:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define URJ_BUS_READ(bus,adr)           (bus)->driver->read(bus,adr)
data/urjtag-0.10+r2007/include/urjtag/usbconn.h:56:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read) (urj_usbconn_t *, uint8_t *, int);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:82: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).
        home = malloc (strlen ("HOME=") + strlen (drive) + strlen (path) + 1);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:82:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        home = malloc (strlen ("HOME=") + strlen (drive) + strlen (path) + 1);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:82: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).
        home = malloc (strlen ("HOME=") + strlen (drive) + strlen (path) + 1);
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:100: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).
    ret_len = strlen (home) + strlen (JTAGDIR) + 2; /* "/" and trailing \0 */
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:100: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).
    ret_len = strlen (home) + strlen (JTAGDIR) + 2; /* "/" and trailing \0 */
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:102:20:  [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).
        ret_len += strlen (subpath) + 1;
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:112:5:  [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 (ret, "/");
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:116:9:  [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 (ret, "/");
data/urjtag-0.10+r2007/src/apps/jtag/jtag.c:231:20:  [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/urjtag-0.10+r2007/src/apps/jtag/jtag.c:290:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (line))
data/urjtag-0.10+r2007/src/bfin/bfin.c:1007: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/urjtag-0.10+r2007/src/bfin/bfin.c:1014: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/urjtag-0.10+r2007/src/bsdl/bsdl.c:199:45:  [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 (num = 0, elem = (char *) pathlist; strlen (elem) > 0;)
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:211: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).
                len = strlen (elem);
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:221:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        elem = delim ? delim + 1 : elem + strlen (elem);
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:276: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).
                name = malloc (strlen (globs->path_list[idx])
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:277: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).
                               + strlen (elem->d_name) + 1 + 1);
data/urjtag-0.10+r2007/src/bsdl/bsdl.c:283:21:  [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 (name, "/");
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:114: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).
            name_len = strlen (name->string);
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:124:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy (port_string, name->string, str_len - 1);
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:201:46:  [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).
        result = create_register (jc, "DIR", strlen (jc->idcode));
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:228:51:  [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).
        result = create_register (jc, "USERCODE", strlen (jc->usercode));
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:555: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).
    name_string_len = elem->name ? strlen (elem->name) : 0;
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:556: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).
    elem_string_len = elem->payload ? strlen (elem->payload) : 0;
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:571:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat (buf, elem->name, buf_len);
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:572:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat (buf, " ", buf_len - name_string_len);
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:575:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat (buf, elem->payload, buf_len - name_string_len - 1);
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:650:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (idcode) == strlen (jc->idcode))
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:650: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).
        if (strlen (idcode) == strlen (jc->idcode))
data/urjtag-0.10+r2007/src/bsdl/bsdl_sem.c:656:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            for (idx = 0; idx < strlen (idcode); idx++)
data/urjtag-0.10+r2007/src/bus/arm9tdmi.c:414:9:  [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/urjtag-0.10+r2007/src/bus/bcm1250.c:295:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bcm1250_ejtag_do (urj_bus_t *bus, uint64_t ad, uint64_t da, int read,
data/urjtag-0.10+r2007/src/bus/bcm1250.c:309:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
             ad, da, read, type);
data/urjtag-0.10+r2007/src/bus/bcm1250.c:329: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).
    j = strlen (ctrl);
data/urjtag-0.10+r2007/src/bus/bcm1250.c:339:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read)
data/urjtag-0.10+r2007/src/bus/bcm1250.c:354: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).
    j = strlen (addrr);
data/urjtag-0.10+r2007/src/bus/bcm1250.c:363:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read)
data/urjtag-0.10+r2007/src/bus/bcm1250.c:406:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read)
data/urjtag-0.10+r2007/src/bus/bcm1250.c:410: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).
    j = strlen (ctrl);
data/urjtag-0.10+r2007/src/bus/bcm1250.c:418:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (urj_log_state.level <= URJ_LOG_LEVEL_DETAIL || read)
data/urjtag-0.10+r2007/src/bus/fjmem.c:106: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 (opcode) != part->instruction_length)
data/urjtag-0.10+r2007/src/cmd/cmd.h:69: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).
        int this_len = strlen(arr[i]->name); \
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:276:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if (params[i][strlen (params[i]) - 1] == '"')
data/urjtag-0.10+r2007/src/cmd/cmd_bfin.c:278:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        if (params[i][strlen (params[i]) - 1] == ';')
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:48:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat (command, params[0], command_size);
data/urjtag-0.10+r2007/src/cmd/cmd_bit.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).
    command_size -= strlen (params[0]);
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:52:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
        strncat (command, " ", command_size);
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:54:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat (command, params[i], command_size);
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:55: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).
        command_size -= strlen (params[i]);
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:98: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 (params[2]) != 1)
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:135: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 (params[3]) != 1)
data/urjtag-0.10+r2007/src/cmd/cmd_bit.c:176: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 (params[6]) != 1)
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:61: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 = strlen (text);
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:132: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).
        implicit_len = strlen (jtag_data_dir) + 1;
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:166:58:  [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).
    urj_completion_mayben_add_match (matches, cnt, text, strlen (text), match);
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:233: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).
                       strlen (name), token_point);
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:269: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).
    len = strlen (params[0]);
data/urjtag-0.10+r2007/src/cmd/cmd_cmd.c:333: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).
    l = strlen (s);
data/urjtag-0.10+r2007/src/cmd/cmd_pod.c:71:20:  [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 n = strlen (params[j]);
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:35:10:  [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).
# define wcslen(str) strlen(str)
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:35: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).
# define wcslen(str) strlen(str)
data/urjtag-0.10+r2007/src/cmd/cmd_print.c:142:29:  [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/urjtag-0.10+r2007/src/cmd/cmd_print.c:187:25:  [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/urjtag-0.10+r2007/src/cmd/cmd_shell.c:64: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).
        len += (1 + strlen (params[i]));
data/urjtag-0.10+r2007/src/cmd/cmd_shell.c:77:9:  [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 (shell_cmd, " ");
data/urjtag-0.10+r2007/src/cmd/cmd_usleep.c:54: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 (usecs);
data/urjtag-0.10+r2007/src/flash/amd.c:159:9:  [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/urjtag-0.10+r2007/src/flash/amd.c:202:9:  [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/urjtag-0.10+r2007/src/flash/amd.c:258:9:  [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/urjtag-0.10+r2007/src/flash/amd.c:528:9:  [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/urjtag-0.10+r2007/src/flash/amd_flash.c:233:9:  [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/urjtag-0.10+r2007/src/flash/amd_flash.c:298:9:  [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/urjtag-0.10+r2007/src/flash/amd_flash.c:321:9:  [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/urjtag-0.10+r2007/src/flash/amd_flash.c:368:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep (1000);
data/urjtag-0.10+r2007/src/global/params.c:53: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).
        eq = p + strlen(p);
data/urjtag-0.10+r2007/src/global/params.c:288: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).
    size = strlen(buf);
data/urjtag-0.10+r2007/src/global/parse.c:60: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).
    l = strlen (line);
data/urjtag-0.10+r2007/src/global/parse.c:269: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).
        path = malloc (len = strlen (jtag_data_dir) + strlen (filename) + 2);
data/urjtag-0.10+r2007/src/global/parse.c:269:55:  [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 (filename) + 2);
data/urjtag-0.10+r2007/src/lib/getdelim.c:59:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = fgetc (stream)) != EOF)
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:246: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).
	  size_t prefixlen = strlen (temp) + 1;
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:250:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  nstore = (char *) alloca (prefixlen + strlen (progname) + 1);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:265:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		      strncpy (nstore, startp, endp - startp);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:352: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).
    needed_len += strlen (prog_dirs[i]);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:355: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).
    needed_len += strlen (prefix_dirs[i]);
data/urjtag-0.10+r2007/src/lib/make-relative-prefix.c:368: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).
  ptr = ret + strlen(ret);
data/urjtag-0.10+r2007/src/lib/usleep.c:33: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.
int usleep (long unsigned usec)
data/urjtag-0.10+r2007/src/lib/usleep.c:46: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.
int usleep (long unsigned usec)
data/urjtag-0.10+r2007/src/part/data_register.c:52: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 (name) > URJ_DATA_REGISTER_MAXLEN)
data/urjtag-0.10+r2007/src/part/data_register.c:54:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (dr->name, name, URJ_DATA_REGISTER_MAXLEN);
data/urjtag-0.10+r2007/src/part/instruction.c:50: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 (name) > URJ_INSTRUCTION_MAXLEN_INSTRUCTION)
data/urjtag-0.10+r2007/src/part/instruction.c:52:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (i->name, name, URJ_INSTRUCTION_MAXLEN_INSTRUCTION);
data/urjtag-0.10+r2007/src/part/part.c:352: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 (code) != part->instruction_length)
data/urjtag-0.10+r2007/src/part/part.c:492:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (pi->part, part, URJ_PART_PART_MAXLEN);
data/urjtag-0.10+r2007/src/stapl/jamarray.c:1340: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).
            length = strlen (jam_bool_rep_table[rep].string);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:568: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).
    int buffer_length = strlen (buffer);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:569: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).
    int keyword_length = strlen (keyword);
data/urjtag-0.10+r2007/src/stapl/jamexec.c:6929:51:  [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
data/urjtag-0.10+r2007/src/stapl/jamexp.c:1208:20:  [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).
    token_length = strlen (urj_jam_token_buffer);
data/urjtag-0.10+r2007/src/stapl/jamnote.c:312:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (key, &statement_buffer[key_begin],
data/urjtag-0.10+r2007/src/stapl/jamnote.c:315:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (value, &statement_buffer[value_begin], length);
data/urjtag-0.10+r2007/src/stapl/stapl.c:272: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 (microseconds);
data/urjtag-0.10+r2007/src/svf/svf.c:370: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).
    hex_string_idx = strlen (hex_string);
data/urjtag-0.10+r2007/src/svf/svf.c:451:14:  [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.
    int pos, mismatch, result = URJ_STATUS_OK;
data/urjtag-0.10+r2007/src/svf/svf.c:469:9:  [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.
    if (mismatch >= 0)
data/urjtag-0.10+r2007/src/svf/svf.c:473:17:  [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.
                mismatch);
data/urjtag-0.10+r2007/src/svf/svf.c:1125:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = fgetc (SVF_FILE);
data/urjtag-0.10+r2007/src/svf/svf.h:44: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).
    size_t  strlen;
data/urjtag-0.10+r2007/src/tap/cable/gpio.c:105: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 (ret != strlen (out ? "out" : "in"))
data/urjtag-0.10+r2007/src/tap/detect.c:113:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen (p) != key->len)
data/urjtag-0.10+r2007/src/tap/detect.c:172:33:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#define strncat_const(dst, src) strncat(dst, src, sizeof(dst) - strlen(dst) - 1)
data/urjtag-0.10+r2007/src/tap/detect.c:172:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define strncat_const(dst, src) strncat(dst, src, sizeof(dst) - strlen(dst) - 1)
data/urjtag-0.10+r2007/src/tap/detect.c:347: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 (strlen (id_fullname) > URJ_PART_MANUFACTURER_MAXLEN)
data/urjtag-0.10+r2007/src/tap/detect.c:377: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 (strlen (id_fullname) > URJ_PART_PART_MAXLEN)
data/urjtag-0.10+r2007/src/tap/detect.c:405: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 (strlen (id_fullname) > URJ_PART_STEPPING_MAXLEN)
data/urjtag-0.10+r2007/src/tap/detect.c:499:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy (part->part, "unknown", URJ_PART_PART_MAXLEN);
data/urjtag-0.10+r2007/src/tap/register.c:165:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strspn (str, "01") != strlen (str))
data/urjtag-0.10+r2007/src/tap/register.c:172: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).
        else if (tr->len != strlen (str))
data/urjtag-0.10+r2007/src/tap/register.c:176: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).
                           tr->len, strlen (str));
data/urjtag-0.10+r2007/src/tap/register.c:317: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).
    if (!tr || !expr || (tr->len != strlen (expr)))
data/urjtag-0.10+r2007/src/tap/usbconn.c:55:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (conn->driver->read)
data/urjtag-0.10+r2007/src/tap/usbconn.c:56:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return conn->driver->read (conn, buf, len);
data/urjtag-0.10+r2007/sysdep.h:73: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.
int usleep (long unsigned usec);
data/urjtag-0.10+r2007/sysdep.h:81:29:  [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.
#define nanosleep(req, rem) usleep((req)->tv_sec * 1000 * 1000 + (req)->tv_nsec / 1000)

ANALYSIS SUMMARY:

Hits = 459
Lines analyzed = 79132 in approximately 1.78 seconds (44357 lines/second)
Physical Source Lines of Code (SLOC) = 54092
Hits@level = [0]  84 [1] 129 [2] 257 [3]  10 [4]  63 [5]   0
Hits@level+ = [0+] 543 [1+] 459 [2+] 330 [3+]  73 [4+]  63 [5+]   0
Hits/KSLOC@level+ = [0+] 10.0385 [1+] 8.48554 [2+] 6.10072 [3+] 1.34955 [4+] 1.16468 [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.