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/gensio-2.2.0/examples/basic_client.c
Examining data/gensio-2.2.0/examples/basic_server.c
Examining data/gensio-2.2.0/examples/basic_server_sync.c
Examining data/gensio-2.2.0/examples/basic_server_sync_fork.c
Examining data/gensio-2.2.0/include/gensio/argvutils.h
Examining data/gensio-2.2.0/include/gensio/gensio.h
Examining data/gensio-2.2.0/include/gensio/gensio_acc_gensio.h
Examining data/gensio-2.2.0/include/gensio/gensio_base.h
Examining data/gensio-2.2.0/include/gensio/gensio_builtins.h
Examining data/gensio-2.2.0/include/gensio/gensio_class.h
Examining data/gensio-2.2.0/include/gensio/gensio_deprecated.h
Examining data/gensio-2.2.0/include/gensio/gensio_dllvisibility.h
Examining data/gensio-2.2.0/include/gensio/gensio_err.h
Examining data/gensio-2.2.0/include/gensio/gensio_list.h
Examining data/gensio-2.2.0/include/gensio/gensio_ll_fd.h
Examining data/gensio-2.2.0/include/gensio/gensio_ll_gensio.h
Examining data/gensio-2.2.0/include/gensio/gensio_mdns.h
Examining data/gensio-2.2.0/include/gensio/gensio_os_funcs.h
Examining data/gensio-2.2.0/include/gensio/gensio_osops.h
Examining data/gensio-2.2.0/include/gensio/gensio_selector.h
Examining data/gensio-2.2.0/include/gensio/selector.h
Examining data/gensio-2.2.0/include/gensio/sergensio.h
Examining data/gensio-2.2.0/include/gensio/sergensio_class.h
Examining data/gensio-2.2.0/include/pthread_handler.h
Examining data/gensio-2.2.0/lib/avahi_watcher.c
Examining data/gensio-2.2.0/lib/avahi_watcher.h
Examining data/gensio-2.2.0/lib/buffer.c
Examining data/gensio-2.2.0/lib/buffer.h
Examining data/gensio-2.2.0/lib/errtrig.c
Examining data/gensio-2.2.0/lib/errtrig.h
Examining data/gensio-2.2.0/lib/gensio.c
Examining data/gensio-2.2.0/lib/gensio_acc.c
Examining data/gensio-2.2.0/lib/gensio_acc_gensio.c
Examining data/gensio-2.2.0/lib/gensio_base.c
Examining data/gensio-2.2.0/lib/gensio_certauth.c
Examining data/gensio-2.2.0/lib/gensio_conacc.c
Examining data/gensio-2.2.0/lib/gensio_dummy.c
Examining data/gensio-2.2.0/lib/gensio_echo.c
Examining data/gensio-2.2.0/lib/gensio_file.c
Examining data/gensio-2.2.0/lib/gensio_filter_certauth.c
Examining data/gensio-2.2.0/lib/gensio_filter_certauth.h
Examining data/gensio-2.2.0/lib/gensio_filter_msgdelim.c
Examining data/gensio-2.2.0/lib/gensio_filter_msgdelim.h
Examining data/gensio-2.2.0/lib/gensio_filter_perf.c
Examining data/gensio-2.2.0/lib/gensio_filter_perf.h
Examining data/gensio-2.2.0/lib/gensio_filter_relpkt.c
Examining data/gensio-2.2.0/lib/gensio_filter_relpkt.h
Examining data/gensio-2.2.0/lib/gensio_filter_ssl.c
Examining data/gensio-2.2.0/lib/gensio_filter_ssl.h
Examining data/gensio-2.2.0/lib/gensio_filter_telnet.c
Examining data/gensio-2.2.0/lib/gensio_filter_telnet.h
Examining data/gensio-2.2.0/lib/gensio_filter_trace.c
Examining data/gensio-2.2.0/lib/gensio_filter_trace.h
Examining data/gensio-2.2.0/lib/gensio_ll_fd.c
Examining data/gensio-2.2.0/lib/gensio_ll_gensio.c
Examining data/gensio-2.2.0/lib/gensio_ll_ipmisol.c
Examining data/gensio-2.2.0/lib/gensio_ll_ipmisol.h
Examining data/gensio-2.2.0/lib/gensio_mdns.c
Examining data/gensio-2.2.0/lib/gensio_msgdelim.c
Examining data/gensio-2.2.0/lib/gensio_mux.c
Examining data/gensio-2.2.0/lib/gensio_net.c
Examining data/gensio-2.2.0/lib/gensio_osops.c
Examining data/gensio-2.2.0/lib/gensio_perf.c
Examining data/gensio-2.2.0/lib/gensio_pty.c
Examining data/gensio-2.2.0/lib/gensio_relpkt.c
Examining data/gensio-2.2.0/lib/gensio_sctp.c
Examining data/gensio-2.2.0/lib/gensio_selector.c
Examining data/gensio-2.2.0/lib/gensio_ssl.c
Examining data/gensio-2.2.0/lib/gensio_stdio.c
Examining data/gensio-2.2.0/lib/gensio_trace.c
Examining data/gensio-2.2.0/lib/gensio_udp.c
Examining data/gensio-2.2.0/lib/heap.h
Examining data/gensio-2.2.0/lib/mdns.c
Examining data/gensio-2.2.0/lib/selector.c
Examining data/gensio-2.2.0/lib/sergensio.c
Examining data/gensio-2.2.0/lib/sergensio_ipmisol.c
Examining data/gensio-2.2.0/lib/sergensio_serialdev.c
Examining data/gensio-2.2.0/lib/sergensio_telnet.c
Examining data/gensio-2.2.0/lib/telnet.c
Examining data/gensio-2.2.0/lib/telnet.h
Examining data/gensio-2.2.0/lib/utils.c
Examining data/gensio-2.2.0/lib/utils.h
Examining data/gensio-2.2.0/lib/uucplock.c
Examining data/gensio-2.2.0/lib/uucplock.h
Examining data/gensio-2.2.0/swig/python/gensio_python.h
Examining data/gensio-2.2.0/tests/oomtest.c
Examining data/gensio-2.2.0/tools/gensiomdns.c
Examining data/gensio-2.2.0/tools/gensiotool.c
Examining data/gensio-2.2.0/tools/gtlssh-shared.c
Examining data/gensio-2.2.0/tools/gtlssh.c
Examining data/gensio-2.2.0/tools/gtlssh.h
Examining data/gensio-2.2.0/tools/gtlsshd.c
Examining data/gensio-2.2.0/tools/ioinfo.c
Examining data/gensio-2.2.0/tools/ioinfo.h
Examining data/gensio-2.2.0/tools/localports.c
Examining data/gensio-2.2.0/tools/localports.h
Examining data/gensio-2.2.0/tools/ser_ioinfo.c
Examining data/gensio-2.2.0/tools/ser_ioinfo.h
Examining data/gensio-2.2.0/tools/utils.c
Examining data/gensio-2.2.0/tools/utils.h

