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/uisp-20050207/pavr/pavr.c
Examining data/uisp-20050207/src/Avr.C
Examining data/uisp-20050207/src/AvrAtmel.C
Examining data/uisp-20050207/src/AvrAtmel.h
Examining data/uisp-20050207/src/AvrDummy.C
Examining data/uisp-20050207/src/AvrDummy.h
Examining data/uisp-20050207/src/DAPA.C
Examining data/uisp-20050207/src/DAPA.h
Examining data/uisp-20050207/src/Error.h
Examining data/uisp-20050207/src/Global.h
Examining data/uisp-20050207/src/Main.C
Examining data/uisp-20050207/src/MotIntl.C
Examining data/uisp-20050207/src/MotIntl.h
Examining data/uisp-20050207/src/Serial.C
Examining data/uisp-20050207/src/Serial.h
Examining data/uisp-20050207/src/Stk500.h
Examining data/uisp-20050207/src/Terminal.C
Examining data/uisp-20050207/src/Terminal.h
Examining data/uisp-20050207/src/cygwinp.C
Examining data/uisp-20050207/src/cygwinp.h
Examining data/uisp-20050207/src/parport.h
Examining data/uisp-20050207/src/ppdev.h
Examining data/uisp-20050207/src/timeradd.h
Examining data/uisp-20050207/src/Avr.h
Examining data/uisp-20050207/src/Stk500.C

FINAL RESULTS:

data/uisp-20050207/src/Global.h:137:26:  [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, 2, 3)));
data/uisp-20050207/src/Main.C:227:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr,fmt,ap);
data/uisp-20050207/src/Main.C:250:5:  [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(version, VERSION);
data/uisp-20050207/src/Main.C:255:5:  [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(version, VERSION);
data/uisp-20050207/src/Terminal.C:64:7:  [4] (buffer) scanf:
  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.
      scanf("%s",cmd);
data/uisp-20050207/src/Terminal.C:83:27:  [4] (buffer) scanf:
  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.
	char inputFileName [64]; scanf ("%s", inputFileName);
data/uisp-20050207/src/Terminal.C:91:27:  [4] (buffer) scanf:
  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.
	char inputFileName [64]; scanf ("%s", inputFileName);
data/uisp-20050207/src/Terminal.C:120:2:  [4] (buffer) scanf:
  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.
	scanf("%s", seg_name);
data/uisp-20050207/src/Avr.C:246:18:  [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).
    t_wd_flash = atol(val);
data/uisp-20050207/src/Avr.C:260:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    t_wd_eeprom = atol(val);
data/uisp-20050207/src/AvrDummy.C:44:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char prg  [4] = { 0xAC, 0x53, 0, 0 };
data/uisp-20050207/src/DAPA.C:1187:18:  [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).
      ppdev_fd = open(ppdev_name, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/uisp-20050207/src/DAPA.C:1212:18:  [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).
      ppdev_fd = open(ppdev_name, O_RDWR, 0);
data/uisp-20050207/src/DAPA.C:1235:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 temp[MAXLINESIZE];
data/uisp-20050207/src/DAPA.C:1258:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      reset_high_time = atoi(val);
data/uisp-20050207/src/Main.C:262:55:  [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 (*p==0){verbose_level=2;} else{verbose_level = atoi(p);}
data/uisp-20050207/src/MotIntl.C:100:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char seg_name[256];   /* data field length is a byte, so this is safe */
data/uisp-20050207/src/MotIntl.C:343:11:  [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 ((fd=fopen(filename,"rt"))==NULL){
data/uisp-20050207/src/MotIntl.C:349:32:  [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 (val!=NULL){hash_marker = atoi(val);}  
data/uisp-20050207/src/MotIntl.C:385:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[40];
data/uisp-20050207/src/MotIntl.C:471:31:  [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 (val!=NULL){size_value = atoi(val);}  
data/uisp-20050207/src/MotIntl.C:474: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).
    fd = fopen(filename, "wb");
data/uisp-20050207/src/MotIntl.C:481:34:  [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 (val!=NULL){hash_marker = atoi(val);}  
data/uisp-20050207/src/MotIntl.h:46:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line_buf [MI_LINEBUF_SIZE];
data/uisp-20050207/src/Serial.C:145:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((serline = open(dev_name, O_RDWR | O_NOCTTY | O_NONBLOCK)) < 0) {
data/uisp-20050207/src/Serial.C:165:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((serline = open(dev_name, O_RDWR | O_NOCTTY)) < 0){throw Error_C();}
data/uisp-20050207/src/Stk500.C:258:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, rd_param, sizeof(rd_param));
data/uisp-20050207/src/Stk500.C:279:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, wr_param, sizeof(wr_param));
data/uisp-20050207/src/Stk500.C:432:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, SetAddress, sizeof(SetAddress));
data/uisp-20050207/src/Stk500.C:439:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, WriteMemory, sizeof(WriteMemory));
data/uisp-20050207/src/Stk500.C:443:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf+sizeof(WriteMemory), write_buffer[segment]+addr, pagesize);
data/uisp-20050207/src/Stk500.C:444:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf+sizeof(WriteMemory)+pagesize,
data/uisp-20050207/src/Stk500.C:461:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, EraseDevice, sizeof(EraseDevice));
data/uisp-20050207/src/Stk500.C:628:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, pSTK500, sizeof(pSTK500));
data/uisp-20050207/src/Stk500.C:633:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, &prg_part[desired_part].params,
data/uisp-20050207/src/Stk500.C:641:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, SWminor, sizeof(SWminor));
data/uisp-20050207/src/Stk500.C:645:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, SWmajor, sizeof(SWmajor));
data/uisp-20050207/src/Stk500.C:659:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf+2, &prg_part[desired_part].ext_params, num_ext_parms);
data/uisp-20050207/src/Stk500.C:670:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, EnterPgmMode, sizeof(EnterPgmMode));
data/uisp-20050207/src/Stk500.C:680:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, LeavePgmMode, sizeof(LeavePgmMode));
data/uisp-20050207/src/Stk500.C:695:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf+1, cmd, 4);
data/uisp-20050207/src/Stk500.C:716:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, GetSignature, sizeof(GetSignature));
data/uisp-20050207/src/Stk500.C:744:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, SetAddress, sizeof(SetAddress));
data/uisp-20050207/src/Stk500.C:751:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, ReadMemory, sizeof(ReadMemory));
data/uisp-20050207/src/Stk500.C:755: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(read_buffer[segment]+addr, buf+1, 0x100);
data/uisp-20050207/src/Terminal.C: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 q[20];
data/uisp-20050207/src/Terminal.C:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmd[32];
data/uisp-20050207/src/Terminal.C:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inputFileName [64]; scanf ("%s", inputFileName);
data/uisp-20050207/src/Terminal.C:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inputFileName [64]; scanf ("%s", inputFileName);
data/uisp-20050207/src/Terminal.C:119: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 seg_name [32];
data/uisp-20050207/src/parport.h:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[4];
data/uisp-20050207/pavr/pavr.c:177:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint8_t getc(void);
data/uisp-20050207/pavr/pavr.c:226:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   ch = getc();
data/uisp-20050207/pavr/pavr.c:230:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       device=getc();
data/uisp-20050207/pavr/pavr.c:255:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       getc();
data/uisp-20050207/pavr/pavr.c:260:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       getc();
data/uisp-20050207/pavr/pavr.c:291:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       i=getc();
data/uisp-20050207/pavr/pavr.c:304:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       i=getc();
data/uisp-20050207/pavr/pavr.c:346:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       addr.byte[1]=getc();
data/uisp-20050207/pavr/pavr.c:347:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       addr.byte[0]=getc();
data/uisp-20050207/pavr/pavr.c:351:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       i=getc();
data/uisp-20050207/pavr/pavr.c:391:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       i=getc();
data/uisp-20050207/pavr/pavr.c:422:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       spi_wr(getc());
data/uisp-20050207/pavr/pavr.c:423:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       spi_wr(getc());
data/uisp-20050207/pavr/pavr.c:424:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       spi_wr(getc());
data/uisp-20050207/pavr/pavr.c:430:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       i=getc();
data/uisp-20050207/pavr/pavr.c:432:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       spi_wr(getc());
data/uisp-20050207/pavr/pavr.c:433:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       spi_wr(getc());
data/uisp-20050207/pavr/pavr.c:435:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       	  spi_wr(getc());       	  
data/uisp-20050207/pavr/pavr.c:440:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       getc();
data/uisp-20050207/pavr/pavr.c:448:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       if (getc()=='!') terminal_mode();
data/uisp-20050207/pavr/pavr.c:465:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
uint8_t getc(void)
data/uisp-20050207/pavr/pavr.c:567:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ch = getc();
data/uisp-20050207/pavr/pavr.c:570:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      eeprom_wb(0x0001,getc()-0x30);  //NB No error checking!!
data/uisp-20050207/pavr/pavr.c:574:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      eeprom_wb(0x0002,getc()-0x30);
data/uisp-20050207/src/DAPA.C:62:35:  [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 x = ioperm(port, num, 1); usleep(1); x; }) 
data/uisp-20050207/src/DAPA.C:64:35:  [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 x = ioperm(port, num, 0); usleep(1); x; })
data/uisp-20050207/src/DAPA.C:366: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(t - MIN_SLEEP_USEC);
data/uisp-20050207/src/DAPA.C:992:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(10000);
data/uisp-20050207/src/DAPA.C:1237:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(temp, val, MAXLINESIZE-1);
data/uisp-20050207/src/Main.C:202: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).
  int argv_name_len = strlen(argv_name);
data/uisp-20050207/src/MotIntl.C:112: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).
    buf_len = strlen(line_buf);
data/uisp-20050207/src/MotIntl.C:248: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).
    buf_len = strlen(line_buf);
data/uisp-20050207/src/MotIntl.C:411:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy((char *) buf+2, seg, 16);
data/uisp-20050207/src/MotIntl.C:413: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).
  SrecWrite(0, buf, 2 + strlen((const char *) buf + 2));
data/uisp-20050207/src/Serial.C:78:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int size = read(serline, queue, queue_size);  

ANALYSIS SUMMARY:

Hits = 86
Lines analyzed = 7536 in approximately 0.26 seconds (28768 lines/second)
Physical Source Lines of Code (SLOC) = 5035
Hits@level = [0]  64 [1]  35 [2]  43 [3]   0 [4]   8 [5]   0
Hits@level+ = [0+] 150 [1+]  86 [2+]  51 [3+]   8 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 29.7915 [1+] 17.0804 [2+] 10.1291 [3+] 1.58888 [4+] 1.58888 [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.