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/comedilib-0.11.0+5/demo/inp.c
Examining data/comedilib-0.11.0+5/demo/sender.c
Examining data/comedilib-0.11.0+5/demo/tut3.c
Examining data/comedilib-0.11.0+5/demo/ledclock.c
Examining data/comedilib-0.11.0+5/demo/info.c
Examining data/comedilib-0.11.0+5/demo/gpct_simple_counting.c
Examining data/comedilib-0.11.0+5/demo/gpct_encoder.c
Examining data/comedilib-0.11.0+5/demo/pwm.c
Examining data/comedilib-0.11.0+5/demo/tut1.c
Examining data/comedilib-0.11.0+5/demo/mmap.c
Examining data/comedilib-0.11.0+5/demo/dio.c
Examining data/comedilib-0.11.0+5/demo/examples.h
Examining data/comedilib-0.11.0+5/demo/gpct_pulse_generator.c
Examining data/comedilib-0.11.0+5/demo/antialias.c
Examining data/comedilib-0.11.0+5/demo/receiver.c
Examining data/comedilib-0.11.0+5/demo/inpn.c
Examining data/comedilib-0.11.0+5/demo/select.c
Examining data/comedilib-0.11.0+5/demo/ao_mmap.c
Examining data/comedilib-0.11.0+5/demo/outp.c
Examining data/comedilib-0.11.0+5/demo/choose_filter.c
Examining data/comedilib-0.11.0+5/demo/tut2.c
Examining data/comedilib-0.11.0+5/demo/poll.c
Examining data/comedilib-0.11.0+5/demo/eeprom_dump.c
Examining data/comedilib-0.11.0+5/demo/sigio.c
Examining data/comedilib-0.11.0+5/demo/sv.c
Examining data/comedilib-0.11.0+5/demo/cmd.c
Examining data/comedilib-0.11.0+5/demo/common.c
Examining data/comedilib-0.11.0+5/demo/choose_routing.c
Examining data/comedilib-0.11.0+5/demo/gpct_buffered_counting.c
Examining data/comedilib-0.11.0+5/demo/apply_cal.c
Examining data/comedilib-0.11.0+5/demo/insn.c
Examining data/comedilib-0.11.0+5/demo/choose_clock.c
Examining data/comedilib-0.11.0+5/demo/do_waveform.c
Examining data/comedilib-0.11.0+5/demo/ao_waveform.c
Examining data/comedilib-0.11.0+5/include/comedilib.h
Examining data/comedilib-0.11.0+5/include/comedilib_scxi.h
Examining data/comedilib-0.11.0+5/include/comedilib_version.h
Examining data/comedilib-0.11.0+5/include/comedi.h
Examining data/comedilib-0.11.0+5/include/comedi_errno.h
Examining data/comedilib-0.11.0+5/testing/cmd_3.c
Examining data/comedilib-0.11.0+5/testing/comedi_test.h
Examining data/comedilib-0.11.0+5/testing/cmd_1.c
Examining data/comedilib-0.11.0+5/testing/info.c
Examining data/comedilib-0.11.0+5/testing/mmap.c
Examining data/comedilib-0.11.0+5/testing/insn_read_time.c
Examining data/comedilib-0.11.0+5/testing/inttrig.c
Examining data/comedilib-0.11.0+5/testing/select.c
Examining data/comedilib-0.11.0+5/testing/bufconfig.c
Examining data/comedilib-0.11.0+5/testing/mode0_read.c
Examining data/comedilib-0.11.0+5/testing/cmd_2.c
Examining data/comedilib-0.11.0+5/testing/lib.c
Examining data/comedilib-0.11.0+5/testing/insn_read.c
Examining data/comedilib-0.11.0+5/testing/main.c
Examining data/comedilib-0.11.0+5/lib/calib.c
Examining data/comedilib-0.11.0+5/lib/timer.c
Examining data/comedilib-0.11.0+5/lib/get.c
Examining data/comedilib-0.11.0+5/lib/range.c
Examining data/comedilib-0.11.0+5/lib/buffer.c
Examining data/comedilib-0.11.0+5/lib/dio.c
Examining data/comedilib-0.11.0+5/lib/calib_yacc.h
Examining data/comedilib-0.11.0+5/lib/comedi.c
Examining data/comedilib-0.11.0+5/lib/calib_lex.c
Examining data/comedilib-0.11.0+5/lib/filler.c
Examining data/comedilib-0.11.0+5/lib/libinternal.h
Examining data/comedilib-0.11.0+5/lib/sv.c
Examining data/comedilib-0.11.0+5/lib/cmd.c
Examining data/comedilib-0.11.0+5/lib/error.c
Examining data/comedilib-0.11.0+5/lib/calib_yacc.c
Examining data/comedilib-0.11.0+5/lib/ioctl.c
Examining data/comedilib-0.11.0+5/lib/timed.c
Examining data/comedilib-0.11.0+5/lib/data.c
Examining data/comedilib-0.11.0+5/lib/calib_lex.h
Examining data/comedilib-0.11.0+5/lib/insn_config_wrappers.c
Examining data/comedilib-0.11.0+5/comedi_config/comedi_config.c
Examining data/comedilib-0.11.0+5/scxi/scxi.c
Examining data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c
Examining data/comedilib-0.11.0+5/c++/include/comedilib.hpp
Examining data/comedilib-0.11.0+5/c++/include/comedi_iostream.hpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/cb64.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/cb.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/ni_labpc.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/calib.h
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/other.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/cal_common.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/ni.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/libcomedi_calibrate/save_cal.c
Examining data/comedilib-0.11.0+5/comedi-calibrate/libcomedi_calibrate/comedi_calibrate_shared.h
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/calibrator_misc.hpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/calibrator_misc.cpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/calibration_set.cpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/calibration_set.hpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/calibrator.hpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/ni_m_series_calibrator.hpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/comedi_soft_calibrate.cpp
Examining data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/ni_m_series_calibrator.cpp

