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/avro-java-1.8.2/lang/c++/examples/custom.cc
Examining data/avro-java-1.8.2/lang/c++/examples/datafile.cc
Examining data/avro-java-1.8.2/lang/c++/examples/generated.cc
Examining data/avro-java-1.8.2/lang/c++/examples/generic.cc
Examining data/avro-java-1.8.2/lang/c++/examples/resolving.cc
Examining data/avro-java-1.8.2/lang/c++/examples/schemaload.cc
Examining data/avro-java-1.8.2/lang/c++/examples/validating.cc
Examining data/avro-java-1.8.2/lang/c++/impl/BinaryDecoder.cc
Examining data/avro-java-1.8.2/lang/c++/impl/BinaryEncoder.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Compiler.cc
Examining data/avro-java-1.8.2/lang/c++/impl/DataFile.cc
Examining data/avro-java-1.8.2/lang/c++/impl/FileStream.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Generic.cc
Examining data/avro-java-1.8.2/lang/c++/impl/GenericDatum.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Node.cc
Examining data/avro-java-1.8.2/lang/c++/impl/NodeImpl.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Resolver.cc
Examining data/avro-java-1.8.2/lang/c++/impl/ResolverSchema.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Schema.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Stream.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Types.cc
Examining data/avro-java-1.8.2/lang/c++/impl/ValidSchema.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Validator.cc
Examining data/avro-java-1.8.2/lang/c++/impl/Zigzag.cc
Examining data/avro-java-1.8.2/lang/c++/impl/avrogencpp.cc
Examining data/avro-java-1.8.2/lang/c++/impl/json/JsonDom.cc
Examining data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc
Examining data/avro-java-1.8.2/lang/c++/impl/parsing/JsonCodec.cc
Examining data/avro-java-1.8.2/lang/c++/impl/parsing/ResolvingDecoder.cc
Examining data/avro-java-1.8.2/lang/c++/impl/parsing/Symbol.cc
Examining data/avro-java-1.8.2/lang/c++/impl/parsing/ValidatingCodec.cc
Examining data/avro-java-1.8.2/lang/c++/test/AvrogencppTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/CodecTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/CompilerTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/JsonTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/LargeSchemaTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/SchemaTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/SpecificTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/StreamTests.cc
Examining data/avro-java-1.8.2/lang/c++/test/buffertest.cc
Examining data/avro-java-1.8.2/lang/c++/test/precompile.cc
Examining data/avro-java-1.8.2/lang/c++/test/testgentest.cc
Examining data/avro-java-1.8.2/lang/c++/test/testparser.cc
Examining data/avro-java-1.8.2/lang/c++/test/unittest.cc
Examining data/avro-java-1.8.2/lang/c/examples/quickstop.c
Examining data/avro-java-1.8.2/lang/c/src/allocation.c
Examining data/avro-java-1.8.2/lang/c/src/array.c
Examining data/avro-java-1.8.2/lang/c/src/avro.h
Examining data/avro-java-1.8.2/lang/c/src/avro/allocation.h
Examining data/avro-java-1.8.2/lang/c/src/avro/basics.h
Examining data/avro-java-1.8.2/lang/c/src/avro/consumer.h
Examining data/avro-java-1.8.2/lang/c/src/avro/data.h
Examining data/avro-java-1.8.2/lang/c/src/avro/errors.h
Examining data/avro-java-1.8.2/lang/c/src/avro/generic.h
Examining data/avro-java-1.8.2/lang/c/src/avro/io.h
Examining data/avro-java-1.8.2/lang/c/src/avro/legacy.h
Examining data/avro-java-1.8.2/lang/c/src/avro/msinttypes.h
Examining data/avro-java-1.8.2/lang/c/src/avro/msstdint.h
Examining data/avro-java-1.8.2/lang/c/src/avro/platform.h
Examining data/avro-java-1.8.2/lang/c/src/avro/refcount.h
Examining data/avro-java-1.8.2/lang/c/src/avro/resolver.h
Examining data/avro-java-1.8.2/lang/c/src/avro/schema.h
Examining data/avro-java-1.8.2/lang/c/src/avro/value.h
Examining data/avro-java-1.8.2/lang/c/src/avro_generic_internal.h
Examining data/avro-java-1.8.2/lang/c/src/avro_private.h
Examining data/avro-java-1.8.2/lang/c/src/avroappend.c
Examining data/avro-java-1.8.2/lang/c/src/avrocat.c
Examining data/avro-java-1.8.2/lang/c/src/avromod.c
Examining data/avro-java-1.8.2/lang/c/src/avropipe.c
Examining data/avro-java-1.8.2/lang/c/src/codec.c
Examining data/avro-java-1.8.2/lang/c/src/codec.h
Examining data/avro-java-1.8.2/lang/c/src/consume-binary.c
Examining data/avro-java-1.8.2/lang/c/src/consumer.c
Examining data/avro-java-1.8.2/lang/c/src/datafile.c
Examining data/avro-java-1.8.2/lang/c/src/datum.c
Examining data/avro-java-1.8.2/lang/c/src/datum.h
Examining data/avro-java-1.8.2/lang/c/src/datum_equal.c
Examining data/avro-java-1.8.2/lang/c/src/datum_read.c
Examining data/avro-java-1.8.2/lang/c/src/datum_size.c
Examining data/avro-java-1.8.2/lang/c/src/datum_skip.c
Examining data/avro-java-1.8.2/lang/c/src/datum_validate.c
Examining data/avro-java-1.8.2/lang/c/src/datum_value.c
Examining data/avro-java-1.8.2/lang/c/src/datum_write.c
Examining data/avro-java-1.8.2/lang/c/src/dump.c
Examining data/avro-java-1.8.2/lang/c/src/dump.h
Examining data/avro-java-1.8.2/lang/c/src/encoding.h
Examining data/avro-java-1.8.2/lang/c/src/encoding_binary.c
Examining data/avro-java-1.8.2/lang/c/src/errors.c
Examining data/avro-java-1.8.2/lang/c/src/generic.c
Examining data/avro-java-1.8.2/lang/c/src/io.c
Examining data/avro-java-1.8.2/lang/c/src/map.c
Examining data/avro-java-1.8.2/lang/c/src/memoize.c
Examining data/avro-java-1.8.2/lang/c/src/resolved-reader.c
Examining data/avro-java-1.8.2/lang/c/src/resolved-writer.c
Examining data/avro-java-1.8.2/lang/c/src/resolver.c
Examining data/avro-java-1.8.2/lang/c/src/schema.c
Examining data/avro-java-1.8.2/lang/c/src/schema.h
Examining data/avro-java-1.8.2/lang/c/src/schema_equal.c
Examining data/avro-java-1.8.2/lang/c/src/schema_specific.c
Examining data/avro-java-1.8.2/lang/c/src/st.c
Examining data/avro-java-1.8.2/lang/c/src/st.h
Examining data/avro-java-1.8.2/lang/c/src/string.c
Examining data/avro-java-1.8.2/lang/c/src/value-hash.c
Examining data/avro-java-1.8.2/lang/c/src/value-json.c
Examining data/avro-java-1.8.2/lang/c/src/value-read.c
Examining data/avro-java-1.8.2/lang/c/src/value-sizeof.c
Examining data/avro-java-1.8.2/lang/c/src/value-write.c
Examining data/avro-java-1.8.2/lang/c/src/value.c
Examining data/avro-java-1.8.2/lang/c/src/wrapped-buffer.c
Examining data/avro-java-1.8.2/lang/c/tests/generate_interop_data.c
Examining data/avro-java-1.8.2/lang/c/tests/msdirent.h
Examining data/avro-java-1.8.2/lang/c/tests/performance.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1034.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1084.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1087.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1165.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1237.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1238.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1279.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1379.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1405.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1572.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_1691.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_968.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_984.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_data.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_schema_names.c
Examining data/avro-java-1.8.2/lang/c/tests/test_avro_values.c
Examining data/avro-java-1.8.2/lang/c/tests/test_cpp.cpp
Examining data/avro-java-1.8.2/lang/c/tests/test_data_structures.c
Examining data/avro-java-1.8.2/lang/c/tests/test_interop_data.c
Examining data/avro-java-1.8.2/lang/c/tests/test_refcount.c
Examining data/avro-java-1.8.2/lang/py/lib/simplejson/_speedups.c

