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/digitemp-3.7.2/src/device_name.c
Examining data/digitemp-3.7.2/src/device_name.h
Examining data/digitemp-3.7.2/src/digitemp.c
Examining data/digitemp-3.7.2/src/digitemp.h
Examining data/digitemp-3.7.2/src/ds2438.c
Examining data/digitemp-3.7.2/src/ds2490.c
Examining data/digitemp-3.7.2/src/ds9097.c
Examining data/digitemp-3.7.2/src/ds9097u.c
Examining data/digitemp-3.7.2/userial/ad26.c
Examining data/digitemp-3.7.2/userial/ad26.h
Examining data/digitemp-3.7.2/userial/cnt1d.c
Examining data/digitemp-3.7.2/userial/crcutil.c
Examining data/digitemp-3.7.2/userial/ds2490/ownet.c
Examining data/digitemp-3.7.2/userial/ds2490/owtran.c
Examining data/digitemp-3.7.2/userial/ds2490/usblnk.c
Examining data/digitemp-3.7.2/userial/ds2490/usblnk.h
Examining data/digitemp-3.7.2/userial/ds2490/usbses.c
Examining data/digitemp-3.7.2/userial/ds9097/linuxlnk.c
Examining data/digitemp-3.7.2/userial/ds9097/linuxses.c
Examining data/digitemp-3.7.2/userial/ds9097/owerr.c
Examining data/digitemp-3.7.2/userial/ds9097/ownet.c
Examining data/digitemp-3.7.2/userial/ds9097/owtran.c
Examining data/digitemp-3.7.2/userial/ds9097u/ds2480.h
Examining data/digitemp-3.7.2/userial/ds9097u/ds2480ut.c
Examining data/digitemp-3.7.2/userial/ds9097u/linuxlnk.c
Examining data/digitemp-3.7.2/userial/ds9097u/owllu.c
Examining data/digitemp-3.7.2/userial/ds9097u/ownetu.c
Examining data/digitemp-3.7.2/userial/ds9097u/owsesu.c
Examining data/digitemp-3.7.2/userial/ds9097u/owtrnu.c
Examining data/digitemp-3.7.2/userial/ioutil.c
Examining data/digitemp-3.7.2/userial/owerr.c
Examining data/digitemp-3.7.2/userial/ownet.h
Examining data/digitemp-3.7.2/userial/owproto.h
Examining data/digitemp-3.7.2/userial/swt1f.c
Examining data/digitemp-3.7.2/userial/thermo21.c
Examining data/digitemp-3.7.2/userial/thermo21.h
Examining data/digitemp-3.7.2/userial/win32/win32lnk.c

FINAL RESULTS:

data/digitemp-3.7.2/src/digitemp.c:125:3:  [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(BANNER_1);
data/digitemp-3.7.2/src/digitemp.c:126:3:  [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(BANNER_2);
data/digitemp-3.7.2/src/digitemp.c:127:3:  [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(BANNER_3, dtlib );		         /* Report Library version */
data/digitemp-3.7.2/src/digitemp.c:273:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, sensor );
data/digitemp-3.7.2/src/digitemp.c:287:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, humidity );
data/digitemp-3.7.2/src/digitemp.c:301:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, c2f(temp_c) );
data/digitemp-3.7.2/src/digitemp.c:316:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, temp_c );
data/digitemp-3.7.2/src/digitemp.c:416:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, sensor );
data/digitemp-3.7.2/src/digitemp.c:433:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, page );
data/digitemp-3.7.2/src/digitemp.c:449:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	        sprintf( temp, token, count );
data/digitemp-3.7.2/src/digitemp.c:1033:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( time_format, "%%b %%d %%H:%%M:%%S Sensor %d PIO: %02x,%02x, PIO-A: %s%s", sensor, pio>>8, pio&0xff,
data/digitemp-3.7.2/src/digitemp.c:2579: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(BANNER_1);
data/digitemp-3.7.2/src/digitemp.c:2580: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(BANNER_2);
data/digitemp-3.7.2/src/digitemp.c:2599:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if( access( serial_port, R_OK|W_OK ) < 0 ) {
data/digitemp-3.7.2/src/digitemp.c:2826:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf( time_format, "%%b %%d %%H:%%M:%%S Sensor %d PIO: %02x, PIO-A: %s PIO-B: %s", sensor, pio, (pio&0x01)?"ON ":"OFF", (pio&0x04)?"ON ":"OFF" );
data/digitemp-3.7.2/userial/ioutil.c:89:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(defbuf, "%s", buf);
data/digitemp-3.7.2/userial/ioutil.c:133:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf,"%s",defbuf);
data/digitemp-3.7.2/userial/ownet.h:68:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
   extern int sprintf(char *buffer, char *format,...);
data/digitemp-3.7.2/userial/ownet.h:69:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   extern void fprintf(FILE *fp, char *format,...);
data/digitemp-3.7.2/userial/ownet.h:70:16:  [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.
   extern void printf(char *format,...);
data/digitemp-3.7.2/userial/ownet.h:82:16:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   extern void fprintf (FILE*fileNo,char*s,...);
data/digitemp-3.7.2/userial/swt1f.c:287:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Manual mode\n");
data/digitemp-3.7.2/userial/swt1f.c:289:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         cnt += sprintf(outstr+cnt, "%s", "Output transistor on\n");
data/digitemp-3.7.2/userial/swt1f.c:291:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         cnt += sprintf(outstr+cnt, "%s", "Output transistor off\n");
data/digitemp-3.7.2/userial/swt1f.c:295:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Auto-control mode\n");
data/digitemp-3.7.2/userial/swt1f.c:297:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         cnt += sprintf(outstr+cnt, "%s", "Output association with Auxillary\n");
data/digitemp-3.7.2/userial/swt1f.c:299:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         cnt += sprintf(outstr+cnt, "%s", "Output association with Main\n");
data/digitemp-3.7.2/userial/swt1f.c:303:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s",
data/digitemp-3.7.2/userial/swt1f.c:306:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "No event on Main\n");
data/digitemp-3.7.2/userial/swt1f.c:309:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s",
data/digitemp-3.7.2/userial/swt1f.c:312:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "No event on Aux.\n");
data/digitemp-3.7.2/userial/swt1f.c:315:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Voltage High on Aux. output\n");
data/digitemp-3.7.2/userial/swt1f.c:317:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Voltage Low on Aux. output\n");
data/digitemp-3.7.2/userial/swt1f.c:320:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Inactive status of Aux. output\n");
data/digitemp-3.7.2/userial/swt1f.c:322:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Active status of Aux. output\n");
data/digitemp-3.7.2/userial/swt1f.c:325:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Voltage High on Main output\n");
data/digitemp-3.7.2/userial/swt1f.c:327:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Voltage Low on Main output\n");
data/digitemp-3.7.2/userial/swt1f.c:330:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Inactive status on Main output\n");
data/digitemp-3.7.2/userial/swt1f.c:332:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      cnt += sprintf(outstr+cnt, "%s", "Active status on Main output\n");
data/digitemp-3.7.2/userial/thermo21.c:281:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(LastDescription,"%s",script[StepCount].StepDescription);
data/digitemp-3.7.2/userial/thermo21.c:292:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
               sprintf(LastMsg,"%s",msg);