FINAL RESULTS:

data/gensio-2.2.0/lib/gensio_net.c:702:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(unpath, nadata->mode);
data/gensio-2.2.0/lib/gensio_net.c:735:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	err = chown(unpath, ownerid, groupid);
data/gensio-2.2.0/lib/gensio_pty.c:127:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(ptsstr, tdata->mode);
data/gensio-2.2.0/lib/gensio_pty.c:159:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	err = chown(ptsstr, ownerid, groupid);
data/gensio-2.2.0/lib/sergensio_serialdev.c:1241:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    while (readlink(ttyname, buf, sizeof(buf)) > 0)
data/gensio-2.2.0/examples/basic_client.c:26:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/examples/basic_server.c:34:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/examples/basic_server.c:268:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, li->str, li->args);
data/gensio-2.2.0/examples/basic_server_sync.c:59:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/examples/basic_server_sync.c:172:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, li->str, li->args);
data/gensio-2.2.0/examples/basic_server_sync_fork.c:69:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/examples/basic_server_sync_fork.c:183:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, li->str, li->args);
data/gensio-2.2.0/lib/gensio.c:3191:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    rv = vsnprintf(buf, size, format, ap);
data/gensio-2.2.0/lib/gensio.c:3254:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(c, 0, fmt, va) + 1;
data/gensio-2.2.0/lib/gensio.c:3257:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(str, len, fmt, va2);
data/gensio-2.2.0/lib/gensio_ll_ipmisol.c:389:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(format, ap);
data/gensio-2.2.0/lib/gensio_mdns.c:277:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	extra = vsnprintf(s2 + *len, 0, fmt, ap);
data/gensio-2.2.0/lib/gensio_mdns.c:288:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(s + *len - 1, extra + 1, fmt, ap);
data/gensio-2.2.0/lib/gensio_pty.c:286:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(pgm, (char **) tdata->argv);
data/gensio-2.2.0/lib/gensio_stdio.c:689:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(nadata->argv[0], (char * const *) nadata->argv);
data/gensio-2.2.0/lib/utils.c:28:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(s, str);
data/gensio-2.2.0/lib/uucplock.c:52:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%sLCK..%s", uucp_lck_dir, devname);
data/gensio-2.2.0/swig/python/gensio_python.h:399:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(buf, 0, fmt, tmpva);
data/gensio-2.2.0/swig/python/gensio_python.h:404:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, len + 1, fmt, fmtargs);
data/gensio-2.2.0/swig/python/gensio_python.h:1028:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buf, sizeof(buf), i->str, i->args);
data/gensio-2.2.0/tests/oomtest.c:279:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(log, args);
data/gensio-2.2.0/tools/gensiomdns.c:53:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/tools/gensiotool.c:162:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/gensio-2.2.0/tools/gensiotool.c:173:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(str, sizeof(str), fmt, ap);
data/gensio-2.2.0/tools/gensiotool.c:325:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, li->str, li->args);
data/gensio-2.2.0/tools/gensiotool.c:408:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/tools/gtlssh.c:95:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/gensio-2.2.0/tools/gtlssh.c:105:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(str, sizeof(str), fmt, ap);
data/gensio-2.2.0/tools/gtlssh.c:294:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, log, args);
data/gensio-2.2.0/tools/gtlssh.c:763:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    int rv = system(cmd);
data/gensio-2.2.0/tools/gtlssh.c:855:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, fmt, ap);
data/gensio-2.2.0/tools/gtlssh.c:1460:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    len += sprintf(service + len, "%s", argv[i]);
data/gensio-2.2.0/tools/gtlssh.c:1479:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    len = sprintf(service, "login:TERM=%s", termvar);
data/gensio-2.2.0/tools/utils.c:60:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = vsnprintf(c, 0, fmt, va);
data/gensio-2.2.0/tools/utils.c:63:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(str, len + 1, fmt, va2);
data/gensio-2.2.0/lib/errtrig.c:36:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *s = getenv("GENSIO_ERRTRIG_TEST");
data/gensio-2.2.0/lib/gensio_selector.c:69:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    char *s = getenv("GENSIO_MEMTRACK");
data/gensio-2.2.0/tests/oomtest.c:124:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *e = getenv("GENSIO_TEST_ECHO_DEV");
data/gensio-2.2.0/tests/oomtest.c:1670:12:  [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.
	gensiot = getenv("GENSIOT");
data/gensio-2.2.0/tools/gtlssh.c:1469:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *termvar = getenv("TERM");
data/gensio-2.2.0/tools/gtlssh.c:1495:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *home = getenv("HOME");
data/gensio-2.2.0/examples/basic_client.c:166:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ci.outbuf, argv[2], ci.outbuf_len);
data/gensio-2.2.0/examples/basic_server.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char inbuf[100]; /* Holds read data */
data/gensio-2.2.0/examples/basic_server.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outbuf[200]; /* Holds write data */
data/gensio-2.2.0/examples/basic_server_sync.c:96:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char inbuf[100], *buf;
data/gensio-2.2.0/examples/basic_server_sync.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy[10];
data/gensio-2.2.0/examples/basic_server_sync_fork.c:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char inbuf[100], *buf;
data/gensio-2.2.0/examples/basic_server_sync_fork.c:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy[10];
data/gensio-2.2.0/lib/buffer.c:83:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf->buf + end, data, availend);
data/gensio-2.2.0/lib/buffer.c:89:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf->buf + end, data, len);
data/gensio-2.2.0/lib/gensio.c:2220:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d->def.strval, strval, intval);
data/gensio-2.2.0/lib/gensio.c:2330:2:  [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(new_strval, strval, intval);
data/gensio-2.2.0/lib/gensio.c:2465:6:  [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(str, val->strval, val->intval + 1); /* copy terminating \0 */
data/gensio-2.2.0/lib/gensio.c:2788:6:  [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(op->buf, buf, len);
data/gensio-2.2.0/lib/gensio.c:3251:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c[1], *str;
data/gensio-2.2.0/lib/gensio_echo.c:136:2:  [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(ndata->read_data + ndata->data_pending_len,
data/gensio-2.2.0/lib/gensio_echo.c:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ndata->read_data, ndata->read_data + count,
data/gensio-2.2.0/lib/gensio_file.c:144:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(fn, fmode);
data/gensio-2.2.0/lib/gensio_file.c:200: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).
    fd = open(fn, flags, mode);
data/gensio-2.2.0/lib/gensio_file.c:338:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ndata->read_data, ndata->read_data + count,
data/gensio-2.2.0/lib/gensio_filter_certauth.c:357: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[256], buf2[200];
data/gensio-2.2.0/lib/gensio_filter_certauth.c:482:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(sfilter->write_buf + sfilter->write_buf_len, data, len);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:520:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char d[2];
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1238:6:  [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(sfilter->username, sfilter->read_buf,
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1255:6:  [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(sfilter->service, sfilter->read_buf,
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1291:6:  [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(sfilter->password, sfilter->read_buf,
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1311:6:  [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(sfilter->challenge_data, sfilter->read_buf,
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1469:2:  [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(sfilter->read_buf + sfilter->read_buf_len, buf, elemleft);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1480:2:  [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(sfilter->read_buf + sfilter->read_buf_len, buf, buflen);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1659:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(data, sfilter->service, to_copy);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1666:6:  [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(new_service, data, *datalen);
data/gensio-2.2.0/lib/gensio_filter_msgdelim.c:247:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *eomaux[2] = { "eom", NULL };
data/gensio-2.2.0/lib/gensio_filter_perf.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char print_buffer[1024];
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:293:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char init_pkt[5];
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:297:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char close_pkt[3];
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:301:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ack_pkt[3];
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char resend_pkt[51];
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:714:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(p->data + p->len + 3, buf, inlen);
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:819:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *eomaux[2] = { "eom", NULL };
data/gensio-2.2.0/lib/gensio_filter_relpkt.c:953:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p->data, buf + 3, buflen - 3);
data/gensio-2.2.0/lib/gensio_filter_ssl.c:89:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char xmit_buf[1024];
data/gensio-2.2.0/lib/gensio_filter_ssl.c:114: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[256], buf2[200];
data/gensio-2.2.0/lib/gensio_filter_ssl.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1];
data/gensio-2.2.0/lib/gensio_filter_ssl.c:440:6:  [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(sfilter->write_data + sfilter->write_data_len,
data/gensio-2.2.0/lib/gensio_filter_ssl.c:793:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data + len, strobj, strobjlen);
data/gensio-2.2.0/lib/gensio_filter_ssl.c:823:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, bptr->data, copylen);
data/gensio-2.2.0/lib/gensio_filter_ssl.c:835:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char md[EVP_MAX_MD_SIZE];
data/gensio-2.2.0/lib/gensio_filter_telnet.c:420:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, in, i * sizeof(*out));
data/gensio-2.2.0/lib/gensio_filter_telnet.c:512:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];
data/gensio-2.2.0/lib/gensio_filter_trace.c:91:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	tfilter->tr = fopen(tfilter->filename, tfilter->modeflag);
data/gensio-2.2.0/lib/gensio_filter_trace.c:107:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[16];
data/gensio-2.2.0/lib/gensio_ll_ipmisol.c:847:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf + pos, sg[i].buf, total_write - pos);
data/gensio-2.2.0/lib/gensio_ll_ipmisol.c:850:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf + pos, sg[i].buf, sg[i].buflen);
data/gensio-2.2.0/lib/gensio_mdns.c:285:2:  [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(s, s2, *len - 1);
data/gensio-2.2.0/lib/gensio_mux.c:240:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hdr[MUX_MAX_HDR_SIZE];
data/gensio-2.2.0/lib/gensio_mux.c:292:2:  [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(chan->write_data + epos, data, plen);
data/gensio-2.2.0/lib/gensio_mux.c:298:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chan->write_data + epos, data, len);
data/gensio-2.2.0/lib/gensio_mux.c:323:2:  [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(chan->read_data + epos, data, plen);
data/gensio-2.2.0/lib/gensio_mux.c:329:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(chan->read_data + epos, data, len);
data/gensio-2.2.0/lib/gensio_mux.c:435:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char xmit_data[MUX_MAX_HDR_SIZE];
data/gensio-2.2.0/lib/gensio_mux.c:460:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hdr[MUX_MAX_HDR_SIZE];
data/gensio-2.2.0/lib/gensio_mux.c:912: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.
    const char *flstr[3];
data/gensio-2.2.0/lib/gensio_mux.c:1056:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hdr[3];
data/gensio-2.2.0/lib/gensio_mux.c:1713:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(data, chan->service, to_copy);
data/gensio-2.2.0/lib/gensio_mux.c:1722:6:  [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(new_service, data, *datalen);
data/gensio-2.2.0/lib/gensio_mux.c:2157: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.
    const char *auxdata[2] = { NULL, NULL };
data/gensio-2.2.0/lib/gensio_mux.c:2206:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(muxdata->hdr + muxdata->hdr_pos, buf, buflen);
data/gensio-2.2.0/lib/gensio_mux.c:2214:6:  [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(muxdata->hdr + muxdata->hdr_pos, buf, used);
data/gensio-2.2.0/lib/gensio_mux.c:2460:4:  [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(chan->service + muxdata->data_pos - 2,
data/gensio-2.2.0/lib/gensio_mux.c:2468:7:  [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(chan->service + muxdata->data_pos - 2, buf, used);
data/gensio-2.2.0/lib/gensio_net.c:225:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *argv[3] = { "oob", "oobtcp", NULL };
data/gensio-2.2.0/lib/gensio_net.c:668:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(path, sun->sun_path, len - sizeof(sa_family_t));
data/gensio-2.2.0/lib/gensio_net.c:677:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[MAX_UNIX_ADDR_PATH];
data/gensio-2.2.0/lib/gensio_net.c:689:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pwbuf[16384];
data/gensio-2.2.0/lib/gensio_net.c:693:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char unpath[MAX_UNIX_ADDR_PATH];
data/gensio-2.2.0/lib/gensio_net.c:834: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.
    const char *args[4] = { NULL, NULL, NULL, NULL };
data/gensio-2.2.0/lib/gensio_net.c:835:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gensio-2.2.0/lib/gensio_osops.c:322:2:  [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(&s4.sin_addr, iaddr, len);
data/gensio-2.2.0/lib/gensio_osops.c:333:2:  [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(&s6.sin6_addr, iaddr, len);
data/gensio-2.2.0/lib/gensio_osops.c:343:2:  [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(su.sun_path, iaddr, len);
data/gensio-2.2.0/lib/gensio_osops.c:357:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(a->a->ai_addr, s, slen);
data/gensio-2.2.0/lib/gensio_osops.c:544:6:  [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(tfds, fds, sizeof(*tfds) * i);
data/gensio-2.2.0/lib/gensio_osops.c:747:2:  [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(s, ai->ai_addr, len);
data/gensio-2.2.0/lib/gensio_osops.c:827:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(addr, saddr, clen);
data/gensio-2.2.0/lib/gensio_osops.c:880:2:  [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(ai->ai_addr, d, size);
data/gensio-2.2.0/lib/gensio_osops.c:1391: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).
    fd = open("/dev/urandom", O_RDONLY);
data/gensio-2.2.0/lib/gensio_osops.c:1567:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&sa, addr, addrlen);
data/gensio-2.2.0/lib/gensio_osops.c:1588:6:  [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 unpath[sizeof(unaddr->sun_path) + 1];
data/gensio-2.2.0/lib/gensio_osops.c:1595:6:  [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(unpath, unaddr->sun_path, addrlen - sizeof(sa_family_t));
data/gensio-2.2.0/lib/gensio_osops.c:1865: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 ibuf[INET_ADDRSTRLEN];
data/gensio-2.2.0/lib/gensio_osops.c:1872: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 ibuf[INET6_ADDRSTRLEN];
data/gensio-2.2.0/lib/gensio_osops.c:2113:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(saddr->sun_path, str, len);
data/gensio-2.2.0/lib/gensio_osops.c:2322:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(aic, iai, sizeof(*aic));
data/gensio-2.2.0/lib/gensio_osops.c:2329:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(aic->ai_addr, iai->ai_addr, iai->ai_addrlen);
data/gensio-2.2.0/lib/gensio_osops.c:2562:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(oaddr, addr->curr->ai_addr, len);
data/gensio-2.2.0/lib/gensio_pty.c:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ptsstr[PATH_MAX];
data/gensio-2.2.0/lib/gensio_pty.c:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pwbuf[16384];
data/gensio-2.2.0/lib/gensio_pty.c:215:7:  [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("/dev/tty", O_RDWR);
data/gensio-2.2.0/lib/gensio_pty.c:220:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    fd = open("/dev/tty", O_RDWR);
data/gensio-2.2.0/lib/gensio_pty.c:240:7:  [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(slave, O_RDWR);
data/gensio-2.2.0/lib/gensio_pty.c:248:6:  [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 (open("/dev/tty", O_RDWR) == -1) {
data/gensio-2.2.0/lib/gensio_pty.c:459: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 ptsstr[PATH_MAX];
data/gensio-2.2.0/lib/gensio_sctp.c:49: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.
    const char *auxdata[3];
data/gensio-2.2.0/lib/gensio_sctp.c:783: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.
    const char *args[8] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
data/gensio-2.2.0/lib/gensio_sctp.c:784:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100], buf2[100], buf3[100], buf4[100], buf5[100];
data/gensio-2.2.0/lib/gensio_udp.c:551:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char raddrdata[200];
data/gensio-2.2.0/lib/gensio_udp.c:552: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.
    const char *auxmem[2] = { NULL, NULL };
data/gensio-2.2.0/lib/gensio_udp.c:564:5:  [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(raddrdata, "addr:");
data/gensio-2.2.0/lib/gensio_udp.c:568: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(raddrdata, "err:addr:");
data/gensio-2.2.0/lib/mdns.c:128: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 errbuf[200];
data/gensio-2.2.0/lib/sergensio_serialdev.c:434: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).
    bool open;
data/gensio-2.2.0/lib/sergensio_serialdev.c:592:17:  [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 (!sdata->open) {
data/gensio-2.2.0/lib/sergensio_serialdev.c:1239:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[PATH_MAX];
data/gensio-2.2.0/lib/sergensio_serialdev.c:1287:17:  [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).
    sdata->fd = open(sdata->devname, options);
data/gensio-2.2.0/lib/sergensio_serialdev.c:1392: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[4];
data/gensio-2.2.0/lib/sergensio_telnet.c:175:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[6];
data/gensio-2.2.0/lib/sergensio_telnet.c:209:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[3];
data/gensio-2.2.0/lib/sergensio_telnet.c:312:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char outopt[MAX_TELNET_CMD_XMIT_BUF];
data/gensio-2.2.0/lib/sergensio_telnet.c:341:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[3];
data/gensio-2.2.0/lib/sergensio_telnet.c:383:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];
data/gensio-2.2.0/lib/sergensio_telnet.c:409:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[2];
data/gensio-2.2.0/lib/sergensio_telnet.c:1077: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.
    const char *args[5] = {NULL, NULL, NULL, NULL, NULL};
data/gensio-2.2.0/lib/sergensio_telnet.c:1078:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf1[50], buf2[50];
data/gensio-2.2.0/lib/sergensio_telnet.c:1125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg1[25], arg2[25], arg3[25], arg4[25];
data/gensio-2.2.0/lib/sergensio_telnet.c:1126: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.
    const char *args[5] = { arg1, arg2, arg3, arg4, NULL };
data/gensio-2.2.0/lib/telnet.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char i[3];
data/gensio-2.2.0/lib/telnet.h:63:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char  telnet_cmd[MAX_TELNET_CMD_SIZE + 1];
data/gensio-2.2.0/lib/telnet.h:76:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char out_telnet_cmdbuf[MAX_TELNET_CMD_XMIT_BUF];
data/gensio-2.2.0/lib/utils.c:83:2:  [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(nargv, *argv, sizeof(char *) * *args);
data/gensio-2.2.0/lib/uucplock.c:106:6:  [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[64];
data/gensio-2.2.0/lib/uucplock.c:117:12:  [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(lck_file, O_RDONLY)) >= 0) {
data/gensio-2.2.0/lib/uucplock.c:142:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    fd = open(lck_file, O_WRONLY | O_CREAT | O_EXCL, 0666);
data/gensio-2.2.0/swig/python/gensio_python.h:821:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, p, *buflen);
data/gensio-2.2.0/swig/python/gensio_python.h:1013:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/gensio-2.2.0/swig/python/gensio_python.h:1107:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pwvfy->password, p, pwvfy->password_len);
data/gensio-2.2.0/tests/oomtest.c:68: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).
    rv = open(filename, O_RDWR);
data/gensio-2.2.0/tests/oomtest.c:339:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ccon_stderr[2048];
data/gensio-2.2.0/tests/oomtest.c:451:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char intstr[10];
data/gensio-2.2.0/tests/oomtest.c:636:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char databuf[20];
data/gensio-2.2.0/tests/oomtest.c:716:2:  [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(od->ccon_stderr + od->ccon_stderr_pos, buf, size);
data/gensio-2.2.0/tests/oomtest.c:1086:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char intstr[30], *constr;
data/gensio-2.2.0/tests/oomtest.c:1220:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char intstr[30], *constr, *locstr;
data/gensio-2.2.0/tools/gensiomdns.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char strbuf[250];
data/gensio-2.2.0/tools/gensiotool.c:171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[200];
data/gensio-2.2.0/tools/gensiotool.c:204:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2048];
data/gensio-2.2.0/tools/gensiotool.c:234:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2048];
data/gensio-2.2.0/tools/gensiotool.c:504:22:  [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).
	    dummyrnd_file = fopen(filename, "r");
data/gensio-2.2.0/tools/gtlssh-shared.c:52:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf2[100];
data/gensio-2.2.0/tools/gtlssh-shared.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gensio-2.2.0/tools/gtlssh-shared.c:151: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).
    fd = open(filename, O_RDONLY);
data/gensio-2.2.0/tools/gtlssh.c:76:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char winch_buf[11];
data/gensio-2.2.0/tools/gtlssh.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[200];
data/gensio-2.2.0/tools/gtlssh.c:154:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open("/dev/tty", O_RDWR);
data/gensio-2.2.0/tools/gtlssh.c:307:13:  [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 *fp = fopen(filename, "r");
data/gensio-2.2.0/tools/gtlssh.c:463: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).
    rv = open(filename, O_CREAT | O_EXCL | O_WRONLY, 0600);
data/gensio-2.2.0/tools/gtlssh.c:509:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmpcert[16384];
data/gensio-2.2.0/tools/gtlssh.c:519: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).
    rv = open(filename, O_RDONLY);
data/gensio-2.2.0/tools/gtlssh.c:572:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char raddr[256];
data/gensio-2.2.0/tools/gtlssh.c:573:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fingerprint[256];
data/gensio-2.2.0/tools/gtlssh.c:574:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cert[16384];
data/gensio-2.2.0/tools/gtlssh.c:575:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gensio-2.2.0/tools/gtlssh.c:863:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char service[5];
data/gensio-2.2.0/tools/gtlssh.c:997:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *s[4];
data/gensio-2.2.0/tools/gtlssh.c:1457: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(service, "program:");
data/gensio-2.2.0/tools/gtlssh.c:1488:12:  [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.
	    len = sprintf(service, "login:");
data/gensio-2.2.0/tools/gtlsshd.c:89:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char oobbuf[65538];
data/gensio-2.2.0/tools/gtlsshd.c:107:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fpidfile = fopen(pid_file, "w");
data/gensio-2.2.0/tools/gtlsshd.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char service[5], *accepter;
data/gensio-2.2.0/tools/gtlsshd.c:269:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(service, msg, 4);
data/gensio-2.2.0/tools/gtlsshd.c:340:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char username[100];
data/gensio-2.2.0/tools/gtlsshd.c:466: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 authdir[1000];
data/gensio-2.2.0/tools/gtlsshd.c:555:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gensio-2.2.0/tools/gtlsshd.c:890:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *oobaux[2] = { "oob", NULL };
data/gensio-2.2.0/tools/gtlsshd.c:942:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *isclient[2] = { "mode=server", NULL };
data/gensio-2.2.0/tools/gtlsshd.c:972:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpservice[20];
data/gensio-2.2.0/tools/ioinfo.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char escape_data[11];
data/gensio-2.2.0/tools/ioinfo.c:185:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *oobaux[2] = { "oob", NULL };
data/gensio-2.2.0/tools/ioinfo.c:325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char databuf[20];
data/gensio-2.2.0/tools/utils.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c[1], *str;
data/gensio-2.2.0/examples/basic_client.c:160: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).
    ci.outbuf_len = strlen(argv[2]);
data/gensio-2.2.0/examples/basic_server.c:125:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    add_output_buf_len(ii, str, strlen(str));
data/gensio-2.2.0/examples/basic_server_sync.c:80:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rv = gensio_write_s(io, NULL, out, strlen(out), NULL);
data/gensio-2.2.0/examples/basic_server_sync_fork.c:90:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rv = gensio_write_s(io, NULL, out, strlen(out), NULL);
data/gensio-2.2.0/lib/gensio.c:1273:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(r->name);
data/gensio-2.2.0/lib/gensio.c:1342:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(r->name);
data/gensio-2.2.0/lib/gensio.c:1484:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(r->name);
data/gensio-2.2.0/lib/gensio.c:1546:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(r->name);
data/gensio-2.2.0/lib/gensio.c:1569: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).
    size_t keylen = strlen(key);
data/gensio-2.2.0/lib/gensio_acc_gensio.c:108:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t typelen = strlen(type);
data/gensio-2.2.0/lib/gensio_certauth.c:163: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).
	pwvfy.password_len = strlen((const char *) buf);
data/gensio-2.2.0/lib/gensio_file.c:182:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv = read(fd, buf, len);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1680:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (data[strlen(data) - 1] == '/')
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1805: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).
	    size_t pwlen = strlen(password);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1812:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(sfilter->password, password, GENSIO_CERTAUTH_PASSWORD_LEN);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1828: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).
	sfilter->username_len = strlen(username);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1835: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).
	sfilter->service_len = strlen(service);
data/gensio-2.2.0/lib/gensio_filter_certauth.c:1896:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(data->password, 0, strlen(data->password));
data/gensio-2.2.0/lib/gensio_filter_certauth.c:2218: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 (data->CAfilepath[strlen(data->CAfilepath) - 1] == '/')
data/gensio-2.2.0/lib/gensio_filter_ssl.c:873:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (data[strlen(data) - 1] == '/')
data/gensio-2.2.0/lib/gensio_filter_ssl.c:1312: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 (data->CAfilepath[strlen(data->CAfilepath) - 1] == '/')
data/gensio-2.2.0/lib/gensio_ll_ipmisol.c:427:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		   int read, int write, int except)
data/gensio-2.2.0/lib/gensio_ll_ipmisol.c:432:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    o->set_read_handler(o, id->fd, read);
data/gensio-2.2.0/lib/gensio_mdns.c:247:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = strlen(ok_gensios[i]);
data/gensio-2.2.0/lib/gensio_mdns.c:298: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).
	    *len = strlen(s);
data/gensio-2.2.0/lib/gensio_mdns.c:314:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned int stackstrlen = strlen(stackstr);
data/gensio-2.2.0/lib/gensio_mdns.c:362:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    totallen = strlen(stack) + addrstrlen + argslen + 2;
data/gensio-2.2.0/lib/gensio_mux.c:1460: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).
	    data->service_len = strlen(data->service);
data/gensio-2.2.0/lib/gensio_osops.c:195:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv = read(fd, buf, buflen);
data/gensio-2.2.0/lib/gensio_osops.c:1396:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fd, data, len);
data/gensio-2.2.0/lib/gensio_osops.c:2103:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/gensio-2.2.0/lib/gensio_udp.c:569:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(raddrdata + 9, gensio_err_to_str(err), sizeof(raddrdata) - 9);
data/gensio-2.2.0/lib/sergensio_telnet.c:329:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char *) outopt + 2, sig, sig_len);
data/gensio-2.2.0/lib/utils.c:25:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = o->zalloc(o, strlen(str) + 1);
data/gensio-2.2.0/lib/uucplock.c:32:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t dev_prefix_len = strlen(dev_prefix);
data/gensio-2.2.0/lib/uucplock.c:41:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return 6 + strlen(uucp_lck_dir) + strlen(devname);
data/gensio-2.2.0/lib/uucplock.c:41:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return 6 + strlen(uucp_lck_dir) + strlen(devname);
data/gensio-2.2.0/lib/uucplock.c:47:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t i, dev_prefix_len = strlen(dev_prefix);
data/gensio-2.2.0/lib/uucplock.c:53:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = strlen(uucp_lck_dir); buf[i]; i++) {
data/gensio-2.2.0/lib/uucplock.c:120:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    n = read(fd, &buf, sizeof(buf) - 1);
data/gensio-2.2.0/lib/uucplock.c:141:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    mask = umask(022);
data/gensio-2.2.0/lib/uucplock.c:143:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    umask(mask);
data/gensio-2.2.0/lib/uucplock.c:149:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		rv = write_full(fd, buf.str, strlen(buf.str));
data/gensio-2.2.0/swig/python/gensio_python.h:817:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned int len = strlen(p);
data/gensio-2.2.0/swig/python/gensio_python.h:1103:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		unsigned int len = strlen(p);
data/gensio-2.2.0/tests/oomtest.c:127:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(e) == 0) {
data/gensio-2.2.0/tests/oomtest.c:752:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size = strlen(nl + 1);
data/gensio-2.2.0/tests/oomtest.c:1120:2:  [1] (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 character.
	strcpy(intstr, "0");
data/gensio-2.2.0/tools/gensiomdns.c:138:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    dummy = read(fd, &i, sizeof(i));
data/gensio-2.2.0/tools/gensiotool.c:174:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gensio_write(ginfo->user_io, NULL, str, strlen(str), NULL);
data/gensio-2.2.0/tools/gtlssh-shared.c:158:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = read(fd, buf, sizeof(buf));
data/gensio-2.2.0/tools/gtlssh-shared.c:205:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return write_buf_to_gensio(str, strlen(str), io, timeout, xlatnl);
data/gensio-2.2.0/tools/gtlssh.c:106:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gensio_write(ginfo->user_io, NULL, str, strlen(str), NULL);
data/gensio-2.2.0/tools/gtlssh.c:187:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    err = write(fd, prompt, strlen(prompt));
data/gensio-2.2.0/tools/gtlssh.c:194:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	err = read(fd, &c, 1);
data/gensio-2.2.0/tools/gtlssh.c:477: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).
	int fd = rv, len = strlen(cert);
data/gensio-2.2.0/tools/gtlssh.c:526: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).
	int fd = rv, len = strlen(cert);
data/gensio-2.2.0/tools/gtlssh.c:528:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(fd, cmpcert, sizeof(cmpcert));
data/gensio-2.2.0/tools/gtlssh.c:606:2:  [1] (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 character.
	strcpy(raddr, "0");
data/gensio-2.2.0/tools/gtlssh.c:611:6:  [1] (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 character.
	    strcpy(raddr, "0");
data/gensio-2.2.0/tools/gtlssh.c:829:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(winch_pipe[0], &dummy, 1);
data/gensio-2.2.0/tools/gtlssh.c:917:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    np->oob.len = strlen(np->accepter_str) + 1; /* Send the nil, too. */
data/gensio-2.2.0/tools/gtlssh.c:1158:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(txt[i], stackstr, strlen(stackstr)) == 0) {
data/gensio-2.2.0/tools/gtlssh.c:1448: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).
	    len += strlen(argv[i]) + 1; /* Extra space for nil at end */
data/gensio-2.2.0/tools/gtlssh.c:1473:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = 6 + 5 + strlen(termvar) + 2;
data/gensio-2.2.0/tools/localports.c:197:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(pi->service_str);
data/gensio-2.2.0/tools/ser_ioinfo.c:234:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(serinfo->signature), NULL, NULL);
data/gensio-2.2.0/tools/utils.c:97: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).
	unsigned int len = strlen(larg);
data/gensio-2.2.0/tools/utils.c:136: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).
    if (strncmp(str, cmp, strlen(cmp)) == 0)

ANALYSIS SUMMARY:

Hits = 293
Lines analyzed = 57898 in approximately 1.26 seconds (45913 lines/second)
Physical Source Lines of Code (SLOC) = 45396
Hits@level = [0] 556 [1]  69 [2] 178 [3]   6 [4]  35 [5]   5
Hits@level+ = [0+] 849 [1+] 293 [2+] 224 [3+]  46 [4+]  40 [5+]   5
Hits/KSLOC@level+ = [0+] 18.7021 [1+] 6.45431 [2+] 4.93436 [3+] 1.01331 [4+] 0.881135 [5+] 0.110142
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.