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/duo-unix-1.11.3/acconfig.h
Examining data/duo-unix-1.11.3/compat/asprintf.c
Examining data/duo-unix-1.11.3/compat/vsyslog.c
Examining data/duo-unix-1.11.3/compat/getgrouplist.c
Examining data/duo-unix-1.11.3/compat/strlcpy.c
Examining data/duo-unix-1.11.3/compat/groupaccess.c
Examining data/duo-unix-1.11.3/compat/groupaccess.h
Examining data/duo-unix-1.11.3/compat/match.c
Examining data/duo-unix-1.11.3/compat/match.h
Examining data/duo-unix-1.11.3/lib/duo.h
Examining data/duo-unix-1.11.3/lib/duo_private.h
Examining data/duo-unix-1.11.3/lib/shell.h
Examining data/duo-unix-1.11.3/lib/bson.h
Examining data/duo-unix-1.11.3/lib/bson.c
Examining data/duo-unix-1.11.3/lib/cacert.h
Examining data/duo-unix-1.11.3/lib/duo.c
Examining data/duo-unix-1.11.3/lib/http_parser.h
Examining data/duo-unix-1.11.3/lib/http_parser.c
Examining data/duo-unix-1.11.3/lib/https.h
Examining data/duo-unix-1.11.3/lib/https.c
Examining data/duo-unix-1.11.3/lib/ini.h
Examining data/duo-unix-1.11.3/lib/urlenc.h
Examining data/duo-unix-1.11.3/lib/urlenc.c
Examining data/duo-unix-1.11.3/lib/testduo.c
Examining data/duo-unix-1.11.3/lib/testutil_duo_split_at.c
Examining data/duo-unix-1.11.3/lib/util.c
Examining data/duo-unix-1.11.3/lib/util.h
Examining data/duo-unix-1.11.3/lib/ini.c
Examining data/duo-unix-1.11.3/login_duo/login_duo.c
Examining data/duo-unix-1.11.3/pam_duo/pam_extra.h
Examining data/duo-unix-1.11.3/pam_duo/pam_extra.c
Examining data/duo-unix-1.11.3/pam_duo/pam_duo_private.c
Examining data/duo-unix-1.11.3/pam_duo/pam_duo_private.h
Examining data/duo-unix-1.11.3/pam_duo/pam_duo.c
Examining data/duo-unix-1.11.3/tests/groups_preload.c
Examining data/duo-unix-1.11.3/tests/login_duo_preload.c
Examining data/duo-unix-1.11.3/tests/testpam_preload.c
Examining data/duo-unix-1.11.3/tests/testpam.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_test.h
Examining data/duo-unix-1.11.3/tests/unity_tests/add_groupname_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/add_param_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/bson_iter_init_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_bool_options_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_failmode_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_https_timeout.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_prompts_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_string_options.c
Examining data/duo-unix-1.11.3/tests/unity_tests/common_ini_wrong_flag_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/gecos_ini_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/pam_argv_parse_test.c
Examining data/duo-unix-1.11.3/tests/unity_tests/unityrunner.c
Examining data/duo-unix-1.11.3/tests/unity_tests/Unity-2.4.3/src/unity.h
Examining data/duo-unix-1.11.3/tests/unity_tests/Unity-2.4.3/src/unity.c
Examining data/duo-unix-1.11.3/tests/unity_tests/Unity-2.4.3/src/unity_internals.h

FINAL RESULTS:

