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/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BOOLEAN.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BOOLEAN.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/GSSSessionData.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/GSSSessionData.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/INTEGER.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/INTEGER.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeEnumerated.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeEnumerated.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeInteger.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeInteger.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/Uint32.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/Uint32.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_application.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_codecs.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_codecs_prim.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_codecs_prim.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_internal.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_system.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_decoder.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_decoder.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_tlv_length.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_tlv_length.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_tlv_tag.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_tlv_tag.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_TYPE.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_TYPE.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constraints.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constraints.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/der_encoder.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/der_encoder.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_decoder.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_decoder.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_encoder.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_encoder.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_opentype.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_opentype.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_support.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_support.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_decoder.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_decoder.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_encoder.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_encoder.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_support.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_support.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/crypto.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/crypto.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/environ.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/mag_parse.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.h
Examining data/libapache2-mod-auth-gssapi-1.6.1/src/util.c
Examining data/libapache2-mod-auth-gssapi-1.6.1/tests/natest.c

FINAL RESULTS:

data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/INTEGER.c:149:10:  [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.
			ret = snprintf(scr, scrsize,
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeInteger.c:224:15:  [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.
	er.encoded = snprintf(scratch, sizeof(scratch),
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeInteger.c:309:9:  [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.
		ret = snprintf(scratch, sizeof(scratch),
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_internal.h:53:3:  [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, fmt, ##args);		\
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_system.h:27:10:  [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.
#define	 snprintf	_snprintf
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_system.h:27:19:  [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.
#define	 snprintf	_snprintf
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_system.h:28: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.
#define	 vsnprintf	_vsnprintf
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_system.h:97:55:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define	GCC_PRINTFLIKE(fmt,var)	__attribute__((format(printf,fmt,var)))
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_TYPE.c:74:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constraints.c:52:9:  [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.
	vlen = vsnprintf(arg->errbuf, maxlen, fmt, ap);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.c:70:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *_bit_pattern[16] = {
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.c:80: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 scratch[128];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.c:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p + 0, _bit_pattern[v >> 4], 4);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.c:109:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p + 4, _bit_pattern[v & 0x0f], 4);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/BIT_STRING.c:144: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 scratch[64];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/INTEGER.c:111: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 scratch[32];	/* Enough for 64-bit integer */
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeInteger.c:215: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 scratch[32];	/* Enough for 64-bit int */
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/NativeInteger.c:302: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 scratch[32];	/* Enough for 64-bit int */
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c:101:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(st->buf + st->size, bufptr, _bs);		\
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c:355: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 buf[2][32];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c:586: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 scratch[16 * 3 + 4];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c:1660: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 scratch[16 * 3 + 4];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c:1781:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, str, len);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_codecs_prim.c:67:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(st->buf, buf_ptr, length);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/asn_codecs_prim.c:159:31:  [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.
	assert(chunk_size && ((const char *)chunk_buf)[0] == 0x3c);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_tlv_tag.c:63: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[sizeof("[APPLICATION ]") + 32];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/ber_tlv_tag.c:95: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.
	static char buf[sizeof("[APPLICATION ]") + 32];
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:838:19:  [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.
			size>0?((const char *)buf_ptr)[0]:'.',
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:839:19:  [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.
			size>1?((const char *)buf_ptr)[1]:'.',
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:840:19:  [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.
			size>2?((const char *)buf_ptr)[2]:'.',
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:841:19:  [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.
			size>3?((const char *)buf_ptr)[3]:'.',
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:842:19:  [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.
			size>4?((const char *)buf_ptr)[4]:'.',
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:843:19:  [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.
			size>5?((const char *)buf_ptr)[5]:'.');
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constraints.c:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(arg->errbuf, "<broken vsnprintf>", arg->errlen);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/der_encoder.c:43:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(arg->buffer, buffer, size);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_encoder.c:25:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(arg->buffer, buffer, size);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_encoder.c:63:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((char *)arg->buffer) + arg->length, buffer, size);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/per_support.c:12: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.
	static char buf[2][32];
data/libapache2-mod-auth-gssapi-1.6.1/src/crypto.c:99: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(n->ekey, keys->value, keylen);
data/libapache2-mod-auth-gssapi-1.6.1/src/crypto.c:100: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(n->hkey, keys->value + keylen, keylen);
data/libapache2-mod-auth-gssapi-1.6.1/src/crypto.c:220: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 mac[md_size];
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:87: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(val, &len, sizeof(len));
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:88: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(val + sizeof(len), attrval, len);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:185: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(p, "\\\"", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:189: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(p, "\\\\", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:193: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(p, "\\b", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:197: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(p, "\\t", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:201: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(p, "\\r", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:205: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(p, "\\f", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:209: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(p, "\\n", 2);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:307:16:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    ccachefd = mkstemp(ccname);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1168: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(reply, mag_str_auth_type(auth_type), prefixlen - 1);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1369: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 keys[SESS_KEYS_TOT_LEN];
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1376: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 err[256];
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1391: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 err[256];
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:179: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(mc->basic_hash.value,
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:284:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[data_size];
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:287: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, user.value, user.length);
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:289: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[user.length + 1], pwd.value, pwd.length);
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:309: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 mac[mac_size];
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:336: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 mac[mac_size];
data/libapache2-mod-auth-gssapi-1.6.1/src/sessions.c:344: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(mc->basic_hash.value, mac, mac_size);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/OCTET_STRING.c:1774:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(str);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:869: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).
		unsigned int mlen = strlen(mname);
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:911: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).
	if(cb(td->name, strlen(td->name), app_key) < 0
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/constr_SEQUENCE.c:934: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).
		if(cb(elm->name, strlen(elm->name), app_key) < 0
data/libapache2-mod-auth-gssapi-1.6.1/src/asn1c/xer_encoder.c:24:9:  [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).
	mlen = strlen(mname);
data/libapache2-mod-auth-gssapi-1.6.1/src/crypto.c:238:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!equal) goto done;
data/libapache2-mod-auth-gssapi-1.6.1/src/environ.c:248: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).
        len = strlen(value);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:210: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).
        bufnam.length = strlen(bufnam.value);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:753:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    user_name.length = strlen(user_name.value);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1052: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).
        ba_user.length = strlen(ba_user.value);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1053: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).
        ba_pwd.length = strlen(ba_pwd.value);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1164: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).
        int prefixlen = strlen(mag_str_auth_type(auth_type)) + 1;
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1646: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).
        buf.length = strlen(w);
data/libapache2-mod-auth-gssapi-1.6.1/src/mod_auth_gssapi.c:1776:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gss_buffer_desc bufnam = { strlen(w), (void *)w };
data/libapache2-mod-auth-gssapi-1.6.1/src/util.c:71: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).
    return buf->length == strlen(str);

ANALYSIS SUMMARY:

Hits = 77
Lines analyzed = 13825 in approximately 0.38 seconds (36324 lines/second)
Physical Source Lines of Code (SLOC) = 10018
Hits@level = [0]  13 [1]  15 [2]  52 [3]   0 [4]  10 [5]   0
Hits@level+ = [0+]  90 [1+]  77 [2+]  62 [3+]  10 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 8.98383 [1+] 7.68616 [2+] 6.18886 [3+] 0.998203 [4+] 0.998203 [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.