FINAL RESULTS:

data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/calib.h:28:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DPRINT(level,fmt,args...) do{if(verbose>=level)printf(fmt, ## args);}while(0)
data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/comedi_soft_calibrate.cpp:37:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(c_cal->driver_name, driverName.c_str());
data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/comedi_soft_calibrate.cpp:39:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(c_cal->board_name, boardName.c_str());
data/comedilib-0.11.0+5/lib/calib_yacc.c:1020:21:  [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.
#  define YYFPRINTF fprintf
data/comedilib-0.11.0+5/lib/libinternal.h:57:80:  [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.
#define COMEDILIB_DEBUG(level,format,args...) do{if(__comedi_loglevel>=(level))fprintf(stderr,"%s: " format, __FUNCTION__ , ##args);}while(0)
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:120:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "f:S:vqs:c:r:a:", options, &index);
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:221:20:  [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 (-1 != (c = getopt(argc, argv, "hvn:F:"))) {
data/comedilib-0.11.0+5/comedi_config/comedi_config.c:218:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c=getopt_long(argc, argv, "rvVqi:", options, &index);
data/comedilib-0.11.0+5/demo/common.c:36:20:  [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 (-1 != (c = getopt(argc, argv, "a:c:s:r:f:n:N:F:pvdgom"))) {
data/comedilib-0.11.0+5/demo/gpct_encoder.c:81:21:  [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 (-1 != (c = getopt(argc, argv, "f:s:A:B:Z:I:"))) {
data/comedilib-0.11.0+5/lib/comedi.c:45:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if( (s=getenv("COMEDILIB_LOGLEVEL")) ){
data/comedilib-0.11.0+5/testing/main.c:121:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "f:rs:t:v", longopts, NULL);
data/comedilib-0.11.0+5/c++/include/comedilib.hpp:79:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			this->open(device_file);
data/comedilib-0.11.0+5/c++/include/comedilib.hpp:196:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		void open(const std::string &device_file)
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:444: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 s[100];
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:883: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 s[32];
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1022:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[100];
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1092:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[100];
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1288:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[100];
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1563:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	return sprintf(s,"%0.*f(%2.0f)e%d",sigfigs-1,mantissa,error,maxsig);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1584: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.
		return sprintf(s,"%g",x);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1587: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.
		return sprintf(s,"%0.0f(%2.0f)",x,error);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1590: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.
		return sprintf(s,"%0.*f(%2.0f)",sigfigs-1-maxsig,
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1593:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	return sprintf(s,"%0.*f(%2.0f)e%d",sigfigs-1,mantissa,error,maxsig);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_soft_calibrate/comedi_soft_calibrate.cpp:136:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	_comediDev.open(_deviceFile);
data/comedilib-0.11.0+5/comedi-calibrate/libcomedi_calibrate/save_cal.c:162:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(file_path, "w");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:82: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(udesc, "*EXT");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:86:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	case UNIT_volt: strcat(udesc," V"); break;
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:87:16:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	case UNIT_mA: strcat(udesc," mA"); break;
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:89: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.
	default: sprintf(udesc + strlen(udesc)," (unknown unit %d)",
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:113:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_NONE)strcat(buf,"none|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:114:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_NOW)strcat(buf,"now|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:115:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_FOLLOW)strcat(buf, "follow|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:116:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_TIME)strcat(buf, "time|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:117:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_TIMER)strcat(buf, "timer|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:118:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_COUNT)strcat(buf, "count|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:119:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_EXT)strcat(buf, "ext|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:120:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_INT)strcat(buf, "int|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:122:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_OTHER)strcat(buf, "other|");
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:126:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf,"unknown(0x%08x)",src);
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:184:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:216: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 strtmp[32];
data/comedilib-0.11.0+5/comedi_config/comedi_config.c:52: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 *init_file[MAX_NUM_INIT_FILES] = {NULL,NULL,NULL,NULL};
data/comedilib-0.11.0+5/comedi_config/comedi_config.c:137: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).
		files[i] = fopen(file_names[i],"r");
data/comedilib-0.11.0+5/comedi_config/comedi_config.c:328:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd=open(fn,O_RDWR);
data/comedilib-0.11.0+5/demo/cmd.c:29: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 buf[BUFSZ];
data/comedilib-0.11.0+5/demo/common.c:97:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_NONE)strcat(buf,"none|");
data/comedilib-0.11.0+5/demo/common.c:98:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_NOW)strcat(buf,"now|");
data/comedilib-0.11.0+5/demo/common.c:99:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_FOLLOW)strcat(buf, "follow|");
data/comedilib-0.11.0+5/demo/common.c:100:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_TIME)strcat(buf, "time|");
data/comedilib-0.11.0+5/demo/common.c:101:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_TIMER)strcat(buf, "timer|");
data/comedilib-0.11.0+5/demo/common.c:102:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_COUNT)strcat(buf, "count|");
data/comedilib-0.11.0+5/demo/common.c:103:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_EXT)strcat(buf, "ext|");
data/comedilib-0.11.0+5/demo/common.c:104:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_INT)strcat(buf, "int|");
data/comedilib-0.11.0+5/demo/common.c:106:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_OTHER)strcat(buf, "other|");
data/comedilib-0.11.0+5/demo/common.c:110:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf,"unknown(0x%08x)",src);
data/comedilib-0.11.0+5/demo/common.c:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/demo/info.c:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/demo/info.c:157:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/demo/tut3.c:40: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 buf[BUFSZ];
data/comedilib-0.11.0+5/include/comedi.h:833: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 driver_name[COMEDI_NAMELEN];
data/comedilib-0.11.0+5/include/comedi.h:834: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 board_name[COMEDI_NAMELEN];
data/comedilib-0.11.0+5/include/comedi.h:854: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 board_name[COMEDI_NAMELEN];
data/comedilib-0.11.0+5/include/comedilib_scxi.h:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[12];
data/comedilib-0.11.0+5/lib/calib.c:230: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 file_path[ 1024 ];
data/comedilib-0.11.0+5/lib/calib_yacc.c:1267: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/comedilib-0.11.0+5/lib/calib_yacc.c:1459: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 yymsgbuf[128];
data/comedilib-0.11.0+5/lib/calib_yacc.c:2051:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen( cal_file_path, "r" );
data/comedilib-0.11.0+5/lib/comedi.c:63:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if((it->fd=open(fn,O_RDWR))<0){
data/comedilib-0.11.0+5/lib/range.c:45:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  (__extension__ ((union { unsigned char __c[8];			      \
data/comedilib-0.11.0+5/testing/cmd_1.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/testing/cmd_1.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/comedilib-0.11.0+5/testing/cmd_1.c:108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSZ];
data/comedilib-0.11.0+5/testing/cmd_1.c:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSZ];
data/comedilib-0.11.0+5/testing/cmd_1.c:345:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_NONE)strcat(buf,"none|");
data/comedilib-0.11.0+5/testing/cmd_1.c:346:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_NOW)strcat(buf,"now|");
data/comedilib-0.11.0+5/testing/cmd_1.c:347:21:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_FOLLOW)strcat(buf,"follow|");
data/comedilib-0.11.0+5/testing/cmd_1.c:348:19:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_TIME)strcat(buf,"time|");
data/comedilib-0.11.0+5/testing/cmd_1.c:349:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_TIMER)strcat(buf,"timer|");
data/comedilib-0.11.0+5/testing/cmd_1.c:350:20:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_COUNT)strcat(buf,"count|");
data/comedilib-0.11.0+5/testing/cmd_1.c:351:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_EXT)strcat(buf,"ext|");
data/comedilib-0.11.0+5/testing/cmd_1.c:352:18:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	if(src&TRIG_INT)strcat(buf,"int|");
data/comedilib-0.11.0+5/testing/cmd_1.c:355:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf,"unknown(0x%02x)",src);
data/comedilib-0.11.0+5/testing/cmd_2.c:41:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSZ];
data/comedilib-0.11.0+5/testing/cmd_3.c:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSZ];
data/comedilib-0.11.0+5/testing/inttrig.c:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSZ];
data/comedilib-0.11.0+5/testing/select.c:21:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSZ];
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:262:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		printf("%.*s\n",(int)strlen(s)-2,s+1);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:265:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		printf("%.*s\n",(int)strlen(this_board->id)-2,this_board->id+1);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:510:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:533:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:552:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:577:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:583:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:625:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:631:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:645:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:696:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:708:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:727:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:786:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:804:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:828:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1043:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1050:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1113:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/comedi_calibrate.c:1120:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(caldac_settle_usec);
data/comedilib-0.11.0+5/comedi-calibrate/comedi_calibrate/other.c:37:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep( delay / 1000 );
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:88:18:  [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.
	case UNIT_none: strcat(udesc,""); break; 
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:89:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	default: sprintf(udesc + strlen(udesc)," (unknown unit %d)",
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:125:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(buf)==0){
data/comedilib-0.11.0+5/comedi_board_info/comedi_board_info.c:128:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf[strlen(buf)-1]=0;
data/comedilib-0.11.0+5/comedi_config/comedi_config.c:354:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(it.board_name,driver,COMEDI_NAMELEN-1);
data/comedilib-0.11.0+5/demo/ao_mmap.c:184:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/comedilib-0.11.0+5/demo/cmd.c:194:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(dev),buf,BUFSZ);
data/comedilib-0.11.0+5/demo/common.c:109:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(buf)==0){
data/comedilib-0.11.0+5/demo/common.c:112:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf[strlen(buf)-1]=0;
data/comedilib-0.11.0+5/demo/gpct_buffered_counting.c:182:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	retval = read(fd, buffer, buffer_size * sizeof(lsampl_t));
data/comedilib-0.11.0+5/demo/gpct_buffered_counting.c:191:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		retval = read(fd, buffer, buffer_size * sizeof(lsampl_t));
data/comedilib-0.11.0+5/demo/ledclock.c:226:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret=read(comedi_fileno(dev),buf,BUFSZ);
data/comedilib-0.11.0+5/demo/mmap.c:173:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/comedilib-0.11.0+5/demo/poll.c:140:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret=read(comedi_fileno(dev),buf,sizeof(buf));
data/comedilib-0.11.0+5/demo/receiver.c:151:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret=read(comedi_fileno(dev),buf,BUFSZ);
data/comedilib-0.11.0+5/demo/select.c:138:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret=read(comedi_fileno(dev),buf,sizeof(buf));
data/comedilib-0.11.0+5/demo/sigio.c:176:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret=read(comedi_fileno(dev),buf,BUFSZ);
data/comedilib-0.11.0+5/demo/sigio.c:180: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(10000);
data/comedilib-0.11.0+5/demo/tut3.c:174:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(dev),buf,BUFSZ);
data/comedilib-0.11.0+5/lib/calib.c:236:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( file_path, cal_file_path, sizeof( file_path ) );
data/comedilib-0.11.0+5/lib/calib.c:243:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( file_path, temp, sizeof( file_path ) );
data/comedilib-0.11.0+5/lib/calib_lex.c:754:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/comedilib-0.11.0+5/lib/calib_lex.c:966:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(calib_yyget_text(yyscanner)) > 0)
data/comedilib-0.11.0+5/lib/calib_lex.c:967:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		calib_yyget_text(yyscanner)[strlen(calib_yyget_text(yyscanner)) - 1] = 0;
data/comedilib-0.11.0+5/lib/calib_lex.c:1811:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return calib_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/comedilib-0.11.0+5/lib/calib_yacc.c:1167:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/comedilib-0.11.0+5/lib/timed.c:79:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if((m=read(dev->fd,buffer,m*sizeof(sampl_t)))<0){
data/comedilib-0.11.0+5/testing/cmd_1.c:138:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(device),buf,BUFSZ);
data/comedilib-0.11.0+5/testing/cmd_1.c:141: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(10000);
data/comedilib-0.11.0+5/testing/cmd_1.c:242: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(10000);
data/comedilib-0.11.0+5/testing/cmd_1.c:271:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(10000);
data/comedilib-0.11.0+5/testing/cmd_1.c:354:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(buf)==0){
data/comedilib-0.11.0+5/testing/cmd_1.c:357:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf[strlen(buf)-1]=0;
data/comedilib-0.11.0+5/testing/cmd_2.c:65:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(device),buf,BUFSZ);
data/comedilib-0.11.0+5/testing/cmd_2.c:68: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(10000);
data/comedilib-0.11.0+5/testing/cmd_3.c:85:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(device),buf,BUFSZ);
data/comedilib-0.11.0+5/testing/cmd_3.c:88: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(10000);
data/comedilib-0.11.0+5/testing/inttrig.c:71:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(device),buf,BUFSZ);
data/comedilib-0.11.0+5/testing/inttrig.c:74: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(10000);
data/comedilib-0.11.0+5/testing/mmap.c:117:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(comedi_fileno(device), b,
data/comedilib-0.11.0+5/testing/mmap.c:121: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(10000);
data/comedilib-0.11.0+5/testing/select.c:69:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(comedi_fileno(device),buf,BUFSZ);

ANALYSIS SUMMARY:

Hits = 151
Lines analyzed = 27372 in approximately 0.80 seconds (34340 lines/second)
Physical Source Lines of Code (SLOC) = 20081
Hits@level = [0] 585 [1]  63 [2]  76 [3]   7 [4]   5 [5]   0
Hits@level+ = [0+] 736 [1+] 151 [2+]  88 [3+]  12 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 36.6516 [1+] 7.51955 [2+] 4.38225 [3+] 0.59758 [4+] 0.248992 [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.