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/globus-gss-assist-12.2/import_sec_context.c
Examining data/globus-gss-assist-12.2/display.c
Examining data/globus-gss-assist-12.2/gridmap.c
Examining data/globus-gss-assist-12.2/acquire.c
Examining data/globus-gss-assist-12.2/globus_gss_assist_module.c
Examining data/globus-gss-assist-12.2/unwrap.c
Examining data/globus-gss-assist-12.2/export_sec_context.c
Examining data/globus-gss-assist-12.2/globus_gss_assist.h
Examining data/globus-gss-assist-12.2/accept.c
Examining data/globus-gss-assist-12.2/test/gss_assist_gridmap.c
Examining data/globus-gss-assist-12.2/test/gss_assist_auth_init.c
Examining data/globus-gss-assist-12.2/test/tokens_bsd.h
Examining data/globus-gss-assist-12.2/test/tokens_bsd.c
Examining data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c
Examining data/globus-gss-assist-12.2/test/gridmap_userok.c
Examining data/globus-gss-assist-12.2/test/gss_assist_impexp_accept.c
Examining data/globus-gss-assist-12.2/test/gridmap_test.c
Examining data/globus-gss-assist-12.2/test/gss_assist_auth_accept.c
Examining data/globus-gss-assist-12.2/test/read_vhost_cred_dir_test.c
Examining data/globus-gss-assist-12.2/globus_gss_assist_constants.h
Examining data/globus-gss-assist-12.2/init.c
Examining data/globus-gss-assist-12.2/globus_gss_assist_error.c
Examining data/globus-gss-assist-12.2/hostname.c
Examining data/globus-gss-assist-12.2/read_vhost_cred_dir.c
Examining data/globus-gss-assist-12.2/set_sec_context_opts.c
Examining data/globus-gss-assist-12.2/globus_i_gss_assist.h
Examining data/globus-gss-assist-12.2/wrap.c
Examining data/globus-gss-assist-12.2/tokens_f.c

FINAL RESULTS:

