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/simdjson-0.6.1/benchmark/bench_dom_api.cpp Examining data/simdjson-0.6.1/benchmark/bench_ondemand.cpp Examining data/simdjson-0.6.1/benchmark/bench_parse_call.cpp Examining data/simdjson-0.6.1/benchmark/bench_sax.cpp Examining data/simdjson-0.6.1/benchmark/benchfeatures.cpp Examining data/simdjson-0.6.1/benchmark/benchmark.h Examining data/simdjson-0.6.1/benchmark/benchmarker.h Examining data/simdjson-0.6.1/benchmark/distinctuserid/distinctuserid.h Examining data/simdjson-0.6.1/benchmark/distinctuserid/dom.h Examining data/simdjson-0.6.1/benchmark/distinctuserid/ondemand.h Examining data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp Examining data/simdjson-0.6.1/benchmark/event_counter.h Examining data/simdjson-0.6.1/benchmark/get_corpus_benchmark.cpp Examining data/simdjson-0.6.1/benchmark/json_benchmark.h Examining data/simdjson-0.6.1/benchmark/kostya/dom.h Examining data/simdjson-0.6.1/benchmark/kostya/iter.h Examining data/simdjson-0.6.1/benchmark/kostya/kostya.h Examining data/simdjson-0.6.1/benchmark/kostya/ondemand.h Examining data/simdjson-0.6.1/benchmark/largerandom/dom.h Examining data/simdjson-0.6.1/benchmark/largerandom/iter.h Examining data/simdjson-0.6.1/benchmark/largerandom/largerandom.h Examining data/simdjson-0.6.1/benchmark/largerandom/ondemand.h Examining data/simdjson-0.6.1/benchmark/largerandom/sax.h Examining data/simdjson-0.6.1/benchmark/linux/linux-perf-events.h Examining data/simdjson-0.6.1/benchmark/minifiercompetition.cpp Examining data/simdjson-0.6.1/benchmark/parse.cpp Examining data/simdjson-0.6.1/benchmark/parse_stream.cpp Examining data/simdjson-0.6.1/benchmark/parseandstatcompetition.cpp Examining data/simdjson-0.6.1/benchmark/parsingcompetition.cpp Examining data/simdjson-0.6.1/benchmark/partial_tweets/dom.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/domnoexcept.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/iter.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/ondemand.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/partial_tweets.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/sax.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/sax_tweet_reader_visitor.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/tweet.h Examining data/simdjson-0.6.1/benchmark/partial_tweets/twitter_user.h Examining data/simdjson-0.6.1/benchmark/perfdiff.cpp Examining data/simdjson-0.6.1/benchmark/statisticalmodel.cpp Examining data/simdjson-0.6.1/dependencies/jsoncppdist/json/json-forwards.h Examining data/simdjson-0.6.1/dependencies/jsoncppdist/json/json.h Examining data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp Examining data/simdjson-0.6.1/examples/quickstart/quickstart.cpp Examining data/simdjson-0.6.1/examples/quickstart/quickstart_noexceptions.cpp Examining data/simdjson-0.6.1/extra/dumpbits.h Examining data/simdjson-0.6.1/fuzz/FuzzUtils.h Examining data/simdjson-0.6.1/fuzz/NullBuffer.h Examining data/simdjson-0.6.1/fuzz/fuzz_atpointer.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_dump.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_dump_raw_tape.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_element.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_implementations.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_minify.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_minifyimpl.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_parser.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_print_json.cpp Examining data/simdjson-0.6.1/fuzz/fuzz_utf8.cpp Examining data/simdjson-0.6.1/fuzz/main.cpp Examining data/simdjson-0.6.1/fuzz/supported_implementations.h Examining data/simdjson-0.6.1/include/simdjson.h Examining data/simdjson-0.6.1/include/simdjson/arm64.h Examining data/simdjson-0.6.1/include/simdjson/arm64/begin.h Examining data/simdjson-0.6.1/include/simdjson/arm64/bitmanipulation.h Examining data/simdjson-0.6.1/include/simdjson/arm64/bitmask.h Examining data/simdjson-0.6.1/include/simdjson/arm64/end.h Examining data/simdjson-0.6.1/include/simdjson/arm64/implementation.h Examining data/simdjson-0.6.1/include/simdjson/arm64/intrinsics.h Examining data/simdjson-0.6.1/include/simdjson/arm64/numberparsing.h Examining data/simdjson-0.6.1/include/simdjson/arm64/simd.h Examining data/simdjson-0.6.1/include/simdjson/arm64/stringparsing.h Examining data/simdjson-0.6.1/include/simdjson/builtin.h Examining data/simdjson-0.6.1/include/simdjson/common_defs.h Examining data/simdjson-0.6.1/include/simdjson/compiler_check.h Examining data/simdjson-0.6.1/include/simdjson/dom/array-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/array.h Examining data/simdjson-0.6.1/include/simdjson/dom/document-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/document.h Examining data/simdjson-0.6.1/include/simdjson/dom/document_stream-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/document_stream.h Examining data/simdjson-0.6.1/include/simdjson/dom/element-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/element.h Examining data/simdjson-0.6.1/include/simdjson/dom/jsonparser.h Examining data/simdjson-0.6.1/include/simdjson/dom/object-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/object.h Examining data/simdjson-0.6.1/include/simdjson/dom/parsedjson.h Examining data/simdjson-0.6.1/include/simdjson/dom/parsedjson_iterator-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/parsedjson_iterator.h Examining data/simdjson-0.6.1/include/simdjson/dom/parser-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/parser.h Examining data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h Examining data/simdjson-0.6.1/include/simdjson/dom/serialization.h Examining data/simdjson-0.6.1/include/simdjson/error-inl.h Examining data/simdjson-0.6.1/include/simdjson/error.h Examining data/simdjson-0.6.1/include/simdjson/fallback.h Examining data/simdjson-0.6.1/include/simdjson/fallback/begin.h Examining data/simdjson-0.6.1/include/simdjson/fallback/bitmanipulation.h Examining data/simdjson-0.6.1/include/simdjson/fallback/end.h Examining data/simdjson-0.6.1/include/simdjson/fallback/implementation.h Examining data/simdjson-0.6.1/include/simdjson/fallback/numberparsing.h Examining data/simdjson-0.6.1/include/simdjson/fallback/stringparsing.h Examining data/simdjson-0.6.1/include/simdjson/generic/atomparsing.h Examining data/simdjson-0.6.1/include/simdjson/generic/dom_parser_implementation.h Examining data/simdjson-0.6.1/include/simdjson/generic/implementation_simdjson_result_base-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/implementation_simdjson_result_base.h Examining data/simdjson-0.6.1/include/simdjson/generic/jsoncharutils.h Examining data/simdjson-0.6.1/include/simdjson/generic/numberparsing.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/array-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/array.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/array_iterator-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/array_iterator.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/document-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/document.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/field-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/field.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/json_iterator-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/json_iterator.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/logger-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/logger.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/object-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/object.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/object_iterator-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/object_iterator.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/parser-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/parser.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/raw_json_string-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/raw_json_string.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/token_iterator-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/token_iterator.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/value-inl.h Examining data/simdjson-0.6.1/include/simdjson/generic/ondemand/value.h Examining data/simdjson-0.6.1/include/simdjson/generic/stringparsing.h Examining data/simdjson-0.6.1/include/simdjson/haswell.h Examining data/simdjson-0.6.1/include/simdjson/haswell/begin.h Examining data/simdjson-0.6.1/include/simdjson/haswell/bitmanipulation.h Examining data/simdjson-0.6.1/include/simdjson/haswell/bitmask.h Examining data/simdjson-0.6.1/include/simdjson/haswell/end.h Examining data/simdjson-0.6.1/include/simdjson/haswell/implementation.h Examining data/simdjson-0.6.1/include/simdjson/haswell/intrinsics.h Examining data/simdjson-0.6.1/include/simdjson/haswell/numberparsing.h Examining data/simdjson-0.6.1/include/simdjson/haswell/simd.h Examining data/simdjson-0.6.1/include/simdjson/haswell/stringparsing.h Examining data/simdjson-0.6.1/include/simdjson/implementation.h Examining data/simdjson-0.6.1/include/simdjson/internal/dom_parser_implementation.h Examining data/simdjson-0.6.1/include/simdjson/internal/isadetection.h Examining data/simdjson-0.6.1/include/simdjson/internal/jsoncharutils_tables.h Examining data/simdjson-0.6.1/include/simdjson/internal/jsonformatutils.h Examining data/simdjson-0.6.1/include/simdjson/internal/numberparsing_tables.h Examining data/simdjson-0.6.1/include/simdjson/internal/simdprune_tables.h Examining data/simdjson-0.6.1/include/simdjson/internal/tape_ref-inl.h Examining data/simdjson-0.6.1/include/simdjson/internal/tape_ref.h Examining data/simdjson-0.6.1/include/simdjson/internal/tape_type.h Examining data/simdjson-0.6.1/include/simdjson/jsonioutil.h Examining data/simdjson-0.6.1/include/simdjson/minify.h Examining data/simdjson-0.6.1/include/simdjson/nonstd/string_view.hpp Examining data/simdjson-0.6.1/include/simdjson/padded_string-inl.h Examining data/simdjson-0.6.1/include/simdjson/padded_string.h Examining data/simdjson-0.6.1/include/simdjson/portability.h Examining data/simdjson-0.6.1/include/simdjson/simdjson.h Examining data/simdjson-0.6.1/include/simdjson/simdjson_version.h Examining data/simdjson-0.6.1/include/simdjson/westmere.h Examining data/simdjson-0.6.1/include/simdjson/westmere/begin.h Examining data/simdjson-0.6.1/include/simdjson/westmere/bitmanipulation.h Examining data/simdjson-0.6.1/include/simdjson/westmere/bitmask.h Examining data/simdjson-0.6.1/include/simdjson/westmere/end.h Examining data/simdjson-0.6.1/include/simdjson/westmere/implementation.h Examining data/simdjson-0.6.1/include/simdjson/westmere/intrinsics.h Examining data/simdjson-0.6.1/include/simdjson/westmere/numberparsing.h Examining data/simdjson-0.6.1/include/simdjson/westmere/simd.h Examining data/simdjson-0.6.1/include/simdjson/westmere/stringparsing.h Examining data/simdjson-0.6.1/scripts/transitions/generatetransitions.cpp Examining data/simdjson-0.6.1/singleheader/amalgamate_demo.cpp Examining data/simdjson-0.6.1/singleheader/simdjson.cpp Examining data/simdjson-0.6.1/singleheader/simdjson.h Examining data/simdjson-0.6.1/src/arm64/dom_parser_implementation.cpp Examining data/simdjson-0.6.1/src/arm64/implementation.cpp Examining data/simdjson-0.6.1/src/fallback/dom_parser_implementation.cpp Examining data/simdjson-0.6.1/src/fallback/implementation.cpp Examining data/simdjson-0.6.1/src/from_chars.cpp Examining data/simdjson-0.6.1/src/generic/stage1/buf_block_reader.h Examining data/simdjson-0.6.1/src/generic/stage1/find_next_document_index.h Examining data/simdjson-0.6.1/src/generic/stage1/json_minifier.h Examining data/simdjson-0.6.1/src/generic/stage1/json_scanner.h Examining data/simdjson-0.6.1/src/generic/stage1/json_string_scanner.h Examining data/simdjson-0.6.1/src/generic/stage1/json_structural_indexer.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_fastvalidate_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_lookup2_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_lookup3_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_lookup4_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_lookup_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_range_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_validator.h Examining data/simdjson-0.6.1/src/generic/stage1/utf8_zwegner_algorithm.h Examining data/simdjson-0.6.1/src/generic/stage2/json_iterator.h Examining data/simdjson-0.6.1/src/generic/stage2/logger.h Examining data/simdjson-0.6.1/src/generic/stage2/structural_iterator.h Examining data/simdjson-0.6.1/src/generic/stage2/tape_builder.h Examining data/simdjson-0.6.1/src/generic/stage2/tape_writer.h Examining data/simdjson-0.6.1/src/haswell/dom_parser_implementation.cpp Examining data/simdjson-0.6.1/src/haswell/implementation.cpp Examining data/simdjson-0.6.1/src/implementation.cpp Examining data/simdjson-0.6.1/src/internal/error_tables.cpp Examining data/simdjson-0.6.1/src/internal/jsoncharutils_tables.cpp Examining data/simdjson-0.6.1/src/internal/numberparsing_tables.cpp Examining data/simdjson-0.6.1/src/internal/simdprune_tables.cpp Examining data/simdjson-0.6.1/src/simdjson.cpp Examining data/simdjson-0.6.1/src/to_chars.cpp Examining data/simdjson-0.6.1/src/westmere/dom_parser_implementation.cpp Examining data/simdjson-0.6.1/src/westmere/implementation.cpp Examining data/simdjson-0.6.1/tests/allparserscheckfile.cpp Examining data/simdjson-0.6.1/tests/basictests.cpp Examining data/simdjson-0.6.1/tests/cast_tester.h Examining data/simdjson-0.6.1/tests/checkimplementation.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/dangling_parser_load.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/dangling_parser_parse_padstring.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/dangling_parser_parse_stdstring.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/dangling_parser_parse_uchar.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/dangling_parser_parse_uint8.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/example_compiletest.cpp Examining data/simdjson-0.6.1/tests/compilation_failure_tests/unsafe_parse_many.cpp Examining data/simdjson-0.6.1/tests/document_stream_tests.cpp Examining data/simdjson-0.6.1/tests/document_tests.cpp Examining data/simdjson-0.6.1/tests/errortests.cpp Examining data/simdjson-0.6.1/tests/extracting_values_example.cpp Examining data/simdjson-0.6.1/tests/integer_tests.cpp Examining data/simdjson-0.6.1/tests/jsoncheck.cpp Examining data/simdjson-0.6.1/tests/minefieldcheck.cpp Examining data/simdjson-0.6.1/tests/minify_tests.cpp Examining data/simdjson-0.6.1/tests/numberparsingcheck.cpp Examining data/simdjson-0.6.1/tests/ondemand/ondemand_basictests.cpp Examining data/simdjson-0.6.1/tests/ondemand/test_ondemand.h Examining data/simdjson-0.6.1/tests/padded_string_tests.cpp Examining data/simdjson-0.6.1/tests/parse_many_test.cpp Examining data/simdjson-0.6.1/tests/pointercheck.cpp Examining data/simdjson-0.6.1/tests/random_string_number_tests.cpp Examining data/simdjson-0.6.1/tests/readme_examples.cpp Examining data/simdjson-0.6.1/tests/readme_examples_noexceptions.cpp Examining data/simdjson-0.6.1/tests/singleheadertest.cpp Examining data/simdjson-0.6.1/tests/staticchecks.cpp Examining data/simdjson-0.6.1/tests/stringparsingcheck.cpp Examining data/simdjson-0.6.1/tests/test_macros.h Examining data/simdjson-0.6.1/tests/unicode_tests.cpp Examining data/simdjson-0.6.1/tools/json2json.cpp Examining data/simdjson-0.6.1/tools/jsonpointer.cpp Examining data/simdjson-0.6.1/tools/jsonstats.cpp Examining data/simdjson-0.6.1/tools/minify.cpp Examining data/simdjson-0.6.1/windows/dirent_portable.h Examining data/simdjson-0.6.1/windows/getopt.h Examining data/simdjson-0.6.1/windows/toni_ronnko_dirent.h Examining data/simdjson-0.6.1/windows/unistd.h FINAL RESULTS: data/simdjson-0.6.1/benchmark/benchmarker.h:452:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(filename_copy, filename); data/simdjson-0.6.1/benchmark/perfdiff.cpp:13:9: [4] (shell) popen: 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. #define popen _popen data/simdjson-0.6.1/benchmark/perfdiff.cpp:30:54: [4] (shell) popen: 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. std::unique_ptr<FILE, decltype(&closepipe)> pipe(popen(cmd, "r"), closepipe); data/simdjson-0.6.1/dependencies/jsoncppdist/json/json-forwards.h:159:31: [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 jsoncpp_snprintf std::snprintf data/simdjson-0.6.1/dependencies/jsoncppdist/json/json.h:297:31: [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 jsoncpp_snprintf std::snprintf data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:259:14: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #if !defined(sscanf) data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:260:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #define sscanf std::sscanf data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:260:21: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #define sscanf std::sscanf data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:1851:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. count = sscanf(buffer, format, &value); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:1854:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. count = sscanf(buffer.c_str(), format, &value); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:228:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullpath, dirname); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:231:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullpath + dirlen + 1, name); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:233:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullpath + dirlen, name); data/simdjson-0.6.1/tests/pointercheck.cpp:94:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(error) { std::cerr << "cannot access pointer: " << error << std::endl; return false; } data/simdjson-0.6.1/tests/stringparsingcheck.cpp:332:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullpath, dirname); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:335:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullpath + dirlen + 1, name); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:337:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullpath + dirlen, name); data/simdjson-0.6.1/tools/jsonstats.cpp:241:3: [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(R"({ data/simdjson-0.6.1/windows/getopt.h:149:11: [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. (void)vfprintf(stderr,fmt,ap); data/simdjson-0.6.1/benchmark/benchfeatures.cpp:88:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "vtn:i:a:s:")) != -1) { data/simdjson-0.6.1/benchmark/benchfeatures.cpp:402:15: [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. benchmarker random(SIMDJSON_BENCHMARK_DATA_DIR "random.json", collector); data/simdjson-0.6.1/benchmark/benchfeatures.cpp:413:7: [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. random.run_iterations(options.iteration_step, true); data/simdjson-0.6.1/benchmark/benchfeatures.cpp:421:7: [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. random.run_iterations(options.iteration_step, false); data/simdjson-0.6.1/benchmark/benchfeatures.cpp:467:54: [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. print_file_effectiveness(stage, "random.json", random, features); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:309:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "vt")) != -1) data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:64:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "vt")) != -1) data/simdjson-0.6.1/benchmark/parse.cpp:104:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "vtn:i:a:s:HC")) != -1) { data/simdjson-0.6.1/benchmark/parseandstatcompetition.cpp:404:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "vt")) != -1) data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:393:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "r:vt")) != -1) data/simdjson-0.6.1/benchmark/statisticalmodel.cpp:119:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "")) != -1) { data/simdjson-0.6.1/singleheader/simdjson.cpp:2615:37: [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 *force_implementation_name = getenv("SIMDJSON_FORCE_IMPLEMENTATION"); data/simdjson-0.6.1/src/implementation.cpp:123:37: [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 *force_implementation_name = getenv("SIMDJSON_FORCE_IMPLEMENTATION"); data/simdjson-0.6.1/tests/allparserscheckfile.cpp:49:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "vm")) != -1) data/simdjson-0.6.1/tests/basictests.cpp:1977:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:")) != -1) { data/simdjson-0.6.1/tests/checkimplementation.cpp:11:31: [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. expected_implementation = getenv("SIMDJSON_FORCE_IMPLEMENTATION"); data/simdjson-0.6.1/tests/document_stream_tests.cpp:335:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:")) != -1) { data/simdjson-0.6.1/tests/document_tests.cpp:197:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:")) != -1) { data/simdjson-0.6.1/tests/jsoncheck.cpp:114:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:")) != -1) { data/simdjson-0.6.1/tests/minefieldcheck.cpp:112:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:")) != -1) { data/simdjson-0.6.1/tests/ondemand/ondemand_basictests.cpp:1484:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:")) != -1) { data/simdjson-0.6.1/tests/random_string_number_tests.cpp:157:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "a:m:h")) != -1) { data/simdjson-0.6.1/windows/getopt.h:225:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(int nargc, char * const *nargv, const char *options) data/simdjson-0.6.1/windows/getopt.h:447:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = (getenv("POSIXLY_CORRECT") != NULL); data/simdjson-0.6.1/windows/getopt.h:619:1: [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. getopt_long(int nargc, char * const *nargv, const char *options, data/simdjson-0.6.1/benchmark/benchfeatures.cpp:91:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). iterations = atoi(optarg); data/simdjson-0.6.1/benchmark/benchfeatures.cpp:94:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). iteration_step = atoi(optarg); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:202: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:218: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:278: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:295: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:395: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/distinctuseridcompetition.cpp:400: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:102: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:120:7: [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(buffer, p.data(), p.size()), repeat, volume, !just_data); data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:126: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:132:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. outlength, memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:146:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. false, memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:160:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. false, memcpy(buffer, mini_buffer, p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:171: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. true, memcpy(buffer, p.data(), p.size()), repeat, volume, !just_data); data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:178: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. true, memcpy(buffer, mini_buffer, p.size()), repeat, volume, !just_data); data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:185:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson::SUCCESS, memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/minifiercompetition.cpp:190:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson::SUCCESS, memcpy(buffer, mini_buffer, p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parse.cpp:107:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). iterations = atoi(optarg); data/simdjson-0.6.1/benchmark/parse.cpp:110:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). iteration_step = atoi(optarg); data/simdjson-0.6.1/benchmark/parseandstatcompetition.cpp:292: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parseandstatcompetition.cpp:353: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parseandstatcompetition.cpp:380: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parseandstatcompetition.cpp:494: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:142:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:148:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:158:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:168:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()) && (buffer[p.size()] = '\0'), data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:175:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()) && data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:212:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. true, std::memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:223:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. true, std::memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:226:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:236:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. false, std::memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:240:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:246:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. JSON_OK, std::memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:251:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()), repeat, volume, data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:259:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:266:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:284:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (std::memcpy(buffer, p.data(), p.size()) == buffer), true, , data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:329:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/benchmark/parsingcompetition.cpp:356:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p.data(), p.size()); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:160: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. typedef char UIntToStringBuffer[uintToStringBufferSize]; data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:1035: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 buffer[18 + 16 + 16 + 1]; data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:1848: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(buffer, token.start_, ulength); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:2045: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 buffer[18 + 16 + 16 + 1]; data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:2571: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(newString, value, length); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:2593: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(newString + sizeof(unsigned), value, length); data/simdjson-0.6.1/fuzz/FuzzUtils.h:82:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&ret,Data,Nbytes); data/simdjson-0.6.1/fuzz/NullBuffer.h:8: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 dummyBuffer[64]; data/simdjson-0.6.1/include/simdjson/arm64/numberparsing.h:12: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(&val, chars, sizeof(uint64_t)); data/simdjson-0.6.1/include/simdjson/dom/document-inl.h:69:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&string_length, string_buf.get() + payload, sizeof(uint32_t)); data/simdjson-0.6.1/include/simdjson/dom/parsedjson_iterator-inl.h:255:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(depth_index, o.depth_index, (depth + 1) * sizeof(depth_index[0])); data/simdjson-0.6.1/include/simdjson/dom/parsedjson_iterator.h:81:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&answer, data/simdjson-0.6.1/include/simdjson/dom/parser-inl.h:37:24: [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). std::FILE *fp = std::fopen(path.c_str(), "rb"); data/simdjson-0.6.1/include/simdjson/dom/parser-inl.h:97:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy((void *)tmp_buf.get(), buf, len); data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:33:11: [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. const char string[7]; // technically, we only ever need 6 characters, we pad to 8 data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:46: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 buffer[20]; data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:55:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&value_positive, &value, sizeof(value)); data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:74:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, write_pointer, len); data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:88: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 buffer[20]; data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:100:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, write_pointer, len); data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:111: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 number_buffer[24]; data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:117: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 number_buffer[24]; data/simdjson-0.6.1/include/simdjson/dom/serialization-inl.h:123: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 number_buffer[24]; data/simdjson-0.6.1/include/simdjson/generic/atomparsing.h:13:88: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson_really_inline uint32_t string_to_uint32(const char* str) { uint32_t val; std::memcpy(&val, str, sizeof(uint32_t)); return val; } data/simdjson-0.6.1/include/simdjson/generic/atomparsing.h:22:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&srcval, src, sizeof(uint32_t)); data/simdjson-0.6.1/include/simdjson/generic/numberparsing.h:311: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(&val, chars, 8); data/simdjson-0.6.1/include/simdjson/generic/ondemand/json_iterator-inl.h:207: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(tmpbuf, json, len); data/simdjson-0.6.1/include/simdjson/internal/simdprune_tables.h:9:48: [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. extern SIMDJSON_DLLIMPORTEXPORT const unsigned char BitsSetTable256mul2[256]; data/simdjson-0.6.1/include/simdjson/internal/tape_ref-inl.h:84:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&x,&doc->tape[json_index + 1],sizeof(uint64_t)); data/simdjson-0.6.1/include/simdjson/padded_string-inl.h:44:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(data_ptr, data, length); data/simdjson-0.6.1/include/simdjson/padded_string-inl.h:51:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(data_ptr, str_.data(), str_.size()); data/simdjson-0.6.1/include/simdjson/padded_string-inl.h:58:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(data_ptr, sv_.data(), sv_.size()); data/simdjson-0.6.1/include/simdjson/padded_string-inl.h:102:24: [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). std::FILE *fp = std::fopen(filename.c_str(), "rb"); data/simdjson-0.6.1/singleheader/simdjson.cpp:38:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&target, &source, sizeof(Source)); data/simdjson-0.6.1/singleheader/simdjson.cpp:1442:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&value, &word, sizeof(double)); data/simdjson-0.6.1/singleheader/simdjson.cpp:2367:42: [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. SIMDJSON_DLLIMPORTEXPORT const unsigned char BitsSetTable256mul2[256] = { data/simdjson-0.6.1/singleheader/simdjson.cpp:3059:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dst, buf + idx, len - idx); data/simdjson-0.6.1/singleheader/simdjson.cpp:3454: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(guarded_dst, out_block, to_write); data/simdjson-0.6.1/singleheader/simdjson.cpp:4307: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(next_tape_loc, &val2, sizeof(val2)); data/simdjson-0.6.1/singleheader/simdjson.cpp:4499:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(copy, value, iter.remaining_len()); data/simdjson-0.6.1/singleheader/simdjson.cpp:4591: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(current_string_buf_loc, &str_length, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.cpp:5019:7: [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(&v1, data + pos, sizeof(uint64_t)); data/simdjson-0.6.1/singleheader/simdjson.cpp:5021:7: [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(&v2, data + pos + sizeof(uint64_t), sizeof(uint64_t)); data/simdjson-0.6.1/singleheader/simdjson.cpp:5581: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(next_tape_loc, &val2, sizeof(val2)); data/simdjson-0.6.1/singleheader/simdjson.cpp:5773:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(copy, value, iter.remaining_len()); data/simdjson-0.6.1/singleheader/simdjson.cpp:5865: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(current_string_buf_loc, &str_length, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.cpp:6319:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dst, buf + idx, len - idx); data/simdjson-0.6.1/singleheader/simdjson.cpp:6714: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(guarded_dst, out_block, to_write); data/simdjson-0.6.1/singleheader/simdjson.cpp:7566: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(next_tape_loc, &val2, sizeof(val2)); data/simdjson-0.6.1/singleheader/simdjson.cpp:7758:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(copy, value, iter.remaining_len()); data/simdjson-0.6.1/singleheader/simdjson.cpp:7850: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(current_string_buf_loc, &str_length, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.cpp:8329:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dst, buf + idx, len - idx); data/simdjson-0.6.1/singleheader/simdjson.cpp:8724: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(guarded_dst, out_block, to_write); data/simdjson-0.6.1/singleheader/simdjson.cpp:9576: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(next_tape_loc, &val2, sizeof(val2)); data/simdjson-0.6.1/singleheader/simdjson.cpp:9768:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(copy, value, iter.remaining_len()); data/simdjson-0.6.1/singleheader/simdjson.cpp:9860: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(current_string_buf_loc, &str_length, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.h:5565:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&answer, data/simdjson-0.6.1/singleheader/simdjson.h:6685:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&string_length, string_buf.get() + payload, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.h:7219:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(data_ptr, data, length); data/simdjson-0.6.1/singleheader/simdjson.h:7226:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(data_ptr, str_.data(), str_.size()); data/simdjson-0.6.1/singleheader/simdjson.h:7233:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(data_ptr, sv_.data(), sv_.size()); data/simdjson-0.6.1/singleheader/simdjson.h:7277:24: [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). std::FILE *fp = std::fopen(filename.c_str(), "rb"); data/simdjson-0.6.1/singleheader/simdjson.h:7570:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(depth_index, o.depth_index, (depth + 1) * sizeof(depth_index[0])); data/simdjson-0.6.1/singleheader/simdjson.h:7835:24: [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). std::FILE *fp = std::fopen(path.c_str(), "rb"); data/simdjson-0.6.1/singleheader/simdjson.h:7895:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy((void *)tmp_buf.get(), buf, len); data/simdjson-0.6.1/singleheader/simdjson.h:8072:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&x,&doc->tape[json_index + 1],sizeof(uint64_t)); data/simdjson-0.6.1/singleheader/simdjson.h:8132:11: [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. const char string[7]; // technically, we only ever need 6 characters, we pad to 8 data/simdjson-0.6.1/singleheader/simdjson.h:8145: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 buffer[20]; data/simdjson-0.6.1/singleheader/simdjson.h:8154:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&value_positive, &value, sizeof(value)); data/simdjson-0.6.1/singleheader/simdjson.h:8173:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, write_pointer, len); data/simdjson-0.6.1/singleheader/simdjson.h:8187: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 buffer[20]; data/simdjson-0.6.1/singleheader/simdjson.h:8199:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(output, write_pointer, len); data/simdjson-0.6.1/singleheader/simdjson.h:8210: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 number_buffer[24]; data/simdjson-0.6.1/singleheader/simdjson.h:8216: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 number_buffer[24]; data/simdjson-0.6.1/singleheader/simdjson.h:8222: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 number_buffer[24]; data/simdjson-0.6.1/singleheader/simdjson.h:8625:48: [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. extern SIMDJSON_DLLIMPORTEXPORT const unsigned char BitsSetTable256mul2[256]; data/simdjson-0.6.1/singleheader/simdjson.h:9516:88: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson_really_inline uint32_t string_to_uint32(const char* str) { uint32_t val; std::memcpy(&val, str, sizeof(uint32_t)); return val; } data/simdjson-0.6.1/singleheader/simdjson.h:9525:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&srcval, src, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.h:9773: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(&val, chars, sizeof(uint64_t)); data/simdjson-0.6.1/singleheader/simdjson.h:10095: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(&val, chars, 8); data/simdjson-0.6.1/singleheader/simdjson.h:13038: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(tmpbuf, json, len); data/simdjson-0.6.1/singleheader/simdjson.h:15334:88: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson_really_inline uint32_t string_to_uint32(const char* str) { uint32_t val; std::memcpy(&val, str, sizeof(uint32_t)); return val; } data/simdjson-0.6.1/singleheader/simdjson.h:15343:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&srcval, src, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.h:15916: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(&val, chars, 8); data/simdjson-0.6.1/singleheader/simdjson.h:18859: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(tmpbuf, json, len); data/simdjson-0.6.1/singleheader/simdjson.h:21107:88: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson_really_inline uint32_t string_to_uint32(const char* str) { uint32_t val; std::memcpy(&val, str, sizeof(uint32_t)); return val; } data/simdjson-0.6.1/singleheader/simdjson.h:21116:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&srcval, src, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.h:21690: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(&val, chars, 8); data/simdjson-0.6.1/singleheader/simdjson.h:24633: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(tmpbuf, json, len); data/simdjson-0.6.1/singleheader/simdjson.h:26453:88: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. simdjson_really_inline uint32_t string_to_uint32(const char* str) { uint32_t val; std::memcpy(&val, str, sizeof(uint32_t)); return val; } data/simdjson-0.6.1/singleheader/simdjson.h:26462:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&srcval, src, sizeof(uint32_t)); data/simdjson-0.6.1/singleheader/simdjson.h:27023: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(&val, chars, 8); data/simdjson-0.6.1/singleheader/simdjson.h:29966: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(tmpbuf, json, len); data/simdjson-0.6.1/src/fallback/dom_parser_implementation.cpp:257:7: [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(&v1, data + pos, sizeof(uint64_t)); data/simdjson-0.6.1/src/fallback/dom_parser_implementation.cpp:259:7: [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(&v2, data + pos + sizeof(uint64_t), sizeof(uint64_t)); data/simdjson-0.6.1/src/from_chars.cpp:481:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&value, &word, sizeof(double)); data/simdjson-0.6.1/src/generic/stage1/buf_block_reader.h:81:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dst, buf + idx, len - idx); data/simdjson-0.6.1/src/generic/stage1/json_minifier.h:85: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(guarded_dst, out_block, to_write); data/simdjson-0.6.1/src/generic/stage2/tape_builder.h:182:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(copy, value, iter.remaining_len()); data/simdjson-0.6.1/src/generic/stage2/tape_builder.h:274: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(current_string_buf_loc, &str_length, sizeof(uint32_t)); data/simdjson-0.6.1/src/generic/stage2/tape_writer.h:94: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(next_tape_loc, &val2, sizeof(val2)); data/simdjson-0.6.1/src/internal/simdprune_tables.cpp:7:42: [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. SIMDJSON_DLLIMPORTEXPORT const unsigned char BitsSetTable256mul2[256] = { data/simdjson-0.6.1/src/to_chars.cpp:30:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&target, &source, sizeof(Source)); data/simdjson-0.6.1/tests/allparserscheckfile.cpp:88: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/tests/allparserscheckfile.cpp:140: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/tests/allparserscheckfile.cpp:147: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(buffer, p.data(), p.size()); data/simdjson-0.6.1/tests/basictests.cpp:135:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/basictests.cpp:232:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/basictests.cpp:397:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&empty_batches_ndjson[BATCH_SIZE*3+2], "1", 1); data/simdjson-0.6.1/tests/basictests.cpp:398:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&empty_batches_ndjson[BATCH_SIZE*10+4], "2", 1); data/simdjson-0.6.1/tests/basictests.cpp:399:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&empty_batches_ndjson[BATCH_SIZE*11+6], "3", 1); data/simdjson-0.6.1/tests/basictests.cpp:1552: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 output[1]; data/simdjson-0.6.1/tests/compilation_failure_tests/dangling_parser_parse_uchar.cpp:8:11: [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. const char buf[128]={}; data/simdjson-0.6.1/tests/document_stream_tests.cpp:241:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/document_stream_tests.cpp:281:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/document_tests.cpp:113:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/integer_tests.cpp: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. char buf[4096]; \ data/simdjson-0.6.1/tests/ondemand/ondemand_basictests.cpp:206:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/ondemand/ondemand_basictests.cpp:303:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/simdjson-0.6.1/tests/random_string_number_tests.cpp:137: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 buffer[1024]; // large buffer (can't overflow) data/simdjson-0.6.1/tests/readme_examples.cpp:339:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(padded_json_copy.get(), json, json_len); data/simdjson-0.6.1/windows/getopt.h:210:6: [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 **) nargv)[pos] = nargv[cstart]; data/simdjson-0.6.1/windows/getopt.h:212:6: [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 **)nargv)[cstart] = swap; data/simdjson-0.6.1/windows/toni_ronnko_dirent.h:237:3: [2] (buffer) wchar_t: 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. wchar_t d_name[PATH_MAX + 1]; data/simdjson-0.6.1/windows/toni_ronnko_dirent.h:277: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 d_name[PATH_MAX + 1]; data/simdjson-0.6.1/windows/toni_ronnko_dirent.h:659:5: [2] (buffer) wchar_t: 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. wchar_t wname[PATH_MAX + 1]; data/simdjson-0.6.1/benchmark/benchmarker.h:449:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* filename_copy = (char*)malloc(strlen(filename)+1); data/simdjson-0.6.1/benchmark/benchmarker.h:460: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). if (strlen(base) >= 5 && !strcmp(base+strlen(base)-5, ".json")) { data/simdjson-0.6.1/benchmark/benchmarker.h:460: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). if (strlen(base) >= 5 && !strcmp(base+strlen(base)-5, ".json")) { data/simdjson-0.6.1/benchmark/benchmarker.h:461:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). base[strlen(base)-5] = '\0'; data/simdjson-0.6.1/benchmark/benchmarker.h:486:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). printf("%s\n", string(strlen(filename), '=').c_str()); data/simdjson-0.6.1/benchmark/linux/linux-perf-events.h:88:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, temp_result_vec.data(), temp_result_vec.size() * 8) == -1) { data/simdjson-0.6.1/benchmark/partial_tweets/sax_tweet_reader_visitor.h:298:28: [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). add("\"statuses\"", std::strlen("\"statuses\""), containers::top_object, field_type::array, 0); // { "statuses": [...] data/simdjson-0.6.1/benchmark/partial_tweets/sax_tweet_reader_visitor.h:299:59: [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). #define TWEET_FIELD(KEY, TYPE) add("\"" #KEY "\"", std::strlen("\"" #KEY "\""), containers::tweet, TYPE, offsetof(tweet, KEY)); data/simdjson-0.6.1/benchmark/partial_tweets/sax_tweet_reader_visitor.h:308: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). #define USER_FIELD(KEY, TYPE) add("\"" #KEY "\"", std::strlen("\"" #KEY "\""), containers::user, TYPE, offsetof(tweet, user)+offsetof(twitter_user, KEY)); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:2603: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). *length = static_cast<unsigned>(strlen(prefixed)); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:2624: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). size_t size = (length == 0) ? strlen(value) : length; data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:2883:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value, static_cast<unsigned>(strlen(value))); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3532:39: [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(otherComment.comment_)); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3550: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). CZString actualKey(key, static_cast<unsigned>(strlen(key)), data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3602:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Value const* found = find(key, key + strlen(key)); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3615: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 resolveReference(key, key + strlen(key)); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3653: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). return get(key, key + strlen(key), defaultValue); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3678:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return removeMember(key, key + strlen(key), removed); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3689:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CZString actualKey(key, unsigned(strlen(key)), CZString::noDuplication); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3730: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). return isMember(key, key + strlen(key)); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:3921: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). setComment(comment, strlen(comment), placement); data/simdjson-0.6.1/dependencies/jsoncppdist/jsoncpp.cpp:4504: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). return valueToQuotedStringN(value, static_cast<unsigned int>(strlen(value))); data/simdjson-0.6.1/fuzz/main.cpp:19:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in.read(buf.data(), static_cast<long>(buf.size())); data/simdjson-0.6.1/include/simdjson/generic/ondemand/logger-inl.h:55:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LOG_EVENT_LEN - indent - int(strlen(title_prefix)), title data/simdjson-0.6.1/singleheader/simdjson.cpp:3857:95: [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). printf("| %*s%s%-*s ", log_depth*2, "", title_prefix, LOG_EVENT_LEN - log_depth*2 - int(strlen(title_prefix)), title); data/simdjson-0.6.1/singleheader/simdjson.cpp:5131:95: [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). printf("| %*s%s%-*s ", log_depth*2, "", title_prefix, LOG_EVENT_LEN - log_depth*2 - int(strlen(title_prefix)), title); data/simdjson-0.6.1/singleheader/simdjson.cpp:7116:95: [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). printf("| %*s%s%-*s ", log_depth*2, "", title_prefix, LOG_EVENT_LEN - log_depth*2 - int(strlen(title_prefix)), title); data/simdjson-0.6.1/singleheader/simdjson.cpp:9126:95: [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). printf("| %*s%s%-*s ", log_depth*2, "", title_prefix, LOG_EVENT_LEN - log_depth*2 - int(strlen(title_prefix)), title); data/simdjson-0.6.1/singleheader/simdjson.h:12670:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LOG_EVENT_LEN - indent - int(strlen(title_prefix)), title data/simdjson-0.6.1/singleheader/simdjson.h:18491:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LOG_EVENT_LEN - indent - int(strlen(title_prefix)), title data/simdjson-0.6.1/singleheader/simdjson.h:24265:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LOG_EVENT_LEN - indent - int(strlen(title_prefix)), title data/simdjson-0.6.1/singleheader/simdjson.h:29598:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LOG_EVENT_LEN - indent - int(strlen(title_prefix)), title data/simdjson-0.6.1/src/generic/stage2/logger.h:51:95: [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). printf("| %*s%s%-*s ", log_depth*2, "", title_prefix, LOG_EVENT_LEN - log_depth*2 - int(strlen(title_prefix)), title); data/simdjson-0.6.1/tests/jsoncheck.cpp:26: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). size_t len_pre = std::strlen(pre), len_str = std::strlen(str); data/simdjson-0.6.1/tests/jsoncheck.cpp:26:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_pre = std::strlen(pre), len_str = std::strlen(str); data/simdjson-0.6.1/tests/jsoncheck.cpp:37: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 dirlen = std::strlen(dirname); data/simdjson-0.6.1/tests/jsoncheck.cpp:53: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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/jsoncheck.cpp:53:52: [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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/jsoncheck.cpp:59:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t namelen = std::strlen(name); data/simdjson-0.6.1/tests/minefieldcheck.cpp:24: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). size_t len_pre = std::strlen(pre), len_str = std::strlen(str); data/simdjson-0.6.1/tests/minefieldcheck.cpp:24:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_pre = std::strlen(pre), len_str = std::strlen(str); data/simdjson-0.6.1/tests/minefieldcheck.cpp:35: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 dirlen = std::strlen(dirname); data/simdjson-0.6.1/tests/minefieldcheck.cpp:51: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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/minefieldcheck.cpp:51:52: [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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/minefieldcheck.cpp:57:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t namelen = std::strlen(name); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:87: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 lenpre = std::strlen(pre); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:211: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 dirlen = std::strlen(dirname); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:222: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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:222:52: [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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/numberparsingcheck.cpp:226:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filelen = std::strlen(name); data/simdjson-0.6.1/tests/parse_many_test.cpp:25: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). size_t len_pre = std::strlen(pre), len_str = std::strlen(str); data/simdjson-0.6.1/tests/parse_many_test.cpp:25:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len_pre = std::strlen(pre), len_str = std::strlen(str); data/simdjson-0.6.1/tests/parse_many_test.cpp:39: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). size_t dirlen = std::strlen(dirname); data/simdjson-0.6.1/tests/parse_many_test.cpp:55: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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/parse_many_test.cpp:55:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/parse_many_test.cpp:66: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). size_t namelen = std::strlen(name); data/simdjson-0.6.1/tests/readme_examples.cpp:278: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 length = std::strlen(some_string); data/simdjson-0.6.1/tests/readme_examples.cpp:287: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). size_t expected_length = std::strlen(expected_string); data/simdjson-0.6.1/tests/readme_examples.cpp:303: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 length = std::strlen(some_string); data/simdjson-0.6.1/tests/readme_examples.cpp:310: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 length = std::strlen(some_string); data/simdjson-0.6.1/tests/readme_examples.cpp:324: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). const size_t json_len = std::strlen(json); data/simdjson-0.6.1/tests/readme_examples.cpp:337: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). const size_t json_len = std::strlen(json); data/simdjson-0.6.1/tests/readme_examples_noexceptions.cpp:162: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). auto error = parser.parse(j, std::strlen(j)) data/simdjson-0.6.1/tests/readme_examples_noexceptions.cpp:171:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). auto error = parser.parse(j,strlen(j)) data/simdjson-0.6.1/tests/stringparsingcheck.cpp:307: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 lenpre = std::strlen(pre), lenstr = std::strlen(str); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:307:51: [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 lenpre = std::strlen(pre), lenstr = std::strlen(str); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:315: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 dirlen = std::strlen(dirname); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:326: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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:326:52: [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). bool needsep = (strlen(dirname) > 1) && (dirname[strlen(dirname) - 1] != '/'); data/simdjson-0.6.1/tests/stringparsingcheck.cpp:330:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filelen = std::strlen(name); data/simdjson-0.6.1/tests/unicode_tests.cpp:227: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). size_t len = std::strlen(goodsequences[i]); data/simdjson-0.6.1/tests/unicode_tests.cpp:234: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). size_t len = std::strlen(badsequences[i]); data/simdjson-0.6.1/windows/getopt.h:317: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). current_argv_len = strlen(current_argv); data/simdjson-0.6.1/windows/getopt.h:325: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). if (strlen(long_options[i].name) == current_argv_len) { data/simdjson-0.6.1/windows/toni_ronnko_dirent.h:379:7: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = wcslen(dirname); ANALYSIS SUMMARY: Hits = 286 Lines analyzed = 90181 in approximately 2.41 seconds (37461 lines/second) Physical Source Lines of Code (SLOC) = 57954 Hits@level = [0] 495 [1] 75 [2] 167 [3] 25 [4] 19 [5] 0 Hits@level+ = [0+] 781 [1+] 286 [2+] 211 [3+] 44 [4+] 19 [5+] 0 Hits/KSLOC@level+ = [0+] 13.4762 [1+] 4.93495 [2+] 3.64082 [3+] 0.759223 [4+] 0.327846 [5+] 0 Dot directories skipped = 3 (--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.