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/cgsi-gsoap-1.3.11/src/cgsi_plugin.c
Examining data/cgsi-gsoap-1.3.11/src/cgsi_plugin.h
Examining data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h
Examining data/cgsi-gsoap-1.3.11/src/globus_gsi_gss_constants.h
Examining data/cgsi-gsoap-1.3.11/src/gssapi_openssl.h
Examining data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-client.c
Examining data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c

FINAL RESULTS:

data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1216: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 ((char*)namebuf.value,hostname);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1915:5:  [4] (format) snprintf:
  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.
    snprintf(buffer, bufsize, CGSI_PLUGIN " running on %s reports %s\n", hostname, msg);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2010:5:  [4] (format) snprintf:
  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.
    snprintf(buffer, sizeof(buffer), CGSI_PLUGIN " running on %s reports %s", hostname, msg);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1062:30:  [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 *compat = getenv("GLOBUS_GSSAPI_NAME_COMPATIBILITY");
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2160:13:  [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.
    envar = getenv(CGSI_TRACE);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2167: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.
            envar = getenv(CGSI_TRACEFILE);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2359:26:  [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.
            proxy_file = getenv(PROXY_ENV_VAR);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:83: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, "p:r:sgol")) != -1) switch (c) {
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:467: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:534: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:606: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:688: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.
                char buf[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:750: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.
                char buf[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:759: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:762: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.
                char buf[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:824:25:  [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).
    data->fopen = soap->fopen;
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:845: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_buffer[1024];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:890:10:  [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).
    fd = fopen(data->x509_cert, "r");
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:902:18:  [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).
            fd = fopen(data->x509_key, "r");
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:970: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.
                char buf[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1028: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1044:29:  [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).
    data->socket_fd = data->fopen(soap, endpoint+1, hostname, port);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1047: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1094: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 host[NI_MAXHOST+5];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1167:29:  [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 (sa2,sa,sa_length);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1215:13:  [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 ((char*)namebuf.value,"host@");
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1234: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.
                char buf[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1334: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 buf[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1399: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(dst->data, src->data, sizeof(struct cgsi_plugin_data));
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1589: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(buf, data->buffered_in->value, tmplen);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1654: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, output_token->value, tmplen);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1679: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 readbuf[SSLHSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1703:21:  [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[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1770: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(tok, readbuf, SSLHSIZE);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1783:21:  [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[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1803: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1830: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1842: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1849: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1863: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[TBUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1895: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 buffer[BUFSIZE],hostname[NI_MAXHOST];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1995: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 buffer[BUFSIZE],hostname[NI_MAXHOST];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2212:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open(data->trace_file, O_CREAT|O_WRONLY|O_APPEND, 0644);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2274: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(data->deleg_credential_token, buffer_desc.value, buffer_desc.length);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2302: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_WRONLY | O_CREAT | O_TRUNC, 0600);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2311: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2322: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2342: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 buf[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2589: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 buffer[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2605: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 buffer[BUFSIZE];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2829: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(new_data, ((char *)src->value) + offset, new_len);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h:50:11:  [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).
    int (*fopen)(struct soap*, const char*, const char*, int);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h: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 client_name[CGSI_MAXNAMELEN];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h: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 server_name[CGSI_MAXNAMELEN];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h:54: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 username[CGSI_MAXNAMELEN];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h:55: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 user_ca[CGSI_MAXNAMELEN];
data/cgsi-gsoap-1.3.11/src/cgsi_plugin_int.h:60: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 trace_file[CGSI_MAXNAMELEN];
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:90: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).
            *port = atoi(optarg);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:95:25:  [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).
            *to_serve = atoi(optarg);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:520: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).
    if (major_status != GSS_S_COMPLETE || strlen((const char *)name.value)>CGSI_MAXNAMELEN-1)
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:530:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(data->server_name, (const char*)name.value, CGSI_MAXNAMELEN);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:601:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(data->client_name, (const char*)name.value, CGSI_MAXNAMELEN);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:746:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(data->username, p, CGSI_MAXNAMELEN);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1014: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).
    if (major_status != GSS_S_COMPLETE || strlen((const char*)namebuf.value)>CGSI_MAXNAMELEN-1)
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1023:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(data->client_name, (const char*)namebuf.value, CGSI_MAXNAMELEN);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1195: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).
            namebuf.length = strlen (host) + 1;
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1209: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).
            namebuf.value = malloc (strlen ("host@") + strlen (hostname) + 1);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1209:56:  [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).
            namebuf.value = malloc (strlen ("host@") + strlen (hostname) + 1);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1217: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).
            namebuf.length = strlen ((char*)namebuf.value) + 1;
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1316:47:  [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 (major_status != GSS_S_COMPLETE || strlen((const char*)server_name.value)>CGSI_MAXNAMELEN-1)
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1330:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(data->server_name, (const char*)server_name.value, CGSI_MAXNAMELEN);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1910:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(hostname, "unknown", sizeof(hostname));
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1916: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).
    buf = buffer +strlen(buffer);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1917: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).
    bufsize -= strlen(buffer);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:1922:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(buf, "\n");
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2006:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(hostname, "unknown", sizeof(hostname));
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2125:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dn, data->client_name, dnlen);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2141:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(username, data->username, usernamelen);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2170:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(data->trace_file, envar, CGSI_MAXNAMELEN-1);
data/cgsi-gsoap-1.3.11/src/cgsi_plugin.c:2184: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).
    return trace_str(data, tracestr, strlen(tracestr));
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-client.c:40: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).
    if (endpoint && !strncmp(endpoint, HTTPS_PREFIX, strlen(HTTPS_PREFIX))) {
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-client.c:42:61:  [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).
    } else if (endpoint && !strncmp(endpoint, HTTPG_PREFIX, strlen(HTTPG_PREFIX))) {
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:46: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).
            length += strlen(roles[i]);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:54:9:  [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. Risk is low because the source is a
  constant string.
        strncat(attributes, "\nFQANs:\n", length);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:56: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(attributes, roles[i], length);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:57: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. Risk is low because the source is a
  constant character.
            strncat(attributes, "\n", length);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:64:7:  [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. Risk is low because the source is a
  constant string.
      strncat(attributes, "Server has a credential delegated from the client\n", length - strlen(attributes) - 1);
data/cgsi-gsoap-1.3.11/test/cgsi-gsoap-server.c:64:91:  [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).
      strncat(attributes, "Server has a credential delegated from the client\n", length - strlen(attributes) - 1);

ANALYSIS SUMMARY:

Hits = 88
Lines analyzed = 3888 in approximately 0.11 seconds (34085 lines/second)
Physical Source Lines of Code (SLOC) = 2624
Hits@level = [0]  67 [1]  29 [2]  51 [3]   5 [4]   3 [5]   0
Hits@level+ = [0+] 155 [1+]  88 [2+]  59 [3+]   8 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 59.0701 [1+] 33.5366 [2+] 22.4848 [3+] 3.04878 [4+] 1.14329 [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.