data/globus-gss-assist-12.2/display.c:78:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(new, str);
data/globus-gss-assist-12.2/display.c:92:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(new,pre);
data/globus-gss-assist-12.2/display.c:96:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(new,post);
data/globus-gss-assist-12.2/display.c:318:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf,"    globus_gss_assist token :%d: %s %s\n",
data/globus-gss-assist-12.2/export_sec_context.c:166:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(fperr, _GASL("token_status%d\n"), *token_status);
data/globus-gss-assist-12.2/gridmap.c:175:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(firstlinkpath, "%s/%s", gridmapdir, firstlink);     
data/globus-gss-assist-12.2/gridmap.c:193:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                 sprintf(otherlinkpath, "%s/%s", gridmapdir, 
data/globus-gss-assist-12.2/gridmap.c:292:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf(encodedfilename, "%s/%s", gridmapdir, encodedglobusidp);
data/globus-gss-assist-12.2/gridmap.c:308:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(userfilename, "%s/%s", gridmapdir, gridmapdirentry->d_name);
data/globus-gss-assist-12.2/gridmap.c:2429:13:  [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(identity_buffer, local_identity);
data/globus-gss-assist-12.2/gridmap.c:2458:13:  [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(identity_buffer, desired_identity);
data/globus-gss-assist-12.2/import_sec_context.c:193:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(fperr, _GASL("token_status%d\n"), *token_status);
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:122:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(full_path, "%s/%s", dirname, dir_entry->d_name);
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:134:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(import_name, "p=%s/%s", dirname, dir_entry->d_name);
data/globus-gss-assist-12.2/test/gss_assist_auth_accept.c:29:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(m ": %d\n", wsa__last_error); \
data/globus-gss-assist-12.2/test/tokens_bsd.c:50:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr,_GASL("Failed reading length %d\n"),bytesread);
data/globus-gss-assist-12.2/tokens_f.c:72:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr,_GASL("Failed reading length %d\n"),bytesread);
data/globus-gss-assist-12.2/export_sec_context.c:75:32:  [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 ((context_fd_char = getenv("GRID_SECURITY_CONTEXT_FD"))
data/globus-gss-assist-12.2/globus_gss_assist_module.c:64: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.
    tmp_string = getenv("GLOBUS_GSI_GSS_ASSIST_DEBUG_LEVEL");
data/globus-gss-assist-12.2/globus_gss_assist_module.c:74: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.
    tmp_string = getenv("GLOBUS_GSI_GSS_ASSIST_DEBUG_FILE");
data/globus-gss-assist-12.2/gridmap.c:171: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.
     gridmapdir = getenv("GRIDMAPDIR");
data/globus-gss-assist-12.2/gridmap.c:287: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.
     gridmapdir = getenv("GRIDMAPDIR");
data/globus-gss-assist-12.2/gridmap.c:374:10:  [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("GRIDMAPDIR") == NULL) return 1; /* GRIDMAPDIR defined? */
data/globus-gss-assist-12.2/import_sec_context.c:74:32:  [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 ((context_fd_char = getenv("GRID_SECURITY_CONTEXT_FD"))
data/globus-gss-assist-12.2/test/gridmap_test.c:819: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.
    gridmap_dir = getenv("TEST_GRIDMAP_DIR");
data/globus-gss-assist-12.2/test/gss_assist_auth_accept.c:54: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.
    verbose_env = getenv("GSS_ASSIST_VERBOSE_TEST");
data/globus-gss-assist-12.2/test/gss_assist_auth_init.c:42: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.
    verbose_env = getenv("GSS_ASSIST_VERBOSE_TEST");
data/globus-gss-assist-12.2/test/gss_assist_gridmap.c:31:18:  [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 ((ch = getopt(argc, argv, "g:l:d:")) != -1)
data/globus-gss-assist-12.2/test/gss_assist_impexp_accept.c:50: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.
    verbose_env = getenv("GSS_ASSIST_VERBOSE_TEST");
data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c:47: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.
    verbose_env = getenv("GSS_ASSIST_VERBOSE_TEST");
data/globus-gss-assist-12.2/accept.c:227:21:  [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(cp, tmp_buffer->value, tmp_buffer->length);
data/globus-gss-assist-12.2/accept.c:452:21:  [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(cp, tmp_buffer->value, tmp_buffer->length);
data/globus-gss-assist-12.2/display.c:187: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[1024];
data/globus-gss-assist-12.2/display.c:306:13:  [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[80] = {0};
data/globus-gss-assist-12.2/export_sec_context.c:63: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.
    unsigned  char                      int_buf[4];
data/globus-gss-assist-12.2/export_sec_context.c:81: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).
        if ((fd = atoi(context_fd_char)) <= 0)
data/globus-gss-assist-12.2/globus_gss_assist_error.c:29:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *
data/globus-gss-assist-12.2/globus_gss_assist_module.c:67:47:  [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).
        globus_i_gsi_gss_assist_debug_level = atoi(tmp_string);
data/globus-gss-assist-12.2/globus_gss_assist_module.c:77:49:  [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).
        globus_i_gsi_gss_assist_debug_fstream = fopen(tmp_string, "w");
data/globus-gss-assist-12.2/gridmap.c:250:16:  [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(&encodedstring[encodedchar], "%%%02x", 
data/globus-gss-assist-12.2/gridmap.c:998:19:  [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).
    gmap_stream = fopen(gridmap_filename, open_mode);
data/globus-gss-assist-12.2/gridmap.c:1129:19:  [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).
    gmap_stream = fopen(gridmap_filename, open_mode);
data/globus-gss-assist-12.2/gridmap.c:1812:19:  [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).
    gmap_stream = fopen(gridmap_filename, "r");
data/globus-gss-assist-12.2/hostname.c:53: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                                realhostname[NI_MAXHOST + 5] = "host@";
data/globus-gss-assist-12.2/import_sec_context.c:62: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.
    unsigned  char                      ibuf[4];
data/globus-gss-assist-12.2/import_sec_context.c:86: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).
        if ((fd = atoi(context_fd_char)) <= 0)
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:110: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                            full_path[
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:112: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                            import_name[
data/globus-gss-assist-12.2/test/gridmap_test.c:721: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                                localname[7];
data/globus-gss-assist-12.2/test/gridmap_test.c:736:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(localname, "jd%d", i);
data/globus-gss-assist-12.2/test/gridmap_test.c:748:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(localname, "jd%d", i);
data/globus-gss-assist-12.2/test/gss_assist_auth_init.c:60: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(&sockaddr.sin_addr, hostname->h_addr, hostname->h_length);
data/globus-gss-assist-12.2/test/gss_assist_auth_init.c:61:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sockaddr.sin_port = htons(atoi(argv[2]));
data/globus-gss-assist-12.2/test/gss_assist_impexp_accept.c:46: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                       int_buf[4];
data/globus-gss-assist-12.2/test/gss_assist_impexp_accept.c:157:23:  [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).
    context_outfile = fopen(ACCEPT_CONTEXT_FILE, "w");
data/globus-gss-assist-12.2/test/gss_assist_impexp_accept.c:209: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).
    context_infile = fopen(ACCEPT_CONTEXT_FILE, "r");
data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c:44: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                       int_buf[4];
data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c:65: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(&sockaddr.sin_addr, hostname->h_addr, hostname->h_length);
data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c:66:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sockaddr.sin_port = htons(atoi(argv[2]));
data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c:140:23:  [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).
    context_outfile = fopen(INIT_CONTEXT_FILE, "w");
data/globus-gss-assist-12.2/test/gss_assist_impexp_init.c:203: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).
    context_infile = fopen(INIT_CONTEXT_FILE, "r");
data/globus-gss-assist-12.2/test/tokens_bsd.c:33: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                       int_buf[5];
data/globus-gss-assist-12.2/test/tokens_bsd.c:146: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(pp,int_buf,5);
data/globus-gss-assist-12.2/test/tokens_bsd.c:150:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pp,bp,bsize);
data/globus-gss-assist-12.2/test/tokens_bsd.c:232: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                       int_buf[4];
data/globus-gss-assist-12.2/tokens_f.c:55: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                       int_buf[5];
data/globus-gss-assist-12.2/tokens_f.c:168: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(pp,int_buf,5);
data/globus-gss-assist-12.2/tokens_f.c:172:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pp,bp,bsize);
data/globus-gss-assist-12.2/tokens_f.c:325: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                       int_buf[4];
data/globus-gss-assist-12.2/acquire.c:130: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 ((j == strlen(oid_names[i])) && 
data/globus-gss-assist-12.2/acquire.c:140: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).
        tmp_buffer->length = strlen(qp);
data/globus-gss-assist-12.2/display.c:64: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).
    len = 1 + (str ? strlen(str) : 0)
data/globus-gss-assist-12.2/display.c:65: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).
        + (pre ? strlen(pre) : 0)
data/globus-gss-assist-12.2/display.c:67: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).
        + (post ? strlen(post) : 0);
data/globus-gss-assist-12.2/display.c:94:13:  [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(new,msg,msglen);
data/globus-gss-assist-12.2/gridmap.c:174: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).
     firstlinkpath = malloc(strlen(gridmapdir) + 2 + strlen(firstlink));
data/globus-gss-assist-12.2/gridmap.c:174:54:  [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).
     firstlinkpath = malloc(strlen(gridmapdir) + 2 + strlen(firstlink));
data/globus-gss-assist-12.2/gridmap.c:191:41:  [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).
                 otherlinkpath = malloc(strlen(gridmapdir) + 2 + 
data/globus-gss-assist-12.2/gridmap.c:192:41:  [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(gridmapdirentry->d_name));
data/globus-gss-assist-12.2/gridmap.c:236: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).
     encodedstring = (char *) malloc(3 * strlen(rawstring) + 1);
data/globus-gss-assist-12.2/gridmap.c:290:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     encodedfilename = malloc(strlen(gridmapdir) + (size_t) 2 + 
data/globus-gss-assist-12.2/gridmap.c:291:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen(encodedglobusidp));
data/globus-gss-assist-12.2/gridmap.c:304: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).
                        strlen(usernameprefix)) != 0)        continue;
data/globus-gss-assist-12.2/gridmap.c:306: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).
       userfilename = malloc(strlen(gridmapdir) + (size_t) 2 + 
data/globus-gss-assist-12.2/gridmap.c:307: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).
                             strlen(gridmapdirentry->d_name));