FINAL RESULTS:

data/avro-java-1.8.2/lang/c++/test/buffertest.cc:694:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        boost::system::error_code error = boost::asio::error::host_not_found;
data/avro-java-1.8.2/lang/c/src/avro_private.h:37: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.
#define snprintf _snprintf
data/avro-java-1.8.2/lang/c/src/avro_private.h:37:18:  [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/avro-java-1.8.2/lang/c/src/avropipe.c:46:2:  [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(buf, sizeof(buf), "%" PRIsz, index);
data/avro-java-1.8.2/lang/c/src/errors.c:93:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(avro_get_error_data()->AVRO_CURRENT_ERROR, AVRO_ERROR_SIZE, fmt, args);
data/avro-java-1.8.2/lang/c/src/errors.c:110:23:  [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.
	int  bytes_written = vsnprintf(ERROR_DATA->AVRO_OTHER_ERROR, AVRO_ERROR_SIZE, fmt, args);
data/avro-java-1.8.2/lang/c/src/resolved-reader.c:41: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, __VA_ARGS__); \
data/avro-java-1.8.2/lang/c/src/resolved-writer.c:41: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, __VA_ARGS__); \
data/avro-java-1.8.2/lang/c/src/resolver.c:38:22:  [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.
#define debug(...) { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); }
data/avro-java-1.8.2/lang/c/src/schema.c:750:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(full_name, "%s.%s", namespace, name);
data/avro-java-1.8.2/lang/c/src/schema.c:1706:2:  [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(size, sizeof(size), "%" PRId64, fixed->size);
data/avro-java-1.8.2/lang/c/src/string.c:35: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, __VA_ARGS__); \
data/avro-java-1.8.2/lang/c/tests/test_avro_1034.c:93:4:  [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( msg ":\n  %s\n", avro_strerror()); \
data/avro-java-1.8.2/lang/c/tests/test_avro_968.c:26:4:  [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, msg ":\n  %s\n", avro_strerror()); \
data/avro-java-1.8.2/lang/c/tests/test_avro_984.c:96:4:  [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( msg ":\n  %s\n", avro_strerror()); \
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:52:4:  [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,
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:136:4:  [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, \
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:286:4:  [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, msg ":\n  %s\n", avro_strerror()); \
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:1082:4:  [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(key, 64, "%" PRIsz, j);
data/avro-java-1.8.2/lang/c++/impl/DataFile.cc:167:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
boost::mt19937 random(static_cast<uint32_t>(time(0)));
data/avro-java-1.8.2/lang/c++/impl/DataFile.cc:173:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        sync[i] = random();
data/avro-java-1.8.2/lang/c++/test/testgentest.cc:530:27:  [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 *srcPath = getenv("top_srcdir");
data/avro-java-1.8.2/lang/c/src/avromod.c:134:15:  [3] (buffer) getopt_long:
  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_long(argc, argv, "b:c:", longopts, NULL)) != -1) {
data/avro-java-1.8.2/lang/c/src/avropipe.c:404:15:  [3] (buffer) getopt_long:
  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_long(argc, argv, "s:", longopts, NULL) ) != -1) {
data/avro-java-1.8.2/lang/c/src/datafile.c:65:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/avro-java-1.8.2/lang/c/tests/performance.c:46:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/avro-java-1.8.2/lang/c/tests/test_avro_data.c:67:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c:273:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *srcdir = getenv("srcdir");
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:83:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:82:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd_(open(filename, O_RDONLY | O_BINARY)) {
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:240:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd_(::open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644)) {
data/avro-java-1.8.2/lang/c++/impl/json/JsonDom.cc:185:11:  [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(&result[c], p, n);
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:300: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 e[4];
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:336:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c[100];
data/avro-java-1.8.2/lang/c++/test/AvrogencppTests.cc:95: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(&myRecord.myfixed[0], fixed, myRecord.myfixed.size());
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:106: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(&v,&(value[0]),sizeof(uint32_t));
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:520: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 datain[5000];
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:558: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 buffer[16];
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:756: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 datain[12];
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:827: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 buffer[6];
data/avro-java-1.8.2/lang/c++/test/testgentest.cc:196: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(myRecord.myfixed.value, fixed, testgen::md5::fixedSize);
data/avro-java-1.8.2/lang/c/examples/quickstop.c:139: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 number[15] = {0};
data/avro-java-1.8.2/lang/c/examples/quickstop.c:158:3:  [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(number, "(%d)", (int)i);
data/avro-java-1.8.2/lang/c/src/allocation.c:85:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_str, str, str_size);
data/avro-java-1.8.2/lang/c/src/allocation.c:98:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_str, str, size);
data/avro-java-1.8.2/lang/c/src/avrocat.c:41:8:  [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).
		fp = fopen(filename, "rb");
data/avro-java-1.8.2/lang/c/src/avropipe.c:45: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[100];
data/avro-java-1.8.2/lang/c/src/codec.c:125: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(c->block_data+outlen, &crc, 4);
data/avro-java-1.8.2/lang/c/src/datafile.c:37: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 sync[16];
data/avro-java-1.8.2/lang/c/src/datafile.c:48: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 sync[16];
data/avro-java-1.8.2/lang/c/src/datafile.c:54: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 schema_buf[64 * 1024];
data/avro-java-1.8.2/lang/c/src/datafile.c:114:8:  [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).
		fp = fopen(path, mode);
data/avro-java-1.8.2/lang/c/src/datafile.c:250: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 magic[4];
data/avro-java-1.8.2/lang/c/src/datafile.c:287:3:  [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 codec_name[11];
data/avro-java-1.8.2/lang/c/src/datafile.c:336:7:  [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).
	fp = fopen(path, "r+b");
data/avro-java-1.8.2/lang/c/src/datafile.c:544:7:  [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).
	fp = fopen(path, "rb");
data/avro-java-1.8.2/lang/c/src/datafile.c:688: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 sync[16];
data/avro-java-1.8.2/lang/c/src/datafile.c:715: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 sync[16];
data/avro-java-1.8.2/lang/c/src/datum.c:163: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(bytes_copy, bytes, size);
data/avro-java-1.8.2/lang/c/src/datum.c:204: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(bytes_copy, bytes, size);
data/avro-java-1.8.2/lang/c/src/datum.c:648: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(bytes_copy, bytes, size);
data/avro-java-1.8.2/lang/c/src/datum.c:691: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(bytes_copy, bytes, size);
data/avro-java-1.8.2/lang/c/src/encoding_binary.c:69: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[MAX_VARINT_BUF_SIZE];
data/avro-java-1.8.2/lang/c/src/errors.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  AVRO_ERROR1[AVRO_ERROR_SIZE];
data/avro-java-1.8.2/lang/c/src/errors.c:48: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  AVRO_ERROR2[AVRO_ERROR_SIZE];
data/avro-java-1.8.2/lang/c/src/generic.c:2420: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(vself, buf, size);
data/avro-java-1.8.2/lang/c/src/io.c:51: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 buffer[4096];
data/avro-java-1.8.2/lang/c/src/io.c:195:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, reader->buf + reader->read, len);
data/avro-java-1.8.2/lang/c/src/io.c:217:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(p, reader->cur, bytes_available(reader));
data/avro-java-1.8.2/lang/c/src/io.c:230: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, reader->cur, needed);
data/avro-java-1.8.2/lang/c/src/io.c:234: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, reader->cur, bytes_available(reader));
data/avro-java-1.8.2/lang/c/src/io.c:254: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, reader->cur, needed);
data/avro-java-1.8.2/lang/c/src/io.c:335: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((void *)(writer->buf + writer->written), buf, len);
data/avro-java-1.8.2/lang/c/src/schema.c:1696: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 size[16];
data/avro-java-1.8.2/lang/c/src/schema_specific.c:201: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[1024];
data/avro-java-1.8.2/lang/c/src/schema_specific.c:210:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ctx.header = fopen(buf, "w");
data/avro-java-1.8.2/lang/c/src/schema_specific.c:215:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ctx.source = fopen(buf, "w");
data/avro-java-1.8.2/lang/c/src/st.c:144:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/tmp/col", "w");
data/avro-java-1.8.2/lang/c/src/string.c:209:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((void *) str->wrapped.buf, orig.buf, to_copy);
data/avro-java-1.8.2/lang/c/src/string.c:223: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((void *) str->wrapped.buf, src, length);
data/avro-java-1.8.2/lang/c/src/string.c:238: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 *) str->wrapped.buf + str->wrapped.size, src, length);
data/avro-java-1.8.2/lang/c/src/string.c:248: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((void *) str->wrapped.buf, src, length+1);
data/avro-java-1.8.2/lang/c/src/string.c:263: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 *) str->wrapped.buf + str->wrapped.size - 1, src, length+1);
data/avro-java-1.8.2/lang/c/src/wrapped-buffer.c:76: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((void *) dest->buf, buf, length);
data/avro-java-1.8.2/lang/c/src/wrapped-buffer.c:98: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(dest, src, sizeof(avro_wrapped_buffer_t));
data/avro-java-1.8.2/lang/c/tests/generate_interop_data.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char outpath[128];
data/avro-java-1.8.2/lang/c/tests/generate_interop_data.c:30: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 jsontext[16 * 1024];
data/avro-java-1.8.2/lang/c/tests/generate_interop_data.c:50:7:  [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).
	fp = fopen(argv[1], "r");