data/duo-unix-1.11.3/compat/asprintf.c:52:8:  [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.
	ret = vsnprintf(string, INIT_SZ, fmt, ap2);
data/duo-unix-1.11.3/compat/asprintf.c:66: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.
			ret = vsnprintf(newstr, len, fmt, ap2);
data/duo-unix-1.11.3/compat/vsyslog.c:84:17:  [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.
        prlen = vsnprintf(tbuf, TBUF_LEN, fmt_cpy, ap);
data/duo-unix-1.11.3/lib/duo.c:238: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(ctx->err, sizeof(ctx->err), fmt, ap);
data/duo-unix-1.11.3/lib/util.c:252:9:  [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/duo-unix-1.11.3/login_duo/login_duo.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, fmt, args);
data/duo-unix-1.11.3/login_duo/login_duo.c:370:9:  [4] (shell) execl:
  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.
        execl(user_shell, shell0, "-c", cmd, (char *)NULL);
data/duo-unix-1.11.3/login_duo/login_duo.c:376:9:  [4] (shell) execl:
  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.
        execl(user_shell, argv0, (char *)NULL);
data/duo-unix-1.11.3/tests/testpam.c:45:27:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
			aresp[i].resp = strdup(getpass(p));
data/duo-unix-1.11.3/lib/bson.c:156:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(t);
data/duo-unix-1.11.3/lib/duo.c:451: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.
    passcode = getenv(DUO_ENV_VAR_NAME);
data/duo-unix-1.11.3/lib/https.c:399: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.
        if ((p = getenv("RANDFILE")) != NULL) {
data/duo-unix-1.11.3/lib/testduo.c:32:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((host = getenv("DUO_API_HOST")) == NULL ||
data/duo-unix-1.11.3/lib/testduo.c:33: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.
            (ikey = getenv("DUO_IKEY")) == NULL ||
data/duo-unix-1.11.3/lib/testduo.c:34: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.
            (skey = getenv("DUO_SKEY")) == NULL) {
data/duo-unix-1.11.3/lib/testduo.c:43:6:  [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 (getenv("DUO_SYNC")) {
data/duo-unix-1.11.3/lib/testduo.c:46:6:  [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 (getenv("DUO_AUTO")) {
data/duo-unix-1.11.3/login_duo/login_duo.c:227:22:  [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 ((host = ip = getenv("SSH_CONNECTION")) != NULL ||
data/duo-unix-1.11.3/login_duo/login_duo.c:252:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((p = getenv("SSH_ORIGINAL_COMMAND")) != NULL ||
data/duo-unix-1.11.3/login_duo/login_duo.c:391:15:  [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.
        cmd = getenv("SSH_ORIGINAL_COMMAND");
data/duo-unix-1.11.3/login_duo/login_duo.c:419:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt(argc, argv, "vc:df:h:?")) != -1) {
data/duo-unix-1.11.3/pam_duo/pam_duo.c:199:15:  [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.
        cmd = getenv("SUDO_COMMAND");
data/duo-unix-1.11.3/tests/groups_preload.c:49:19:  [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 *p = getenv("UID");
data/duo-unix-1.11.3/tests/login_duo_preload.c:33:19:  [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 *t = getenv("TIMEOUT");
data/duo-unix-1.11.3/tests/login_duo_preload.c:40:19:  [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 *t = getenv("FALLBACK");
data/duo-unix-1.11.3/tests/login_duo_preload.c:101:19:  [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 *p = getenv("UID");
data/duo-unix-1.11.3/tests/testpam_preload.c:76:11:  [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.
		return (getenv("PAM_CONF"));
data/duo-unix-1.11.3/tests/testpam_preload.c:84:19:  [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 *t = getenv("FALLBACK");
data/duo-unix-1.11.3/compat/match.c:119: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 sub[1024];
data/duo-unix-1.11.3/compat/vsyslog.c:55:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tbuf[TBUF_LEN], fmt_cpy[FMT_LEN];
data/duo-unix-1.11.3/lib/bson.c:33:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bson_big_endian64(out, in) ( memcpy(out, in, 8) )
data/duo-unix-1.11.3/lib/bson.c:34:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bson_big_endian32(out, in) ( memcpy(out, in, 4) )
data/duo-unix-1.11.3/lib/bson.c:36:41:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bson_little_endian64(out, in) ( memcpy(out, in, 8) )
data/duo-unix-1.11.3/lib/bson.c:37:41:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bson_little_endian32(out, in) ( memcpy(out, in, 4) )
data/duo-unix-1.11.3/lib/bson.c:79: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->data, in->data, bson_size(in));
data/duo-unix-1.11.3/lib/bson.c:140: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 hex[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
data/duo-unix-1.11.3/lib/bson.c:179: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 oidhex[25];
data/duo-unix-1.11.3/lib/bson.c:452: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( b->cur , data , len );
data/duo-unix-1.11.3/lib/bson.c:695:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(str,"%d", i);
data/duo-unix-1.11.3/lib/bson.h:81:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char bytes[12];
data/duo-unix-1.11.3/lib/duo.c:115:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(filename, O_RDONLY)) < 0) {
data/duo-unix-1.11.3/lib/duo.c:247: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 hostname[HOST_NAME_MAX + 1];
data/duo-unix-1.11.3/lib/duo.c:272: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 dns_fqdn[DNS_MAXNAMELEN];
data/duo-unix-1.11.3/lib/duo.c:511: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/duo-unix-1.11.3/lib/duo_private.h:8: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    err[512];  /* error message */
data/duo-unix-1.11.3/lib/duo_private.h:10: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    *argv[16]; /* request arguments */
data/duo-unix-1.11.3/lib/http_parser.c:129:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char tokens[256] = {
data/duo-unix-1.11.3/lib/https.c:49: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 errbuf[512];
data/duo-unix-1.11.3/lib/https.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 parse_buf[4096];
data/duo-unix-1.11.3/lib/https.c:566:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (n < 12 || atoi(ctx.parse_buf + 9) < 500) {
data/duo-unix-1.11.3/lib/https.c:635:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, bp->data + 1, bp->length - 1);
data/duo-unix-1.11.3/lib/https.c:651: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[SHA_DIGEST_LENGTH];
data/duo-unix-1.11.3/lib/ini.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE];
data/duo-unix-1.11.3/lib/ini.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char section[MAX_SECTION] = "";
data/duo-unix-1.11.3/lib/ini.c:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prev_name[MAX_NAME] = "";
data/duo-unix-1.11.3/lib/testutil_duo_split_at.c:28:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int position = atoi(argv[3]);
data/duo-unix-1.11.3/lib/urlenc.c:109:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char hexstr[3]; /* '%XX' */
data/duo-unix-1.11.3/lib/util.c:106:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int_val = atoi(val);
data/duo-unix-1.11.3/lib/util.c:121:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cfg->https_timeout = atoi(val);
data/duo-unix-1.11.3/lib/util.c:145:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int gecos_username_pos = atoi(val);
data/duo-unix-1.11.3/lib/util.c:224: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[512];
data/duo-unix-1.11.3/lib/util.h:31: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 *groups[MAX_GROUPS];
data/duo-unix-1.11.3/login_duo/login_duo.c:102: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 read[nbytes];
data/duo-unix-1.11.3/login_duo/login_duo.c:105:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(MOTD_FILE, "r")) == NULL) {
data/duo-unix-1.11.3/login_duo/login_duo.c:128: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[64];
data/duo-unix-1.11.3/login_duo/login_duo.c:183:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[256];
data/duo-unix-1.11.3/login_duo/login_duo.c:350: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 argv0[256];
data/duo-unix-1.11.3/pam_duo/pam_duo.c:164:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buff[256];
data/duo-unix-1.11.3/tests/groups_preload.c:51:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (p ? atoi(p) : 1004);
data/duo-unix-1.11.3/tests/login_duo_preload.c:34:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (t ? atoi(t) : 0);
data/duo-unix-1.11.3/tests/login_duo_preload.c:41:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (t ? atoi(t) : 0);
data/duo-unix-1.11.3/tests/login_duo_preload.c:103:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (p ? atoi(p) : 1004);
data/duo-unix-1.11.3/tests/testpam.c:28: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[PAM_MAX_RESP_SIZE];
data/duo-unix-1.11.3/tests/testpam_preload.c:85:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (t ? atoi(t) : 0);
data/duo-unix-1.11.3/tests/testpam_preload.c:89:1:  [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).
open(const char *filename, int flags, ...)
data/duo-unix-1.11.3/tests/testpam_preload.c:101:1:  [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).
fopen(const char *filename, const char *mode)
data/duo-unix-1.11.3/tests/testpam_preload.c:144:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char username[1024];
data/duo-unix-1.11.3/tests/testpam_preload.c:149: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(&ret, getpwuid(getuid()), sizeof(struct passwd));
data/duo-unix-1.11.3/tests/unity_tests/Unity-2.4.3/src/unity.c:286:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[16];
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_init_test.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[35] = "\x23\x00\x00\x00\x02\x6b\x65\x79\x00\x06\x00\x00\x00\x76\x61\x6c\x75\x65\x00\x02\x4b\x45\x59\x00\x06\x00\x00\x00\x56\x41\x4c\x55\x45\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_init_test.c:36:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[4] = "\x04\x00\x00\x01";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_init_test.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[5] = "\x05\x00\x00\x00\x01";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:21:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[20] = "\x14\x00\x00\x00\x02\x4b\x65\x79\x00\x06\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[35] = "\x23\x00\x00\x00\x02\x6b\x65\x79\x00\x06\x00\x00\x00\x76\x61\x6c\x75\x65\x00\x02\x4b\x45\x59\x00\x06\x00\x00\x00\x56\x41\x4c\x55\x45\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[20] = "\x15\x00\x00\x00\x02\x4b\x65\x79\x00\x06\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[20] = "\x14\x00\x00\x00\x02\x4b\x65\x79\x00\x04\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[20] = "\x12\x00\x00\x00\x02\x4b\x65\x79\x00\x06\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[20] = "\x14\x00\x00\x00\x02\x4b\x65\x79\x00\x06\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[20] = "\x14\x00\x00\x00\x02\x4b\x65\x79\x00\x07\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:135:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[18] = "\x12\x00\x00\x00\x02\x4b\x65\x79\x00\x06\x00\x00\x00\x56\x61\x6c\x75\x65";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[19] = "\x13\x00\x00\x00\x02\x4b\x65\x79\x06\x00\x00\x00\x56\x61\x6c\x75\x65\x00\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[9] = "\x09\x00\x00\x00\x02\x4b\x65\x79\x00";
data/duo-unix-1.11.3/tests/unity_tests/bson_iter_next_test.c:180:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msg[5] = "\x05\x00\x00\x00\x02";
data/duo-unix-1.11.3/compat/groupaccess.c:111:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(group_pattern);
data/duo-unix-1.11.3/lib/bson.c:272:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p += strlen(p)+1;
data/duo-unix-1.11.3/lib/bson.c:273:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            p += strlen(p)+1;
data/duo-unix-1.11.3/lib/bson.c:306: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).
    t += strlen( t ) + 1;
data/duo-unix-1.11.3/lib/bson.c:423: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 p + strlen(p) + 1;
data/duo-unix-1.11.3/lib/bson.c:506: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).
    const int sl = strlen(name) + 1;
data/duo-unix-1.11.3/lib/bson.c:547: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).
    int sl = strlen( value ) + 1;
data/duo-unix-1.11.3/lib/bson.c:564: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).
    int sl = strlen(code) + 1;
data/duo-unix-1.11.3/lib/bson.c:593: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).
    const int plen = strlen(pattern)+1;
data/duo-unix-1.11.3/lib/bson.c:594: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).
    const int olen = strlen(opts)+1;
data/duo-unix-1.11.3/lib/bson.c:618:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int data_size = size - 1 - strlen(bson_iterator_key(elem));
data/duo-unix-1.11.3/lib/bson.c:620:38:  [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).
        bson_append(b, name_or_null, strlen(name_or_null));
data/duo-unix-1.11.3/lib/duo.c:157:38:  [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).
            duo_zero_free(ctx->ikey, strlen(ctx->ikey));
data/duo-unix-1.11.3/lib/duo.c:161:38:  [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).
            duo_zero_free(ctx->skey, strlen(ctx->skey));
data/duo-unix-1.11.3/lib/duo.c:165:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            duo_zero_free(ctx->useragent, strlen(ctx->useragent));
data/duo-unix-1.11.3/lib/duo.c:198:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (name == NULL || value == NULL || strlen(name) == 0 || strlen(value) == 0) {
data/duo-unix-1.11.3/lib/duo.c:198:63:  [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 (name == NULL || value == NULL || strlen(name) == 0 || strlen(value) == 0) {
data/duo-unix-1.11.3/lib/duo.c:224:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (value == NULL || strlen(value) == 0) {
data/duo-unix-1.11.3/lib/duo.c:262:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(info->ai_canonname != NULL && strlen(info->ai_canonname) > 0) {
data/duo-unix-1.11.3/lib/https.c:126: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).
                    strlen(p) && match_pattern(hostname, p));
data/duo-unix-1.11.3/lib/https.c:144: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).
                    strlen(p) && match_pattern(hostname, p));
data/duo-unix-1.11.3/lib/https.c:534:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strlen(ctx.proxy_auth));
data/duo-unix-1.11.3/lib/https.c:688: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).
    HMAC_Init(hmac, skey, strlen(skey), EVP_sha1());
data/duo-unix-1.11.3/lib/https.c:689:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    HMAC_Update(hmac, (unsigned char *)p, strlen(p));
data/duo-unix-1.11.3/lib/https.c:709:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (int)strlen(qs), qs);
data/duo-unix-1.11.3/lib/ini.c:23: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).
    char* p = s + strlen(s);
data/duo-unix-1.11.3/lib/ini.c:53:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest, src, size - 1);
data/duo-unix-1.11.3/lib/urlenc.c:47: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).
	alloc = strlen(string) + 1;
data/duo-unix-1.11.3/lib/urlenc.c:102: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).
	alloc = strlen(string) + 1;
data/duo-unix-1.11.3/lib/util.c:81: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).
            while (currWord[strlen(currWord) - 1] == '\\') {
data/duo-unix-1.11.3/lib/util.c:82: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).
                currWord[strlen(currWord) - 1] = ' ';
data/duo-unix-1.11.3/lib/util.c:84:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                new_length = strlen(currWord) + strlen(nextWord) + 1;
data/duo-unix-1.11.3/lib/util.c:84:49:  [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).
                new_length = strlen(currWord) + strlen(nextWord) + 1;
data/duo-unix-1.11.3/lib/util.c:87:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(tmpString, nextWord, new_length);
data/duo-unix-1.11.3/lib/util.c:133:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(val) != 1) {
data/duo-unix-1.11.3/lib/util.c:171:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        duo_zero_free(cfg->ikey, strlen(cfg->ikey));
data/duo-unix-1.11.3/lib/util.c:175:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        duo_zero_free(cfg->skey, strlen(cfg->skey));
data/duo-unix-1.11.3/lib/util.c:179: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).
        duo_zero_free(cfg->apihost, strlen(cfg->apihost));
data/duo-unix-1.11.3/lib/util.c:183:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        duo_zero_free(cfg->cafile, strlen(cfg->cafile));
data/duo-unix-1.11.3/lib/util.c:187: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).
        duo_zero_free(cfg->http_proxy, strlen(cfg->http_proxy));
data/duo-unix-1.11.3/login_duo/login_duo.c:102:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char read[nbytes];
data/duo-unix-1.11.3/login_duo/login_duo.c:109:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((result = fread(read, sizeof(char), nbytes, fp))) {
data/duo-unix-1.11.3/login_duo/login_duo.c:111:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result = fwrite(read, sizeof(char), result, stdout);
data/duo-unix-1.11.3/login_duo/login_duo.c:211:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(pw->pw_gecos) > 0) {
data/duo-unix-1.11.3/login_duo/login_duo.c:329: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).
        n += strlen(argv[i]) + 1;
data/duo-unix-1.11.3/pam_duo/pam_duo.c:221:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(pw->pw_gecos) > 0) {
data/duo-unix-1.11.3/tests/testpam.c:59: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).
			if (strlen(p) > 0 && p[strlen(p) - 1] != '\n')
data/duo-unix-1.11.3/tests/testpam.c:59: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 (strlen(p) > 0 && p[strlen(p) - 1] != '\n')
data/duo-unix-1.11.3/tests/testpam.c:64: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).
			if (strlen(p) > 0 && p[strlen(p) - 1] != '\n')
data/duo-unix-1.11.3/tests/testpam.c:64: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 (strlen(p) > 0 && p[strlen(p) - 1] != '\n')
data/duo-unix-1.11.3/tests/testpam_preload.c:145:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(username, name, 1024);

ANALYSIS SUMMARY:

Hits = 144
Lines analyzed = 12123 in approximately 0.38 seconds (31889 lines/second)
Physical Source Lines of Code (SLOC) = 9223
Hits@level = [0]  58 [1]  51 [2]  65 [3]  19 [4]   9 [5]   0
Hits@level+ = [0+] 202 [1+] 144 [2+]  93 [3+]  28 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 21.9018 [1+] 15.6131 [2+] 10.0835 [3+] 3.03589 [4+] 0.975821 [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.