data/globus-gss-assist-12.2/gridmap.c:438: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).
     *globusidp = malloc(strlen(encodedglobusidp));
data/globus-gss-assist-12.2/gridmap.c:1419:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(userids[num_userids], line, userid_len);
data/globus-gss-assist-12.2/gridmap.c:1587: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).
    buffer_len = strlen(unparsed);
data/globus-gss-assist-12.2/gridmap.c:2346:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        peer_name_buffer.length = strlen(subject);
data/globus-gss-assist-12.2/gridmap.c:2419: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).
        if(strlen(local_identity) + 1 > identity_buffer_length)
data/globus-gss-assist-12.2/gridmap.c:2425: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).
                 strlen(local_identity), identity_buffer_length));
data/globus-gss-assist-12.2/gridmap.c:2448: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).
        if(strlen(desired_identity) + 1 > identity_buffer_length)
data/globus-gss-assist-12.2/gridmap.c:2454: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).
                 strlen(desired_identity), identity_buffer_length));
data/globus-gss-assist-12.2/gridmap.c:2504:59:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((line_len+1) < buffer_size && (this_read = getc(stream)) != -1)
data/globus-gss-assist-12.2/hostname.c:148:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&realhostname[5], addrinfo->ai_canonname, 
data/globus-gss-assist-12.2/hostname.c:168: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).
    name_tok.length = strlen(realhostname) + 1;
data/globus-gss-assist-12.2/import_sec_context.c:104:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read(fd, ibuf,4)) != 4)
data/globus-gss-assist-12.2/import_sec_context.c:134:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read(fd,context_token.value,
data/globus-gss-assist-12.2/init.c:138: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).
            tmp_buffer->length = strlen(target_name_char);
data/globus-gss-assist-12.2/init.c:405: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).
            tmp_buffer->length = strlen(target_name_char);
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:111: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).
            strlen(dir_entry->d_name) + strlen(dirname) + 2];
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:111:41:  [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(dir_entry->d_name) + strlen(dirname) + 2];
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:113: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).
            strlen(dir_entry->d_name) + strlen(dirname) + 4];
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:113:41:  [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(dir_entry->d_name) + strlen(dirname) + 4];
data/globus-gss-assist-12.2/read_vhost_cred_dir.c:164: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).
                .length = strlen(import_name),

ANALYSIS SUMMARY:

Hits = 105
Lines analyzed = 9344 in approximately 0.23 seconds (40543 lines/second)
Physical Source Lines of Code (SLOC) = 6310
Hits@level = [0] 100 [1]  36 [2]  39 [3]  13 [4]  17 [5]   0
Hits@level+ = [0+] 205 [1+] 105 [2+]  69 [3+]  30 [4+]  17 [5+]   0
Hits/KSLOC@level+ = [0+] 32.4881 [1+] 16.6403 [2+] 10.935 [3+] 4.75436 [4+] 2.69414 [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.