data/avro-java-1.8.2/lang/c/tests/msdirent.h:156: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 d_name[MAX_PATH + 1];                  /* File name */
data/avro-java-1.8.2/lang/c/tests/msdirent.h:168: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             patt[MAX_PATH + 3];        /* Initial directory name */
data/avro-java-1.8.2/lang/c/tests/performance.c:126: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[4096];
data/avro-java-1.8.2/lang/c/tests/performance.c:209: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[4096];
data/avro-java-1.8.2/lang/c/tests/performance.c:313: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[4096];
data/avro-java-1.8.2/lang/c/tests/performance.c:392: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[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_1034.c:348:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fid = fopen( raw_binary_file_name, "w+");
data/avro-java-1.8.2/lang/c/tests/test_avro_1379.c:75: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[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_1691.c:43:24:  [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[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_1691.c:49: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 outpath[64];
data/avro-java-1.8.2/lang/c/tests/test_avro_984.c:273:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fid = fopen( raw_binary_file_name, "w+");
data/avro-java-1.8.2/lang/c/tests/test_avro_984.c:324:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fid = fopen( raw_binary_file_name, "r" );
data/avro-java-1.8.2/lang/c/tests/test_avro_data.c:25: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 buf[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c:35: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 jsontext[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c:36: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 jsontext2[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c:38: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 filepath[1024];
data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c:62:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fp = fopen(filepath, "r");
data/avro-java-1.8.2/lang/c/tests/test_avro_schema.c:274: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 path[1024];
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:294: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[4096];
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:1081: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  key[64];
data/avro-java-1.8.2/lang/py/lib/simplejson/_speedups.c:309: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(&output[1], input_str, i);
data/avro-java-1.8.2/lang/c++/examples/datafile.cc:56:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (dfr.read(c2)) {
data/avro-java-1.8.2/lang/c++/impl/BinaryDecoder.cc:80:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint8_t v = in_.read();
data/avro-java-1.8.2/lang/c++/impl/BinaryDecoder.cc:227:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        u = in_.read();
data/avro-java-1.8.2/lang/c++/impl/Compiler.cc:496:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ::strlen(input));
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:46:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(uint8_t* b, size_t toRead, size_t& actual) = 0;
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:70:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(uint8_t* b, size_t toRead, size_t& actual) {
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:101:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(uint8_t* b, size_t toRead, size_t& actual) {
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:102:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int n = ::read(fd_, b, toRead);
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:125:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(uint8_t* b, size_t toRead, size_t& actual) {
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:126:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        is_.read(reinterpret_cast<char*>(b), toRead);
data/avro-java-1.8.2/lang/c++/impl/FileStream.cc:183:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (in_->read(buffer_, bufferSize_, n)) {
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:51:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GenericReader::read(GenericDatum& datum) const
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:54:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(datum, *decoder_, isResolving_);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:57:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GenericReader::read(GenericDatum& datum, Decoder& d, bool isResolving)
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:61:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(datum.value<GenericUnion>().datum(), d, isResolving);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:103:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(r.fieldAt(fo[i]), d, isResolving);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:107:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(r.fieldAt(i), d, isResolving);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:126:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(r[start], d, isResolving);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:143:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read(r[start].second, d, isResolving);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:154:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GenericReader::read(Decoder& d, GenericDatum& g, const ValidSchema& s)
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:157:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(d, g);
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:160:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void GenericReader::read(Decoder& d, GenericDatum& g)
data/avro-java-1.8.2/lang/c++/impl/Generic.cc:162:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(g, d, dynamic_cast<ResolvingDecoder*>(&d) != 0);
data/avro-java-1.8.2/lang/c++/impl/json/JsonDom.cc:97:65:  [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 loadEntity(reinterpret_cast<const uint8_t*>(text), ::strlen(text));
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:43:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:158:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:169:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:180:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:195:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:206:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:220:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:235:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:270:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        char ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:274:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ch = in_.read();
data/avro-java-1.8.2/lang/c++/impl/json/JsonIO.cc:344:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nextChar = in_.read();
data/avro-java-1.8.2/lang/c++/test/CodecTests.cc:134: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).
    Scanner(const char* calls) : p(calls), end(calls + strlen(calls)) { }
data/avro-java-1.8.2/lang/c++/test/CodecTests.cc:816:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        gr.read(datum);
data/avro-java-1.8.2/lang/c++/test/CodecTests.cc:860:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    gr.read(datum);
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:240:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(ci)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:256:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(integer)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:273:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(p)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:300:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(p)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:327:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(p)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:349:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(ci)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:372:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(ci)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:397:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (df.read(ci)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:427:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (reader.read(record)) {
data/avro-java-1.8.2/lang/c++/test/DataFileTests.cc:447:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            df.read(b);
data/avro-java-1.8.2/lang/c++/test/StreamTests.cc:40:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        BOOST_CHECK_THROW(r.read(), Exception);
data/avro-java-1.8.2/lang/c++/test/StreamTests.cc:83:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            BOOST_CHECK_EQUAL(i % 10 + '0', r.read());
data/avro-java-1.8.2/lang/c++/test/StreamTests.cc:85:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        BOOST_CHECK_THROW(r.read(), Exception);
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:446:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        is.read(addr, sizeof(T));
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:452:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(&c, sizeof(c));
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:559:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        is.read(buffer, part1.size());
data/avro-java-1.8.2/lang/c++/test/buffertest.cc:565:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        is.read(buffer, part2.size());
data/avro-java-1.8.2/lang/c/src/allocation.c:83:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t  str_size = strlen(str)+1;
data/avro-java-1.8.2/lang/c/src/avro/data.h:348:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (avro_wrapped_buffer_new((dest), (str), strlen((str))+1))
data/avro-java-1.8.2/lang/c/src/avro/data.h:366:50:  [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).
    (avro_wrapped_buffer_new_copy((dest), (str), strlen((str))+1))
data/avro-java-1.8.2/lang/c/src/avropipe.c:139:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	print_bytes_value(symbol_name, strlen(symbol_name));
data/avro-java-1.8.2/lang/c/src/datafile.c:93:58:  [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).
	check(rval, enc->write_bytes(w->writer, w->codec->name, strlen(w->codec->name)));
data/avro-java-1.8.2/lang/c/src/datafile.c:299:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(codec_name, (const char *) buf, size < 10 ? size : 10);
data/avro-java-1.8.2/lang/c/src/datum.c:84: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).
	int64_t  sz = strlen(str)+1;
data/avro-java-1.8.2/lang/c/src/datum.c:135: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).
	int64_t  size = strlen(p)+1;
data/avro-java-1.8.2/lang/c/src/datum_value.c:247:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*size = strlen(value)+1;
data/avro-java-1.8.2/lang/c/src/datum_value.c:264:7:  [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).
	sz = strlen(str);
data/avro-java-1.8.2/lang/c/src/encoding_binary.c:196: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).
	int64_t len = strlen(s);
data/avro-java-1.8.2/lang/c/src/encoding_binary.c:202: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).
	int64_t len = strlen(s);
data/avro-java-1.8.2/lang/c/src/errors.c:118:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(&ERROR_DATA->AVRO_OTHER_ERROR[bytes_written], ERROR_DATA->AVRO_CURRENT_ERROR,
data/avro-java-1.8.2/lang/c/src/io.c:64:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int64_t read;
data/avro-java-1.8.2/lang/c/src/io.c:190:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((reader->len - reader->read) < len) {
data/avro-java-1.8.2/lang/c/src/io.c:195:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		memcpy(buf, reader->buf + reader->read, len);
data/avro-java-1.8.2/lang/c/src/io.c:280:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((reader->len - reader->read) < len) {
data/avro-java-1.8.2/lang/c/src/io.c:410:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		     avro_reader_to_memory(reader)->read);
data/avro-java-1.8.2/lang/c/src/schema.c:53: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(name);
data/avro-java-1.8.2/lang/c/src/schema.c:749: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).
		full_name = avro_str_alloc(strlen(name) + strlen(namespace) + 2);
data/avro-java-1.8.2/lang/c/src/schema.c:749:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		full_name = avro_str_alloc(strlen(name) + strlen(namespace) + 2);
data/avro-java-1.8.2/lang/c/src/schema.c:1618: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 avro_write(out, (char *)str, strlen(str));
data/avro-java-1.8.2/lang/c/src/string.c:246: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).
	size_t  length = strlen(src);
data/avro-java-1.8.2/lang/c/src/string.c:261: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).
	size_t  length = strlen(src);
data/avro-java-1.8.2/lang/c/src/value-hash.c:244: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).
				element = hash_buffer(element, key, strlen(key));
data/avro-java-1.8.2/lang/c/tests/msdirent.h:183:40:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
# define DIRENT_STRNCPY(dest,src,size) strncpy((dest),(src),(size))
data/avro-java-1.8.2/lang/c/tests/msdirent.h:208:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (strlen (dirname) + 3 >= MAX_PATH) {
data/avro-java-1.8.2/lang/c/tests/msdirent.h:301: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).
   dirp->curentry.d_namlen = strlen (dirp->curentry.d_name);
data/avro-java-1.8.2/lang/c/tests/performance.c:132: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).
	avro_schema_from_json(schema_json, strlen(schema_json),
data/avro-java-1.8.2/lang/c/tests/performance.c:215: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).
	avro_schema_from_json(schema_json, strlen(schema_json),
data/avro-java-1.8.2/lang/c/tests/performance.c:319: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).
	avro_schema_from_json(schema_json, strlen(schema_json),
data/avro-java-1.8.2/lang/c/tests/performance.c:399: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).
	avro_schema_from_json(schema_json, strlen(schema_json),
data/avro-java-1.8.2/lang/c/tests/test_avro_1165.c:65: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).
	rval = avro_schema_from_json(json, strlen(json), &schema, &error);
data/avro-java-1.8.2/lang/c/tests/test_avro_1379.c:83:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	check(rval, avro_schema_from_json(schema_json, strlen(schema_json), &schema, &error));
data/avro-java-1.8.2/lang/c/tests/test_avro_1691.c:53:64:  [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).
                check(rval, avro_schema_from_json(json_schema, strlen(json_schema),
data/avro-java-1.8.2/lang/c/tests/test_avro_data.c:405: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).
	avro_schema_from_json(json, strlen(json), &schema, &error);
data/avro-java-1.8.2/lang/c/tests/test_avro_schema_names.c:35: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).
 rc = avro_schema_from_json(json, strlen(json), &base, &serror);
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:765: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).
		if (actual_size != strlen(strings[i])+1) {
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:779: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 (wbuf.size != strlen(strings[i])+1) {
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:793: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).
		size_t  str_length = strlen(strings[i])+1;
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:802: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).
		if (actual_size != strlen(strings[i])+1) {
data/avro-java-1.8.2/lang/c/tests/test_avro_values.c:815: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 (wbuf.size != strlen(strings[i])+1) {

ANALYSIS SUMMARY:

Hits = 206
Lines analyzed = 51015 in approximately 1.34 seconds (38078 lines/second)
Physical Source Lines of Code (SLOC) = 38184
Hits@level = [0] 401 [1]  97 [2]  80 [3]  10 [4]  19 [5]   0
Hits@level+ = [0+] 607 [1+] 206 [2+] 109 [3+]  29 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 15.8967 [1+] 5.39493 [2+] 2.8546 [3+] 0.75948 [4+] 0.497591 [5+]   0
Dot directories skipped = 2 (--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.