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/rapidjson-1.1.0+dfsg2/example/capitalize/capitalize.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/pretty/pretty.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/tutorial/tutorial.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/simplewriter/simplewriter.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/prettyauto/prettyauto.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/filterkeydom/filterkeydom.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/condense/condense.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/parsebyparts/parsebyparts.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/schemavalidator/schemavalidator.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/filterkey/filterkey.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/simplereader/simplereader.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/messagereader/messagereader.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/serialize/serialize.cpp
Examining data/rapidjson-1.1.0+dfsg2/example/simpledom/simpledom.cpp
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/encodings.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/filewritestream.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/prettywriter.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/rapidjson.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/msinttypes/stdint.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/msinttypes/inttypes.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/memorybuffer.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/fwd.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/istreamwrapper.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/diyfp.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/strtod.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/meta.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/stack.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/itoa.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/pow10.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/dtoa.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/ieee754.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/strfunc.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/swap.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/biginteger.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/regex.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/stream.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/memorystream.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/pointer.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/ostreamwrapper.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/error/en.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/error/error.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/stringbuffer.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/encodedstream.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/filereadstream.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/allocators.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h
Examining data/rapidjson-1.1.0+dfsg2/include/rapidjson/schema.h
Examining data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.h
Examining data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/strfunctest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/stringbuffertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/strtodtest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/dtoatest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.h
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/prettywritertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/writertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/namespacetest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/itoatest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/encodingstest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/istreamwrappertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/bigintegertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/fwdtest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/ostreamwrappertest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/allocatorstest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/regextest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp
Examining data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp

FINAL RESULTS:

data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:47:43:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        return WriteNumberElement(buffer, sprintf(buffer, "%" PRId64, i));
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:52:43:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        return WriteNumberElement(buffer, sprintf(buffer, "%" PRIu64, i));
data/rapidjson-1.1.0+dfsg2/example/tutorial/tutorial.cpp:125:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        int len = sprintf(buffer2, "%s %s", "Milo", "Yip");  // synthetic example of dynamically created string.
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:833:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buffer, "%" PRIi64, x);
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:846:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buffer, "%" PRIi64, x);
data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.h:137:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(filename, "%s/%s", typespaths[i], typesfilenames[j]);
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:31:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s%s", paths[i], filename);
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:95:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(filename, "jsonschema/tests/draft4/%s", filenames[i]);
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:157:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s/%s", paths[i], filename);
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:54:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buffer, "%s/%s", paths[i], filename);
data/rapidjson-1.1.0+dfsg2/test/unittest/istreamwrappertest.cpp:116:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s/%s", paths[i], filename);
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:428:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s", str); \
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:988:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%s%s", paths[i], filename);
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1177:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(filename, "jsonschema/tests/draft4/%s", filenames[i]);
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:123:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(backup, json); // insitu parsing will overwrite buffer, so need to backup first
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:147:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(backup, json); // insitu parsing will overwrite buffer, so need to backup first
data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.h:82:16:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    filename = tmpnam(filename);
data/rapidjson-1.1.0+dfsg2/example/capitalize/capitalize.cpp:51: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/capitalize/capitalize.cpp:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/condense/condense.cpp:17: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/condense/condense.cpp:21: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 writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/filterkey/filterkey.cpp:116: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/filterkey/filterkey.cpp:120: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 writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/filterkeydom/filterkeydom.cpp:147: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/filterkeydom/filterkeydom.cpp:163: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 writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:36:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[12];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:37:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        return WriteNumberElement(buffer, sprintf(buffer, "%d", i));
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:41:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[11];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:42:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        return WriteNumberElement(buffer, sprintf(buffer, "%u", i));
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:46:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[21];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:51:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[21];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:56:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[30];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:57:43:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        return WriteNumberElement(buffer, sprintf(buffer, "%.17g", d));
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:192: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/jsonx/jsonx.cpp:196: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 writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/pretty/pretty.cpp:15: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/pretty/pretty.cpp:19: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 writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/prettyauto/prettyauto.cpp:28: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 readBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/prettyauto/prettyauto.cpp:33: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 writeBuffer[65536];
data/rapidjson-1.1.0+dfsg2/example/schemavalidator/schemavalidator.cpp:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/rapidjson-1.1.0+dfsg2/example/schemavalidator/schemavalidator.cpp:23:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen(argv[1], "r");
data/rapidjson-1.1.0+dfsg2/example/tutorial/tutorial.cpp:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[sizeof(json)];
data/rapidjson-1.1.0+dfsg2/example/tutorial/tutorial.cpp:27: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, json, sizeof(json));
data/rapidjson-1.1.0+dfsg2/example/tutorial/tutorial.cpp:124: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 buffer2[10];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/allocators.h:217:22:  [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(newBuffer, originalPtr, originalSize);
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1060:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            static char buffer[sizeof(GenericValue)];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1847: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 payload[sizeof(SizeType) * 2 + 6];     // 2 x SizeType + lower 48-bit pointer
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1849: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 payload[sizeof(SizeType) * 2 + sizeof(void*) + 6]; // 6 padding bytes
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1851: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 payload[sizeof(SizeType) * 2 + sizeof(void*) + 2]; // 2 padding bytes
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1884:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char padding[4];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1888:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char padding2[4];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1892:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char padding[4];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1896:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char padding2[4];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1939: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(static_cast<void*>(e), values, count * sizeof(GenericValue));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1952: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(static_cast<void*>(m), members, count * sizeof(Member));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/document.h:1979:14:  [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(str, s, s.length * sizeof(Ch));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/biginteger.h:33:14:  [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(digits_, rhs.digits_, count_ * sizeof(Type));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/biginteger.h:59: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(digits_, rhs.digits_, count_ * sizeof(Type));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/itoa.h:24:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char cDigitsLut[200] = {
data/rapidjson-1.1.0+dfsg2/include/rapidjson/internal/regex.h:477:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(s, &GetState(src.minIndex), count * sizeof(State));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/pointer.h:215:14:  [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(p, token.name, (token.length + 1) * sizeof(Ch));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/pointer.h:265:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[21];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/pointer.h:771: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(tokens_, rhs.tokens_, rhs.tokenCount_ * sizeof(Token));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/pointer.h:774: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(nameBuffer_, rhs.nameBuffer_, nameBufferSize * sizeof(Ch));
data/rapidjson-1.1.0+dfsg2/include/rapidjson/pointer.h:1030:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            static const char hexDigits[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:297:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char whitespace[16] = " \n\r\t";
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:323:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char whitespace[16] = " \n\r\t";
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:363:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char whitespaces[4][16] = { C16(' '), C16('\n'), C16('\r'), C16('\t') };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:399:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char whitespaces[4][16] = { C16(' '), C16('\n'), C16('\r'), C16('\t') };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:843:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char escape[256] = {
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:928:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:929:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:930:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char space[16]  = { 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19 };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:989:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:990:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:991:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char space[16] = { 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19 };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:1037:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:1038:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:1039:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char space[16] = { 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19 };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:1461:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const unsigned char tokenMap[256] = {
data/rapidjson-1.1.0+dfsg2/include/rapidjson/reader.h:1484:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char G[cIterativeParsingStateCount][kTokenCount] = {
data/rapidjson-1.1.0+dfsg2/include/rapidjson/schema.h:403:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buffer[256u + 24];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/schema.h:1267:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[21];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:282:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[11];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:291:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[10];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:300:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[21];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:309:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[20];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:337:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[25];
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:347:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char escape[256] = {
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:562:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char dquote[16] = { '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"', '\"' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:563:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char bslash[16] = { '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\', '\\' };
data/rapidjson-1.1.0+dfsg2/include/rapidjson/writer.h:564:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char space[16]  = { 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19, 0x19 };
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:346:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char digits[201] =
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:376:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[10];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:400:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[20];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:420:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[10];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:455:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[10];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:488:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[20];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:535:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[10];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:559:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[20];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:639:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[10];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:672:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[20];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:766:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:767:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%d", randval[j]);
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:778:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:779:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%d", randval[j]);
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:780: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 buffer2[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:812:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:831:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:844:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:847: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 buffer2[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/misctest.cpp:879:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.h:81:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                fp = fopen(filename_ = paths[i], "rb");
data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.h:136:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char filename[256];
data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.h:138:36:  [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).
                    if (FILE* fp = fopen(filename, "rb")) {
data/rapidjson-1.1.0+dfsg2/test/perftest/perftest.h:174: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 *types_[7];
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:44:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_);
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:106:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen(filename_, "rb");
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:126:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        int fd = open(filename_, O_RDONLY);
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:155:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        int fd = open(filename_, O_RDONLY);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:71:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_ + 1);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:81:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_ + 1);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:109:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, types_[index], typesLength_[index] + 1);\
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:147:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_ + 1);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:166:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_ + 1);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:175:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_ + 1);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:219:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(temp_, json_, length_ + 1);
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:414:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen(filename_, "rb");
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:415:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[65536];
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:425:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen(filename_, "rb");
data/rapidjson-1.1.0+dfsg2/test/perftest/rapidjsontest.cpp:426:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[65536];
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:32:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(buffer, "rb");
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:90: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 jsonBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:94:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char filename[FILENAME_MAX];
data/rapidjson-1.1.0+dfsg2/test/perftest/schematest.cpp:199: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 validatorBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:102: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, json, length);
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:155:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:158:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = fopen(buffer, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:179:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, json, length);
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:209:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:250:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:356: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 valueBuffer[4096];
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:357: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 parseBuffer[1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/dtoatest.cpp:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[30];
data/rapidjson-1.1.0+dfsg2/test/unittest/dtoatest.cpp:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[30];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:52:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:55: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).
            FILE *fp = fopen(buffer, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:63:50:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *fp = appendPath ? Open(filename) : fopen(filename, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:84:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[16];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:124:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[16];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:166:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char filename[L_tmpnam];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:168:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[16];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:199:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char filename[L_tmpnam];
data/rapidjson-1.1.0+dfsg2/test/unittest/encodedstreamtest.cpp:202:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[16];
data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp:37:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(paths[i], "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp:72:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename_, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp:90: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 filename[L_tmpnam];
data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/filestreamtest.cpp:101:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/istreamwrappertest.cpp:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/istreamwrappertest.cpp:117:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fs.open(buffer, ios_base::in | ios_base::binary);
data/rapidjson-1.1.0+dfsg2/test/unittest/itoatest.cpp:59: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 buffer1[Traits<T>::kBufferSize];
data/rapidjson-1.1.0+dfsg2/test/unittest/itoatest.cpp:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer2[Traits<T>::kBufferSize];
data/rapidjson-1.1.0+dfsg2/test/unittest/itoatest.cpp:95: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 temp[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/itoatest.cpp:119: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 temp[20];
data/rapidjson-1.1.0+dfsg2/test/unittest/ostreamwrappertest.cpp:66: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 filename[L_tmpnam];
data/rapidjson-1.1.0+dfsg2/test/unittest/ostreamwrappertest.cpp:79:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:682:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:683:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:734:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:735:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:793:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:794:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:852:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:853:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1022:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1023:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1075:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1076:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1127:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1128:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1179:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1180:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1235:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1236:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1292:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1293:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1348:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1349:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1404:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/rapidjson-1.1.0+dfsg2/test/unittest/pointertest.cpp:1405:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer, "World");
data/rapidjson-1.1.0+dfsg2/test/unittest/prettywritertest.cpp:163: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 filename[L_tmpnam];
data/rapidjson-1.1.0+dfsg2/test/unittest/prettywritertest.cpp:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[16];
data/rapidjson-1.1.0+dfsg2/test/unittest/prettywritertest.cpp:173:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:149:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:172:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:295: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 n1e308[310];   // '1' followed by 308 '0'
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:330:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:356:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:405:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[32];
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:427:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1001]; \
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:440: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 n1e309[311];   // '1' followed by 309 '0'
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:473:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(const_cast<typename Encoding::Ch*>(str_), str, (length + 1) * sizeof(typename Encoding::Ch));
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:769:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1001]; \
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:937:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1001]; \
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:1815:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1001]; \
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:985:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:989:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(buffer, "rb");
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1072:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char jsonBuffer[8192];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1080:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char stackBuffer[4096];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1119: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 documentBuffer_[16384];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1120: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 schemaBuffer_[128u * 1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1164: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 jsonBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1165: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 documentBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1166: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 documentStackBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1167: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 schemaBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1168: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 validatorBuffer[65536];
data/rapidjson-1.1.0+dfsg2/test/unittest/schematest.cpp:1176: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 filename[FILENAME_MAX];
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:51:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1025];
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:78:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1024];
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:100:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, str, length + 1);
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024 + 5 + 32];
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:108:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1024u + 5 + 32];
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:109: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 backup[1024u + 5 + 32];
data/rapidjson-1.1.0+dfsg2/test/unittest/simdtest.cpp:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[2048 + 1 + 32];
data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.h:76: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, str, bufferSize);
data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.h:89:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(filename, "wb");
data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.h:91:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(filename, "/tmp/fileXXXXXX");
data/rapidjson-1.1.0+dfsg2/test/unittest/unittest.h:92:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    int fd = mkstemp(filename);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1507: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 name[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1508:45:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        Value n(name, static_cast<SizeType>(sprintf(name, "%d", i)), allocator);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1515:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1516:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(name, "%d", i);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1526:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1527:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(name, "%d", i);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1585: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 name1[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1586:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(name1, "%d", i);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1593:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name2[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1594:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(name2, "%d", j);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1606: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 name1[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1607:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(name1, "%d", i);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1610:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char name2[10];
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1611:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(name2, "%d", j);
data/rapidjson-1.1.0+dfsg2/test/unittest/writertest.cpp:101: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 buffer2[sizeof(json) + 32];
data/rapidjson-1.1.0+dfsg2/test/unittest/writertest.cpp:106:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, json, sizeof(json));
data/rapidjson-1.1.0+dfsg2/example/filterkey/filterkey.cpp:125:94:  [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).
    FilterKeyHandler<Writer<FileWriteStream> > filter(writer, argv[1], static_cast<SizeType>(strlen(argv[1])));
data/rapidjson-1.1.0+dfsg2/example/filterkeydom/filterkeydom.cpp:151:79:  [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).
    FilterKeyReader<FileReadStream> reader(is, argv[1], static_cast<SizeType>(strlen(argv[1])));
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:70:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
TEST_F(Platform, strlen) {
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:72:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t l = strlen(json_);
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:92:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t l = strlen(whitespace_);
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:114:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
TEST_F(Platform, read) {
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:124:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
TEST_F(Platform, read) {
data/rapidjson-1.1.0+dfsg2/test/perftest/platformtest.cpp:128:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ASSERT_EQ(length_, read(fd, temp_, length_));
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:100:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t length = strlen(json);
data/rapidjson-1.1.0+dfsg2/test/unittest/documenttest.cpp:177:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t length = strlen(json);
data/rapidjson-1.1.0+dfsg2/test/unittest/ostreamwrappertest.cpp:81:41:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        EXPECT_EQ(*p, static_cast<char>(fgetc(fp)));
data/rapidjson-1.1.0+dfsg2/test/unittest/prettywritertest.cpp:194: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).
    writer.RawValue(json, strlen(json), kArrayType);
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:29:26:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
RAPIDJSON_DIAG_OFF(float-equal)
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:770:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, str, 1000); \
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:938:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, str, 1000); \
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:1561: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).
        , expected_len_(strlen(expected)) {}
data/rapidjson-1.1.0+dfsg2/test/unittest/readertest.cpp:1816:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, str, 1000); \
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:738:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(mstr,"Hello", sizeof(mstr));
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:802:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    w.SetString(s, static_cast<SizeType>(strlen(s)), allocator);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1589: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).
        Value name(name1, static_cast<SizeType>(strlen(name1)), allocator);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1596: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).
            Value name3(name2, static_cast<SizeType>(strlen(name2)), allocator);
data/rapidjson-1.1.0+dfsg2/test/unittest/valuetest.cpp:1645:70:  [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 rapidjson::SizeType len = static_cast<rapidjson::SizeType>(strlen(str));
data/rapidjson-1.1.0+dfsg2/test/unittest/writertest.cpp:493: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).
    writer.RawValue(json, strlen(json), kArrayType);

ANALYSIS SUMMARY:

Hits = 270
Lines analyzed = 29707 in approximately 0.87 seconds (34259 lines/second)
Physical Source Lines of Code (SLOC) = 21289
Hits@level = [0]  86 [1]  23 [2] 230 [3]   1 [4]  16 [5]   0
Hits@level+ = [0+] 356 [1+] 270 [2+] 247 [3+]  17 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 16.7223 [1+] 12.6826 [2+] 11.6022 [3+] 0.798534 [4+] 0.751562 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.