data/digitemp-3.7.2/userial/win32/win32lnk.c:149:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tempstr,"COMM_READ_OVERLAPPED_EVENT_FOR_%s",port_zstr);
data/digitemp-3.7.2/userial/win32/win32lnk.c:151:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tempstr,"COMM_WRITE_OVERLAPPED_EVENT_FOR_%s",port_zstr);
data/digitemp-3.7.2/src/digitemp.c:2411:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while( (c = getopt(argc, argv, option_list)) != -1 )
data/digitemp-3.7.2/src/digitemp.c:92: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 serial_port[1024],				/* Path to the serial port */
data/digitemp-3.7.2/src/digitemp.c:114: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 Last2409[9];                      /* Last selected coupler   */
data/digitemp-3.7.2/src/digitemp.c:173: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   a[3];
data/digitemp-3.7.2/src/digitemp.c:225: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	*tf_ptr,
data/digitemp-3.7.2/src/digitemp.c:333: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( temp, "%02X%02X%02X%02X%02X%02X%02X%02X",
data/digitemp-3.7.2/src/digitemp.c:377: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	*tf_ptr,
data/digitemp-3.7.2/src/digitemp.c:466: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( temp, "%02X%02X%02X%02X%02X%02X%02X%02X",
data/digitemp-3.7.2/src/digitemp.c:504: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 time_log_file[1024];
data/digitemp-3.7.2/src/digitemp.c:513:15:  [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( (fd = open( time_log_file, O_CREAT | O_WRONLY | O_APPEND,
data/digitemp-3.7.2/src/digitemp.c:537: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	temp[1024],
data/digitemp-3.7.2/src/digitemp.c:553: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( temp, "Time Error\n" );
data/digitemp-3.7.2/src/digitemp.c:569: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	temp[1024],
data/digitemp-3.7.2/src/digitemp.c:585: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( temp, "Time Error\n" );
data/digitemp-3.7.2/src/digitemp.c:601: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	temp[1024],
data/digitemp-3.7.2/src/digitemp.c:614:19:  [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.
      case 4:     sprintf( temp, "\t%3.2f", temp_c );
data/digitemp-3.7.2/src/digitemp.c:619:19:  [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.
      case 5:     sprintf( temp, "\t%3.2f", c2f(temp_c) );
data/digitemp-3.7.2/src/digitemp.c:633: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( temp, "Time Error\n" );
data/digitemp-3.7.2/src/digitemp.c:674: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 temp[80];
data/digitemp-3.7.2/src/digitemp.c:681:7:  [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( temp, "  Temperature   : 0x%02X\n", scratchpad[1] );
data/digitemp-3.7.2/src/digitemp.c:683:7:  [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( temp, "  Sign          : 0x%02X\n", scratchpad[2] );
data/digitemp-3.7.2/src/digitemp.c:685:7:  [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( temp, "  TH            : 0x%02X\n", scratchpad[3] );
data/digitemp-3.7.2/src/digitemp.c:687:7:  [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( temp, "  TL            : 0x%02X\n", scratchpad[4] );
data/digitemp-3.7.2/src/digitemp.c:689:7:  [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( temp, "  Remain        : 0x%02X\n", scratchpad[7] );
data/digitemp-3.7.2/src/digitemp.c:691:7:  [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( temp, "  Count Per C   : 0x%02X\n", scratchpad[8] );
data/digitemp-3.7.2/src/digitemp.c:693:7:  [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( temp, "  CRC           : 0x%02X\n", scratchpad[9] );
data/digitemp-3.7.2/src/digitemp.c:700:7:  [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( temp, "  Temp. LSB     : 0x%02X\n", scratchpad[1] );
data/digitemp-3.7.2/src/digitemp.c:702:7:  [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( temp, "  Temp. MSB     : 0x%02X\n", scratchpad[2] );
data/digitemp-3.7.2/src/digitemp.c:704:7:  [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( temp, "  TH            : 0x%02X\n", scratchpad[3] );
data/digitemp-3.7.2/src/digitemp.c:706:7:  [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( temp, "  TL            : 0x%02X\n", scratchpad[4] );
data/digitemp-3.7.2/src/digitemp.c:708:7:  [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( temp, "  Config Reg.   : 0x%02X\n", scratchpad[5] );
data/digitemp-3.7.2/src/digitemp.c:710:7:  [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( temp, "  CRC           : 0x%02X\n", scratchpad[9] );
data/digitemp-3.7.2/src/digitemp.c:753: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    temp[1024];              /* For output string                    */
data/digitemp-3.7.2/src/digitemp.c:754: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 lastcrc8,
data/digitemp-3.7.2/src/digitemp.c:865:27:  [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.
              case 4:     sprintf( temp, "\t%3.2f", temp_c );
data/digitemp-3.7.2/src/digitemp.c:871:27:  [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.
              case 5:     sprintf( temp, "\t%3.2f", c2f(temp_c) );
data/digitemp-3.7.2/src/digitemp.c:901:30:  [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.
                 case 5:     sprintf( temp, "\t%3.2f", (double) 0 );
data/digitemp-3.7.2/src/digitemp.c:934: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          temp[1024];        /* For output string                    */
data/digitemp-3.7.2/src/digitemp.c:935: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 TempSN[8];
data/digitemp-3.7.2/src/digitemp.c:953:23:  [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.
          case 5:     sprintf( temp, "\t%ld", counter_value );
data/digitemp-3.7.2/src/digitemp.c:976:23:  [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.
          case 5:     sprintf( temp, "\t%ld", counter_value );
data/digitemp-3.7.2/src/digitemp.c:1002: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		temp[1024],
data/digitemp-3.7.2/src/digitemp.c:1024:21:  [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.
        case 4:     sprintf( temp, "\t%02x,%02x", pio>>8, pio&0xff );
data/digitemp-3.7.2/src/digitemp.c:1029:21:  [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.
        case 5:     sprintf( temp, "\t%02x,%02x", pio>>8, pio&0xff);
data/digitemp-3.7.2/src/digitemp.c:1054:7:  [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( temp, "Time Error\n" );
data/digitemp-3.7.2/src/digitemp.c:1080: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		temp[1024],
data/digitemp-3.7.2/src/digitemp.c:1114:19:  [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.
      case 2:     sprintf(temp, "\t%3.2f", temp_c);
data/digitemp-3.7.2/src/digitemp.c:1118:19:  [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.
      case 3:     sprintf(temp, "\t%3.2f", c2f(temp_c));
data/digitemp-3.7.2/src/digitemp.c:1122:19:  [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(time_format, "%%b %%d %%H:%%M:%%S Sensor %d VDD: %0.2f AD: %0.2f CAD: %d C: %0.2f", sensor, vdd, ad, cad, temp_c);
data/digitemp-3.7.2/src/digitemp.c:1187: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	TempSN[8];
data/digitemp-3.7.2/src/digitemp.c:1234: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 TempSN[8],
data/digitemp-3.7.2/src/digitemp.c:1327: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   TempSN[8],
data/digitemp-3.7.2/src/digitemp.c:1367:11:  [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( &Last2409, &c_ptr->SN, 8 );
data/digitemp-3.7.2/src/digitemp.c:1390: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( &Last2409, &c_ptr->SN, 8 );
data/digitemp-3.7.2/src/digitemp.c:1496: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	temp[1024];
data/digitemp-3.7.2/src/digitemp.c:1506:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if( ( fp = fopen( fname, "r" ) ) == NULL )
data/digitemp-3.7.2/src/digitemp.c:1526:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      log_type = atoi( ptr );
data/digitemp-3.7.2/src/digitemp.c:1547:19:  [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).
      read_time = atoi( ptr );
data/digitemp-3.7.2/src/digitemp.c:1550:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      sensors = atoi( ptr );
data/digitemp-3.7.2/src/digitemp.c:1566:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      sensors = atoi( ptr );
data/digitemp-3.7.2/src/digitemp.c:1637:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      x = atoi(ptr);
data/digitemp-3.7.2/src/digitemp.c:1742:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if( ( fp = fopen( fname, "wb" ) ) == NULL )
data/digitemp-3.7.2/src/digitemp.c:1862: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 TempSN[8],
data/digitemp-3.7.2/src/digitemp.c:2044: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 TempSN[8],
data/digitemp-3.7.2/src/digitemp.c:2355: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		temp[1024];		/* Temporary strings            */
data/digitemp-3.7.2/src/digitemp.c:2380:3:  [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( serial_port, "USB" );
data/digitemp-3.7.2/src/digitemp.c:2398:3:  [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( temp_format, "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F" );
data/digitemp-3.7.2/src/digitemp.c:2399:3:  [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( counter_format, "%b %d %H:%M:%S Sensor %s #%n %C" );
data/digitemp-3.7.2/src/digitemp.c:2400:3:  [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( humidity_format, "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%" );
data/digitemp-3.7.2/src/digitemp.c:2401:3:  [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( conf_file, ".digitemprc" );
data/digitemp-3.7.2/src/digitemp.c:2402:3:  [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( option_list, "?ThqiaAvwr:f:s:l:t:d:n:o:c:O:H:" );
data/digitemp-3.7.2/src/digitemp.c:2432:33:  [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).
      case 'r':	tmp_read_time = atoi(optarg);	/* Read delay in mS	*/
data/digitemp-3.7.2/src/digitemp.c:2454:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      		  sensor = atoi(optarg);
data/digitemp-3.7.2/src/digitemp.c:2464:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  sample_delay = atoi(optarg);
data/digitemp-3.7.2/src/digitemp.c:2470:19:  [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).
		  num_samples = atoi(optarg);
data/digitemp-3.7.2/src/digitemp.c:2482:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    tmp_log_type = atoi(optarg);
data/digitemp-3.7.2/src/digitemp.c:2705:15:  [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.
      case 5:	sprintf(temp, "%ld", elapsed_time );
data/digitemp-3.7.2/src/digitemp.c:2797: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		temp[1024],
data/digitemp-3.7.2/src/digitemp.c:2822:21:  [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.
        case 2:     sprintf( temp, "\t%02x", pio );
data/digitemp-3.7.2/src/digitemp.c:2833:7:  [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( temp, "Time Error\n" );
data/digitemp-3.7.2/src/digitemp.h:78: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 SN[8];			/* Serial # of this Coupler */
data/digitemp-3.7.2/userial/ds2490/usblnk.c:82: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 buffer[0x20];
data/digitemp-3.7.2/userial/ds2490/usblnk.c:162: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 buffer[0x20];
data/digitemp-3.7.2/userial/ds2490/usblnk.c:211: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 buffer[0x20];
data/digitemp-3.7.2/userial/ds2490/usblnk.c:288: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 buffer[0x20];
data/digitemp-3.7.2/userial/ds2490/usblnk.c:347: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 buffer[0x20];
data/digitemp-3.7.2/userial/ds2490/usbses.c:101:3:  [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(return_msg, "owAcquire called with invalid port string\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:107:3:  [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(return_msg, "Attempted to select invalid port number\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:113:3:  [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(return_msg, "Device allready open\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:120:3:  [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(return_msg, "Failed to open usb device\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:127:3:  [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(return_msg, "Failed to set configuration\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:135:3:  [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(return_msg, "Failed to claim interface\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:143:3:  [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(return_msg, "Failed to set altinterface\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:151:2:  [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(return_msg, "DS2490 successfully acquired by USB driver\n");
data/digitemp-3.7.2/userial/ds2490/usbses.c:167:2:  [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(return_msg, "DS2490 successfully released by USB driver\n");
data/digitemp-3.7.2/userial/ds9097/linuxses.c:59:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((fd[portnum] = open(port_zstr, O_RDWR)) == -1)
data/digitemp-3.7.2/userial/ds9097/owerr.c:168:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *owErrorMsg[103] =
data/digitemp-3.7.2/userial/ds9097u/linuxlnk.c:136: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).
   fd[portnum] = open(port_zstr, O_RDWR|O_NONBLOCK);
data/digitemp-3.7.2/userial/ioutil.c:80:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ch,defbuf[80];
data/digitemp-3.7.2/userial/ioutil.c:388:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char hexchar[3];
data/digitemp-3.7.2/userial/owerr.c:168:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   static char *owErrorMsg[103] =
data/digitemp-3.7.2/userial/thermo21.c:53:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char StepDescription[50];
data/digitemp-3.7.2/userial/thermo21.c:244:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char msg[256],LastDescription[256],LastMsg[256];
data/digitemp-3.7.2/userial/thermo21.c:352:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Operation complete");
data/digitemp-3.7.2/userial/thermo21.c:361:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Ready to read status page %d",
data/digitemp-3.7.2/userial/thermo21.c:371:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Ready to read alarm pages %d to %d",
data/digitemp-3.7.2/userial/thermo21.c:381:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Ready to read histogram pages %d to %d",
data/digitemp-3.7.2/userial/thermo21.c:391:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Ready to read log pages %d to %d",
data/digitemp-3.7.2/userial/thermo21.c:406: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(msg,"Thermochron not on 1-Wire Net");
data/digitemp-3.7.2/userial/thermo21.c:415: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(msg,"Pages read from Thermochron");
data/digitemp-3.7.2/userial/thermo21.c:427:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Write to setup clear memory");
data/digitemp-3.7.2/userial/thermo21.c:438:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Clear memory command sent");
data/digitemp-3.7.2/userial/thermo21.c:447: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(msg,"Memory is clear");
data/digitemp-3.7.2/userial/thermo21.c:453: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(msg,"Memory did NOT clear");
data/digitemp-3.7.2/userial/thermo21.c:466:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Write time, clock alarm, and trips setup");
data/digitemp-3.7.2/userial/thermo21.c:475:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Write control, mission delay, clear flags setup");
data/digitemp-3.7.2/userial/thermo21.c:483:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
         sprintf(msg,"Write sample rate setup");
data/digitemp-3.7.2/userial/thermo21.c:491: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(msg,"Memory written to Thermochron");
data/digitemp-3.7.2/userial/thermo21.c:496: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(msg,"Thermochron not on 1-Wire Net");
data/digitemp-3.7.2/userial/thermo21.c:966:11:  [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.
   cnt += sprintf(&str[cnt],"Stat For DS1921:");
data/digitemp-3.7.2/userial/thermo21.c:968:11:  [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.
   cnt += sprintf(&str[cnt],"Mission State\n-------------\n");
data/digitemp-3.7.2/userial/thermo21.c:969:11:  [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.
   cnt += sprintf(&str[cnt],"Serial Number of DS1921: ");
data/digitemp-3.7.2/userial/thermo21.c:974:14:  [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.
   	  cnt += sprintf(&str[cnt],"%02X",mstatus->serial_num[i]);
data/digitemp-3.7.2/userial/thermo21.c:978:14:  [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.
      cnt += sprintf(&str[cnt],"\nMission is in progress\n");
data/digitemp-3.7.2/userial/thermo21.c:980:14:  [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.
      cnt += sprintf(&str[cnt],"\nMission is ended\n");
data/digitemp-3.7.2/userial/thermo21.c:983:11:  [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.
   cnt += sprintf(&str[cnt],"Sample rate: %d minute(s)\n",mstatus->sample_rate);
data/digitemp-3.7.2/userial/thermo21.c:986:11:  [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.
   cnt += sprintf(&str[cnt],"Roll-Over Enabled: ");
data/digitemp-3.7.2/userial/thermo21.c:988:14:  [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.
      cnt += sprintf(&str[cnt],"yes\n");
data/digitemp-3.7.2/userial/thermo21.c:990:14:  [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.
      cnt += sprintf(&str[cnt],"no\n");
data/digitemp-3.7.2/userial/thermo21.c:992:11:  [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.
   cnt += sprintf(&str[cnt],"Roll-Over Occurred: ");
data/digitemp-3.7.2/userial/thermo21.c:994:14:  [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.
      cnt += sprintf(&str[cnt],"yes\n");
data/digitemp-3.7.2/userial/thermo21.c:996:14:  [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.
      cnt += sprintf(&str[cnt],"no\n");
data/digitemp-3.7.2/userial/thermo21.c:1003: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.
         cnt += sprintf(&str[cnt],"Mission Start time: not started yet\n");
data/digitemp-3.7.2/userial/thermo21.c:1005: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.
         cnt += sprintf(&str[cnt],"Mission Start: %02d/%02d/%04d  %02d:%02d:%02d\n",
data/digitemp-3.7.2/userial/thermo21.c:1010:14:  [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.
      cnt += sprintf(&str[cnt],"Mission Start time: na\n");
data/digitemp-3.7.2/userial/thermo21.c:1013:11:  [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.
   cnt += sprintf(&str[cnt],"Mission Start delay: %d minute(s)\n",mstatus->start_delay);
data/digitemp-3.7.2/userial/thermo21.c:1016:11:  [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.
   cnt += sprintf(&str[cnt],"Mission Samples: %ld\n",mstatus->mission_samples);
data/digitemp-3.7.2/userial/thermo21.c:1019:11:  [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.
   cnt += sprintf(&str[cnt],"Device total samples: %ld\n",mstatus->samples_total);
data/digitemp-3.7.2/userial/thermo21.c:1022:11:  [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.
   cnt += sprintf(&str[cnt],"Temp displayed in: ");  
data/digitemp-3.7.2/userial/thermo21.c:1024:14:  [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.
      cnt += sprintf(&str[cnt],"(Fahrenheit)\n");
data/digitemp-3.7.2/userial/thermo21.c:1026:14:  [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.
      cnt += sprintf(&str[cnt],"(Celsius)\n");
data/digitemp-3.7.2/userial/thermo21.c:1029:11:  [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.
   cnt += sprintf(&str[cnt],"High Threshold: %6.1f\n",
data/digitemp-3.7.2/userial/thermo21.c:1032:11:  [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.
   cnt += sprintf(&str[cnt],"Low Threshold: %6.1f\n",
data/digitemp-3.7.2/userial/thermo21.c:1037:11:  [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.
   cnt += sprintf(&str[cnt],"Current Real-Time Clock from DS1921: %02d/%02d/%04d  %02d:%02d:%02d\n",
data/digitemp-3.7.2/userial/thermo21.c:1045:11:  [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.
   cnt += sprintf(&str[cnt],"Current PC Time: %02d/%02d/%04d  %02d:%02d:%02d\n",
data/digitemp-3.7.2/userial/thermo21.c:1084:11:  [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.
   cnt += sprintf(&str[cnt],"Temperature Histogram\n---------------------\n"  
data/digitemp-3.7.2/userial/thermo21.c:1088:14:  [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.
      cnt += sprintf(&str[cnt],"(Fahrenheit)\n");
data/digitemp-3.7.2/userial/thermo21.c:1090:14:  [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.
      cnt += sprintf(&str[cnt],"(Celsius)\n");
data/digitemp-3.7.2/userial/thermo21.c:1095:14:  [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.
      cnt += sprintf(&str[cnt],"%6.1f to %6.1f, %d\n", 
data/digitemp-3.7.2/userial/thermo21.c:1187:11:  [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.
   cnt += sprintf(&str[cnt],"Temperature Alarms\n------------------\n"  
data/digitemp-3.7.2/userial/thermo21.c:1193:14:  [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.
      cnt += sprintf(&str[cnt],"LOW  , ");
data/digitemp-3.7.2/userial/thermo21.c:1196:14:  [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.
      cnt += sprintf(&str[cnt]," %02d/%02d/%04d  %02d:%02d  to  ",
data/digitemp-3.7.2/userial/thermo21.c:1200:14:  [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.
      cnt += sprintf(&str[cnt]," %02d/%02d/%04d  %02d:%02d\n",
data/digitemp-3.7.2/userial/thermo21.c:1207:14:  [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.
      cnt += sprintf(&str[cnt],"HIGH , ");
data/digitemp-3.7.2/userial/thermo21.c:1210:14:  [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.
      cnt += sprintf(&str[cnt]," %02d/%02d/%04d  %02d:%02d  to  ",
data/digitemp-3.7.2/userial/thermo21.c:1214:14:  [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.
      cnt += sprintf(&str[cnt]," %02d/%02d/%04d  %02d:%02d\n",
data/digitemp-3.7.2/userial/thermo21.c:1278:11:  [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.
   cnt += sprintf(&str[cnt],"Log Data\n--------\n"  
data/digitemp-3.7.2/userial/thermo21.c:1281:14:  [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.
      cnt += sprintf(&str[cnt],"(Fahrenheit)\n");
data/digitemp-3.7.2/userial/thermo21.c:1283:14:  [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.
      cnt += sprintf(&str[cnt],"(Celsius)\n");
data/digitemp-3.7.2/userial/thermo21.c:1291:14:  [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.
      cnt += sprintf(&str[cnt],"%02d/%02d/%04d  %02d:%02d ,",
data/digitemp-3.7.2/userial/thermo21.c:1294:14:  [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.
      cnt += sprintf(&str[cnt],"%6.1f\n", 
data/digitemp-3.7.2/userial/thermo21.c:1314:11:  [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.
   cnt += sprintf(&str[cnt],"Debug Dump\n----------\nRegister Page:\n");
data/digitemp-3.7.2/userial/thermo21.c:1319:14:  [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.
      cnt += sprintf(&str[cnt],"%02X ",mstatus->status_raw[i]);
data/digitemp-3.7.2/userial/thermo21.c:1325:11:  [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.
   cnt += sprintf(&str[cnt],"Alarms:\n");
data/digitemp-3.7.2/userial/thermo21.c:1328:14:  [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.
      cnt += sprintf(&str[cnt],"%02X ",alarm->alarm_raw[i]);
data/digitemp-3.7.2/userial/thermo21.c:1334:11:  [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.
   cnt += sprintf(&str[cnt],"Histogram:\n");
data/digitemp-3.7.2/userial/thermo21.c:1337:14:  [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.
      cnt += sprintf(&str[cnt],"%02X ",hist->hist_raw[i]);
data/digitemp-3.7.2/userial/thermo21.c:1344:11:  [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.
   cnt += sprintf(&str[cnt],"Log:\n");
data/digitemp-3.7.2/userial/thermo21.c:1347:14:  [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.
      cnt += sprintf(&str[cnt],"%02X ",log->log_raw[i]);
data/digitemp-3.7.2/userial/win32/win32lnk.c:117:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char tempstr[80];
data/digitemp-3.7.2/src/digitemp.c:519:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( write( fd, line, strlen( line ) ) == -1)
data/digitemp-3.7.2/src/digitemp.c:551: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( temp, "\n" );
data/digitemp-3.7.2/src/digitemp.c:583: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( temp, "\n" );
data/digitemp-3.7.2/src/digitemp.c:629:19:  [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( temp, "\n" );
data/digitemp-3.7.2/src/digitemp.c:1050: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( temp, "\n" );
data/digitemp-3.7.2/src/digitemp.c:1125:19:  [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(temp, "\n");
data/digitemp-3.7.2/src/digitemp.c:1522:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( serial_port, ptr, sizeof(serial_port)-1 );
data/digitemp-3.7.2/src/digitemp.c:1529:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( temp_format, ptr, sizeof(temp_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:1533:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( counter_format, ptr, sizeof(counter_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:1537:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( humidity_format, ptr, sizeof(humidity_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:1541:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( log_file, ptr, sizeof(log_file)-1 );
data/digitemp-3.7.2/src/digitemp.c:2418:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		  strncpy( conf_file, optarg, sizeof( conf_file ) - 1 );
data/digitemp-3.7.2/src/digitemp.c:2440:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      		  strncpy( tmp_serial_port, optarg, sizeof(tmp_serial_port) - 1 );
data/digitemp-3.7.2/src/digitemp.c:2447:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      		  strncpy( tmp_log_file, optarg, sizeof( tmp_log_file ) - 1);
data/digitemp-3.7.2/src/digitemp.c:2485: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).
                    if( strlen( optarg ) > sizeof(tmp_temp_format)-1 ) {
data/digitemp-3.7.2/src/digitemp.c:2488:23:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                      strncpy( tmp_temp_format, optarg, sizeof(tmp_temp_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:2498: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).
                  if( strlen( optarg ) > sizeof(tmp_counter_format)-1 ) {
data/digitemp-3.7.2/src/digitemp.c:2501:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy( tmp_counter_format, optarg, sizeof(tmp_counter_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:2509: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).
                  if( strlen( optarg ) > sizeof(tmp_humidity_format)-1 ) {
data/digitemp-3.7.2/src/digitemp.c:2512:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy( tmp_humidity_format, optarg, sizeof(tmp_humidity_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:2548:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( serial_port, tmp_serial_port, sizeof(serial_port)-1 );
data/digitemp-3.7.2/src/digitemp.c:2553:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( log_file, tmp_log_file, sizeof(log_file)-1 );
data/digitemp-3.7.2/src/digitemp.c:2561:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( temp_format, tmp_temp_format, sizeof(temp_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:2567:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( counter_format, tmp_counter_format, sizeof(counter_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:2572:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( humidity_format, tmp_humidity_format, sizeof(humidity_format)-1 );
data/digitemp-3.7.2/src/digitemp.c:2829: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( temp, "\n" );
data/digitemp-3.7.2/userial/ds9097/linuxlnk.c:161:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	     read(fd[portnum], &result, 1);
data/digitemp-3.7.2/userial/ds9097/linuxlnk.c:264:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		 nread_bits = read(fd[portnum], buf, nbits2 - nretrieved_bits);
data/digitemp-3.7.2/userial/ds9097/linuxlnk.c:356:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      read(fd[portnum], &inbit, 1);
data/digitemp-3.7.2/userial/ds9097u/linuxlnk.c:269:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         if (read(fd[portnum],&inbuf[cnt],1) != 1)
data/digitemp-3.7.2/userial/ioutil.c:87: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).
   deflen = strlen(buf);
data/digitemp-3.7.2/userial/ioutil.c:319:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   return fgetc(stdin);
data/digitemp-3.7.2/userial/ioutil.c:396:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         ch = (char) getchar();
data/digitemp-3.7.2/userial/ioutil.c:412:22:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         ch = (char) getchar();
data/digitemp-3.7.2/userial/ioutil.c:417:33:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            hexchar[1] = (char) getchar();
data/digitemp-3.7.2/userial/thermo21.c:1321:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
         cnt += sprintf(&str[cnt],"\n");
data/digitemp-3.7.2/userial/thermo21.c:1330:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
         cnt += sprintf(&str[cnt],"\n");
data/digitemp-3.7.2/userial/thermo21.c:1339:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
         cnt += sprintf(&str[cnt],"\n");
data/digitemp-3.7.2/userial/thermo21.c:1349:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
         cnt += sprintf(&str[cnt],"\n");

ANALYSIS SUMMARY:

Hits = 252
Lines analyzed = 13643 in approximately 0.37 seconds (36642 lines/second)
Physical Source Lines of Code (SLOC) = 7461
Hits@level = [0] 181 [1]  39 [2] 169 [3]   1 [4]  43 [5]   0
Hits@level+ = [0+] 433 [1+] 252 [2+] 213 [3+]  44 [4+]  43 [5+]   0
Hits/KSLOC@level+ = [0+] 58.0351 [1+] 33.7756 [2+] 28.5485 [3+] 5.89733 [4+] 5.7633 [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.