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/graphite2-1.3.14/contrib/perl/ppport.h
Examining data/graphite2-1.3.14/gr2fonttest/UtfCodec.cpp
Examining data/graphite2-1.3.14/gr2fonttest/UtfCodec.h
Examining data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp
Examining data/graphite2-1.3.14/include/graphite2/Font.h
Examining data/graphite2-1.3.14/include/graphite2/Log.h
Examining data/graphite2-1.3.14/include/graphite2/Segment.h
Examining data/graphite2-1.3.14/include/graphite2/Types.h
Examining data/graphite2-1.3.14/src/CmapCache.cpp
Examining data/graphite2-1.3.14/src/Code.cpp
Examining data/graphite2-1.3.14/src/Collider.cpp
Examining data/graphite2-1.3.14/src/Decompressor.cpp
Examining data/graphite2-1.3.14/src/Face.cpp
Examining data/graphite2-1.3.14/src/FeatureMap.cpp
Examining data/graphite2-1.3.14/src/FileFace.cpp
Examining data/graphite2-1.3.14/src/Font.cpp
Examining data/graphite2-1.3.14/src/GlyphCache.cpp
Examining data/graphite2-1.3.14/src/GlyphFace.cpp
Examining data/graphite2-1.3.14/src/Intervals.cpp
Examining data/graphite2-1.3.14/src/Justifier.cpp
Examining data/graphite2-1.3.14/src/NameTable.cpp
Examining data/graphite2-1.3.14/src/Pass.cpp
Examining data/graphite2-1.3.14/src/Position.cpp
Examining data/graphite2-1.3.14/src/Segment.cpp
Examining data/graphite2-1.3.14/src/Silf.cpp
Examining data/graphite2-1.3.14/src/Slot.cpp
Examining data/graphite2-1.3.14/src/Sparse.cpp
Examining data/graphite2-1.3.14/src/TtfUtil.cpp
Examining data/graphite2-1.3.14/src/UtfCodec.cpp
Examining data/graphite2-1.3.14/src/call_machine.cpp
Examining data/graphite2-1.3.14/src/direct_machine.cpp
Examining data/graphite2-1.3.14/src/gr_char_info.cpp
Examining data/graphite2-1.3.14/src/gr_face.cpp
Examining data/graphite2-1.3.14/src/gr_features.cpp
Examining data/graphite2-1.3.14/src/gr_font.cpp
Examining data/graphite2-1.3.14/src/gr_logging.cpp
Examining data/graphite2-1.3.14/src/gr_segment.cpp
Examining data/graphite2-1.3.14/src/gr_slot.cpp
Examining data/graphite2-1.3.14/src/inc/CharInfo.h
Examining data/graphite2-1.3.14/src/inc/CmapCache.h
Examining data/graphite2-1.3.14/src/inc/Code.h
Examining data/graphite2-1.3.14/src/inc/Collider.h
Examining data/graphite2-1.3.14/src/inc/Compression.h
Examining data/graphite2-1.3.14/src/inc/Decompressor.h
Examining data/graphite2-1.3.14/src/inc/Endian.h
Examining data/graphite2-1.3.14/src/inc/Error.h
Examining data/graphite2-1.3.14/src/inc/Face.h
Examining data/graphite2-1.3.14/src/inc/FeatureMap.h
Examining data/graphite2-1.3.14/src/inc/FeatureVal.h
Examining data/graphite2-1.3.14/src/inc/FileFace.h
Examining data/graphite2-1.3.14/src/inc/Font.h
Examining data/graphite2-1.3.14/src/inc/GlyphCache.h
Examining data/graphite2-1.3.14/src/inc/GlyphFace.h
Examining data/graphite2-1.3.14/src/inc/Intervals.h
Examining data/graphite2-1.3.14/src/inc/List.h
Examining data/graphite2-1.3.14/src/inc/Machine.h
Examining data/graphite2-1.3.14/src/inc/Main.h
Examining data/graphite2-1.3.14/src/inc/NameTable.h
Examining data/graphite2-1.3.14/src/inc/Pass.h
Examining data/graphite2-1.3.14/src/inc/Position.h
Examining data/graphite2-1.3.14/src/inc/Rule.h
Examining data/graphite2-1.3.14/src/inc/Segment.h
Examining data/graphite2-1.3.14/src/inc/Silf.h
Examining data/graphite2-1.3.14/src/inc/Slot.h
Examining data/graphite2-1.3.14/src/inc/Sparse.h
Examining data/graphite2-1.3.14/src/inc/TtfTypes.h
Examining data/graphite2-1.3.14/src/inc/TtfUtil.h
Examining data/graphite2-1.3.14/src/inc/UtfCodec.h
Examining data/graphite2-1.3.14/src/inc/bits.h
Examining data/graphite2-1.3.14/src/inc/debug.h
Examining data/graphite2-1.3.14/src/inc/json.h
Examining data/graphite2-1.3.14/src/inc/locale2lcid.h
Examining data/graphite2-1.3.14/src/inc/opcode_table.h
Examining data/graphite2-1.3.14/src/inc/opcodes.h
Examining data/graphite2-1.3.14/src/json.cpp
Examining data/graphite2-1.3.14/tests/bittwiddling/bits.cpp
Examining data/graphite2-1.3.14/tests/comparerenderer/CompareRenderer.cpp
Examining data/graphite2-1.3.14/tests/comparerenderer/FeatureParser.h
Examining data/graphite2-1.3.14/tests/comparerenderer/Gr2Renderer.h
Examining data/graphite2-1.3.14/tests/comparerenderer/RenderedLine.h
Examining data/graphite2-1.3.14/tests/comparerenderer/Renderer.h
Examining data/graphite2-1.3.14/tests/comparerenderer/RendererOptions.h
Examining data/graphite2-1.3.14/tests/endian/endiantest.cpp
Examining data/graphite2-1.3.14/tests/examples/cluster.c
Examining data/graphite2-1.3.14/tests/examples/features.c
Examining data/graphite2-1.3.14/tests/examples/freetype.c
Examining data/graphite2-1.3.14/tests/examples/linebreak.c
Examining data/graphite2-1.3.14/tests/examples/simple.c
Examining data/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp
Examining data/graphite2-1.3.14/tests/fuzz-tests/gr-fuzzer-font.cpp
Examining data/graphite2-1.3.14/tests/fuzz-tests/gr-fuzzer-segment.cpp
Examining data/graphite2-1.3.14/tests/fuzz-tests/graphite-fuzzer.hpp
Examining data/graphite2-1.3.14/tests/grlist/grlisttest.cpp
Examining data/graphite2-1.3.14/tests/grlist/intervalsettest.cpp
Examining data/graphite2-1.3.14/tests/json/jsontest.cpp
Examining data/graphite2-1.3.14/tests/nametabletest/nametabletest.cpp
Examining data/graphite2-1.3.14/tests/sparsetest/sparsetest.cpp
Examining data/graphite2-1.3.14/tests/utftest/utftest.cpp
Examining data/graphite2-1.3.14/tests/vm/basic_test.cpp

FINAL RESULTS:

data/graphite2-1.3.14/contrib/perl/ppport.h:6695:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    retval = vsnprintf(buffer, len, format, ap);
data/graphite2-1.3.14/contrib/perl/ppport.h:6697:14:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    retval = vsprintf(buffer, format, ap);
data/graphite2-1.3.14/contrib/perl/ppport.h:6726:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buffer, pat, args);
data/graphite2-1.3.14/src/json.cpp:142:69:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
json & json::operator << (json::integer d) throw()  { context(seq); fprintf(_stream, FORMAT_INTMAX, intmax_t(d)); return *this; }
data/graphite2-1.3.14/src/json.cpp:143:71:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
json & json::operator << (json::integer_u d) throw()  { context(seq); fprintf(_stream, FORMAT_UINTMAX, uintmax_t(d)); return *this; }
data/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:266:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, msg, b);
data/graphite2-1.3.14/tests/featuremap/featuremaptest.cpp:277:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, msg, a, T(b));
data/graphite2-1.3.14/src/inc/json.h:72:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    void *getenv(unsigned int index) const { return _env[index]; }
data/graphite2-1.3.14/tests/vm/basic_test.cpp:157:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(static_cast<unsigned int>(time(NULL)));
data/graphite2-1.3.14/contrib/perl/ppport.h:3667:42:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define CopyD(s,d,n,t)                 memcpy((char*)(d),(char*)(s), (n) * sizeof(t))
data/graphite2-1.3.14/contrib/perl/ppport.h:6550:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		&& (xdigit = strchr((char *) PL_hexdigit, s[1])))
data/graphite2-1.3.14/contrib/perl/ppport.h:6772: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(dst + used, src, copy);
data/graphite2-1.3.14/contrib/perl/ppport.h:6801: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(dst, src, copy);
data/graphite2-1.3.14/contrib/perl/ppport.h:6893: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 octbuf[32] = "%123456789ABCDF";
data/graphite2-1.3.14/contrib/perl/ppport.h:6963:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char tmp[2];
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:70:10:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atol(text);
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:291:19:  [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).
            log = fopen(argv[a], "w");
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:577:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                value = atoi(valueText);
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:596:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    feat_id = atoi(name);
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:613:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            value = atoi(valueText);
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:633:27:  [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 * testfile = fopen(fileName, "rb");
data/graphite2-1.3.14/src/Code.cpp:573: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(_data, bc, param_sz * sizeof(byte));
data/graphite2-1.3.14/src/Face.cpp:67: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(&m_ops, &ops, min(sizeof m_ops, ops.size));
data/graphite2-1.3.14/src/FileFace.cpp:36:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
: _file(fopen(filename, "rb")),
data/graphite2-1.3.14/src/Font.cpp:41: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(&m_ops, ops, min(sizeof m_ops, ops->size));
data/graphite2-1.3.14/src/Intervals.cpp:231:9:  [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).
    if (open && localc > best_cost) return true;
data/graphite2-1.3.14/src/NameTable.cpp:42: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(pdata, data, length);
data/graphite2-1.3.14/src/Slot.cpp:76: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(m_userAttr, orig.m_userAttr, sizeAttr * sizeof(*m_userAttr));
data/graphite2-1.3.14/src/Slot.cpp:78: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(m_justs, orig.m_justs, SlotJustify::size_of(justLevels));
data/graphite2-1.3.14/src/TtfUtil.cpp:81:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char * rgPostName[kcPostNames] = {
data/graphite2-1.3.14/src/gr_logging.cpp:56:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int n = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, log_path, -1, 0, 0);
data/graphite2-1.3.14/src/gr_logging.cpp:62:22:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (wlog_path && MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, log_path, -1, wlog_path, n))
data/graphite2-1.3.14/src/gr_logging.cpp:67:17:  [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 *log = fopen(log_path, "wt");
data/graphite2-1.3.14/src/gr_logging.cpp:256:5:  [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, "%.4x-%.2x-%.4hx", uint16(s >> 16), uint16(p ? p->userAttrs()[ds.first->silf()->numUser()] : 0), uint16(s));
data/graphite2-1.3.14/src/gr_logging.cpp:263:5:  [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, "%.4x-%.2x-%.4hx", uint16(s >> 16), 0, uint16(s));
data/graphite2-1.3.14/src/inc/Compression.h:58: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(d, s, S);
data/graphite2-1.3.14/src/inc/Intervals.h:60:17:  [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).
        bool    open;
data/graphite2-1.3.14/src/inc/Intervals.h:155:46:  [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).
: x(x_), xm(xm_), c(c_), sm(smi), smx(smxi), open(false)
data/graphite2-1.3.14/src/inc/Machine.h:132: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            name[MAX_NAME_LEN];
data/graphite2-1.3.14/src/inc/TtfUtil.h:58:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    Tag(const char n[5]) throw()            : _v(TTF_TAG(n[0],n[1],n[2],n[3])) {}
data/graphite2-1.3.14/src/inc/debug.h:50: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 name[16];
data/graphite2-1.3.14/src/inc/json.h:50: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            _contexts[128], // context stack
data/graphite2-1.3.14/src/inc/locale2lcid.h:39: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 maLangStr[4];
data/graphite2-1.3.14/src/inc/locale2lcid.h:40: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 maCountry[3];
data/graphite2-1.3.14/src/inc/opcodes.h:257: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(tempUserAttrs, ref->userAttrs(), seg.numAttrs() * sizeof(uint16));
data/graphite2-1.3.14/src/inc/opcodes.h:258: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(is, ref, sizeof(Slot));
data/graphite2-1.3.14/src/inc/opcodes.h:653: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(newSlot, is, sizeof(Slot));
data/graphite2-1.3.14/src/inc/opcodes.h:654: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(tempUserAttrs, is->userAttrs(), seg.numAttrs() * sizeof(uint16));
data/graphite2-1.3.14/tests/comparerenderer/CompareRenderer.cpp:64:27:  [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 * file = fopen(testFile, "rb");
data/graphite2-1.3.14/tests/comparerenderer/CompareRenderer.cpp:308:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        log = fopen(rendererOptions[OptLogFile].get(argv), "wb");
data/graphite2-1.3.14/tests/comparerenderer/FeatureParser.h:29:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char uChar[4];
data/graphite2-1.3.14/tests/comparerenderer/FeatureParser.h:94:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    value = atoi(valueText);
data/graphite2-1.3.14/tests/comparerenderer/FeatureParser.h:115:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        featId.uId = atoi(name);
data/graphite2-1.3.14/tests/comparerenderer/FeatureParser.h:134:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                value = atoi(valueText);
data/graphite2-1.3.14/tests/comparerenderer/RenderedLine.h:151:17:  [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(newGlyphs, m_glyphs, m_numGlyphs * sizeof(GlyphInfo));
data/graphite2-1.3.14/tests/comparerenderer/RendererOptions.h:49:64:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int getInt(char ** argv) const { return (m_position > -1)? atoi(argv[m_position]) : 0; }
data/graphite2-1.3.14/tests/endian/endiantest.cpp:138:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	const size_t rounds = 1UL << atoi(argv[1]);
data/graphite2-1.3.14/tests/examples/cluster.c:74:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    log = fopen("cluster.log", "w");
data/graphite2-1.3.14/tests/examples/features.c:10: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 idtag[5] = {0, 0, 0, 0, 0};                                    /*<1>*/
data/graphite2-1.3.14/tests/examples/linebreak.c:25:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int width = atoi(argv[2]) * dpi / 72;  /* linewidth in points */
data/graphite2-1.3.14/tests/fuzz-tests/graphite-fuzzer.hpp:134:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(&params, data + size - sizeof params, sizeof params);
data/graphite2-1.3.14/tests/fuzz-tests/graphite-fuzzer.hpp:148:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(block.get(),
data/graphite2-1.3.14/tests/json/jsontest.cpp:35:31:  [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).
	json	jo(argc == 1 ? stdout : fopen(argv[1], "w"));
data/graphite2-1.3.14/tests/nametabletest/nametabletest.cpp:157: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(bigEndian->m_textData, table.m_textData, sizeof(table.m_textData) );
data/graphite2-1.3.14/tests/utftest/utftest.cpp:8:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char str[12];
data/graphite2-1.3.14/tests/vm/basic_test.cpp:68:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        repeats = atoi(argv[2]);
data/graphite2-1.3.14/tests/vm/basic_test.cpp:70:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        copies  = atoi(argv[3]);
data/graphite2-1.3.14/contrib/perl/ppport.h:5160:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));
data/graphite2-1.3.14/contrib/perl/ppport.h:5168:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define sv_vcatpvf(sv, pat, args)  sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
data/graphite2-1.3.14/contrib/perl/ppport.h:5172:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define sv_vsetpvf(sv, pat, args)  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
data/graphite2-1.3.14/contrib/perl/ppport.h:5192:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/graphite2-1.3.14/contrib/perl/ppport.h:5220:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/graphite2-1.3.14/contrib/perl/ppport.h:5241: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).
     sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
data/graphite2-1.3.14/contrib/perl/ppport.h:5263:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/graphite2-1.3.14/contrib/perl/ppport.h:5291:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/graphite2-1.3.14/contrib/perl/ppport.h:5312: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).
     sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
data/graphite2-1.3.14/contrib/perl/ppport.h:5360:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define HvNAMELEN_get(hv)              (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0)
data/graphite2-1.3.14/contrib/perl/ppport.h:6144:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        STRLEN len = strlen(radix);
data/graphite2-1.3.14/contrib/perl/ppport.h:6728:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strlen(buffer);
data/graphite2-1.3.14/contrib/perl/ppport.h:6768:12:  [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).
    used = strlen(dst);
data/graphite2-1.3.14/contrib/perl/ppport.h:6769:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(src);
data/graphite2-1.3.14/contrib/perl/ppport.h:6798:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(src);
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:174:69:  [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).
    dest = static_cast<unsigned int *>(malloc(sizeof(unsigned int)*(strlen(reinterpret_cast<const char *>(src))+1)));
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:561:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!features || strlen(features) == 0)
data/graphite2-1.3.14/gr2fonttest/gr2FontTest.cpp:563:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t featureLength = strlen(features);
data/graphite2-1.3.14/src/Face.cpp:129:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const uint32 version = be::read<uint32>(p);
data/graphite2-1.3.14/src/Face.cpp:133:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numSilf = be::read<uint16>(p);
data/graphite2-1.3.14/src/Face.cpp:143:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const uint32 offset = be::read<uint32>(p),
data/graphite2-1.3.14/src/Face.cpp:318:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const uint32 version = be::read<uint32>(p);    // Table version number.
data/graphite2-1.3.14/src/Face.cpp:321:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const uint32 hdr = be::read<uint32>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:63:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const int16 value = be::read<int16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:64:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ::new (s) FeatureSetting(value, be::read<uint16>(p));
data/graphite2-1.3.14/src/FeatureMap.cpp:109:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const uint32 version = be::read<uint32>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:110:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numFeats = be::read<uint16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:130:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const uint32    label   = version < 0x00020000 ? be::read<uint16>(p) : be::read<uint32>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:130:84:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const uint32    label   = version < 0x00020000 ? be::read<uint16>(p) : be::read<uint32>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:131:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const uint16    num_settings = be::read<uint16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:134:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const uint32    settings_offset = be::read<uint32>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:135:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const uint16    flags  = be::read<uint16>(p),
data/graphite2-1.3.14/src/FeatureMap.cpp:136:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        uiName = be::read<uint16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:205:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (be::read<uint32>(p) != 0x00010000UL) return false;
data/graphite2-1.3.14/src/FeatureMap.cpp:206:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numLanguages = be::read<uint16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:215:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint32 langid = be::read<uint32>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:216:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint16 numSettings = be::read<uint16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:217:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint16 offset = be::read<uint16>(p);
data/graphite2-1.3.14/src/FeatureMap.cpp:226:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            uint32 name = be::read<uint32>(pLSet);
data/graphite2-1.3.14/src/FeatureMap.cpp:227:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            uint16 val = be::read<uint16>(pLSet);
data/graphite2-1.3.14/src/GlyphCache.cpp:280:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int       version = be::read<uint32>(p);
data/graphite2-1.3.14/src/GlyphCache.cpp:281:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const uint16    flags = be::read<uint16>(p);
data/graphite2-1.3.14/src/GlyphCache.cpp:282:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _num_attrs = be::read<uint16>(p);
data/graphite2-1.3.14/src/GlyphCache.cpp:303:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    version = be::read<uint32>(p);
data/graphite2-1.3.14/src/GlyphCache.cpp:311:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unsigned int glatflags = be::read<uint32>(p);
data/graphite2-1.3.14/src/GlyphCache.cpp:387:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            glocs = be::read<uint32>(gloc);
data/graphite2-1.3.14/src/GlyphCache.cpp:395:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            glocs = be::read<uint16>(gloc);
data/graphite2-1.3.14/src/GlyphCache.cpp:408:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            uint16 bmap = be::read<uint16>(p);
data/graphite2-1.3.14/src/GlyphCache.cpp:459:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        glocs = be::read<uint32>(gloc);
data/graphite2-1.3.14/src/GlyphCache.cpp:465:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        glocs = be::read<uint16>(gloc);
data/graphite2-1.3.14/src/GlyphCache.cpp:473:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint16 bmap = be::read<uint16>(p);
data/graphite2-1.3.14/src/NameTable.cpp:158:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        utf16Name[i] = be::read<uint16>(pName);
data/graphite2-1.3.14/src/NameTable.cpp:218:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t localeLength = strlen(bcp47Locale);
data/graphite2-1.3.14/src/NameTable.cpp:225:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint16 numLangEntries = be::read<uint16>(pLangEntries);
data/graphite2-1.3.14/src/NameTable.cpp:240:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        uint16 code = be::read<uint16>(pName);
data/graphite2-1.3.14/src/Pass.cpp:102:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const byte flags = be::read<byte>(p);
data/graphite2-1.3.14/src/Pass.cpp:110:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_iMaxLoop = be::read<byte>(p);
data/graphite2-1.3.14/src/Pass.cpp:113:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numRules = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:116:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const byte * const pcCode = pass_start + be::read<uint32>(p) - subtable_base,
data/graphite2-1.3.14/src/Pass.cpp:117:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               * const rcCode = pass_start + be::read<uint32>(p) - subtable_base,
data/graphite2-1.3.14/src/Pass.cpp:118:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
               * const aCode  = pass_start + be::read<uint32>(p) - subtable_base;
data/graphite2-1.3.14/src/Pass.cpp:120:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numStates = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:121:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numTransition = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:122:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numSuccess = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:123:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numColumns = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:124:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    numRanges = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:154:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_minPreCtxt = be::read<uint8>(p);
data/graphite2-1.3.14/src/Pass.cpp:155:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_maxPreCtxt = be::read<uint8>(p);
data/graphite2-1.3.14/src/Pass.cpp:165:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_colThreshold = be::read<uint8>(p);
data/graphite2-1.3.14/src/Pass.cpp:167:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const size_t pass_constraint_len = be::read<uint16>(p);
data/graphite2-1.3.14/src/Pass.cpp:299:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const ptrdiff_t rn = be::read<uint16>(rule_map);
data/graphite2-1.3.14/src/Pass.cpp:330:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *s = be::read<uint16>(starts);
data/graphite2-1.3.14/src/Pass.cpp:342:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *t = be::read<uint16>(states);
data/graphite2-1.3.14/src/Pass.cpp:355:75:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        RuleEntry * const begin = s < success_begin ? 0 : m_ruleMap + be::read<uint16>(o_rule_map),
data/graphite2-1.3.14/src/Pass.cpp:380:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint16     * ci     = m_cols + be::read<uint16>(ranges),
data/graphite2-1.3.14/src/Pass.cpp:381:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   * ci_end = m_cols + be::read<uint16>(ranges) + 1,
data/graphite2-1.3.14/src/Pass.cpp:382:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                     col    = be::read<uint16>(ranges);
data/graphite2-1.3.14/src/Silf.cpp:109:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const uint16 maxGlyph = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:110:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_silfinfo.extra_ascent = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:111:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_silfinfo.extra_descent = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:112:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numPasses = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:113:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_sPass     = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:114:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_pPass     = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:115:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_jPass     = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:116:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_bPass     = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:117:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_flags     = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:119:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aPseudo   = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:120:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aBreak    = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:121:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aBidi     = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:122:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aMirror   = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:123:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aPassBits = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:126:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numJusts  = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:146:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aLig       = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:147:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aUser      = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:148:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_iMaxComp   = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:149:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_dir        = be::read<uint8>(p) - 1;
data/graphite2-1.3.14/src/Silf.cpp:150:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_aCollision = be::read<uint8>(p);
data/graphite2-1.3.14/src/Silf.cpp:152:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    be::skip<uint16>(p, be::read<uint8>(p));    // don't need critical features yet
data/graphite2-1.3.14/src/Silf.cpp:155:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    be::skip<uint32>(p, be::read<uint8>(p));    // don't use scriptTag array.
data/graphite2-1.3.14/src/Silf.cpp:157:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_gEndLine  = be::read<uint16>(p);          // lbGID
data/graphite2-1.3.14/src/Silf.cpp:159:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint32 passes_start = be::read<uint32>(p);
data/graphite2-1.3.14/src/Silf.cpp:178:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_numPseudo = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:188:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_pseudos[i].uid = be::read<uint32>(p);
data/graphite2-1.3.14/src/Silf.cpp:189:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_pseudos[i].gid = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:200:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint32 pass_start = be::read<uint32>(o_passes);
data/graphite2-1.3.14/src/Silf.cpp:247:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *o = (be::read<T>(p) - cls_off)/sizeof(uint16);
data/graphite2-1.3.14/src/Silf.cpp:258:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_nClass  = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:259:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_nLinear = be::read<uint16>(p);
data/graphite2-1.3.14/src/Silf.cpp:288:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *d = be::read<uint16>(p);
data/graphite2-1.3.14/src/TtfUtil.cpp:734:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t nStrSizeGoal = strlen(pPostName);
data/graphite2-1.3.14/src/TtfUtil.cpp:789:51:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    uint16 * const pStrEnd = pStr + (nSize == 0 ? wcslen((const wchar_t*)pStr) : nSize);
data/graphite2-1.3.14/src/TtfUtil.cpp:861:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                uint16 format = be::read<uint16>(pRtn);
data/graphite2-1.3.14/src/gr_face.cpp:125:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    switch(max(strlen(str),size_t(4)))
data/graphite2-1.3.14/src/inc/Endian.h:59:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inline static T read(const unsigned char * &p) {
data/graphite2-1.3.14/src/inc/Endian.h:93:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inline static T read(const unsigned char * &p) {
data/graphite2-1.3.14/src/inc/locale2lcid.h:309:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t length = strlen(locale);
data/graphite2-1.3.14/src/inc/opcode_table.h:68:11:  [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.
    {{do2(equal)},                                  0, "EQUAL"},
data/graphite2-1.3.14/src/inc/opcodes.h:178:9:  [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.
STARTOP(equal)
data/graphite2-1.3.14/tests/comparerenderer/FeatureParser.h:51:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t featuresLength = strlen(features);
data/graphite2-1.3.14/tests/comparerenderer/RendererOptions.h:142:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ((strlen(rendererOptions[j].shortOption()) > 0) &&
data/graphite2-1.3.14/tests/endian/endiantest.cpp:83:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (be::read<T8>(p) != T8(0x0123456789ABCDEF))  return  8;
data/graphite2-1.3.14/tests/endian/endiantest.cpp:84:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (le::read<T8>(p) != T8(0x0123456789ABCDEF))  return 80;
data/graphite2-1.3.14/tests/endian/endiantest.cpp:90:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t  = be::read<T4>(p) == T4(0x01234567);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:91:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T4>(p) == T4(0x89ABCDEF);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:93:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t  = le::read<T4>(p) == T4(0x89ABCDEF);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:94:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T4>(p) == T4(0x01234567);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:100:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t  = be::read<T2>(p) == T2(0x0123);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:101:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T2>(p) == T2(0x4567);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:102:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T2>(p) == T2(0x89AB);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:103:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T2>(p) == T2(0xCDEF);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:105:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t  = le::read<T2>(p) == T2(0xCDEF);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:106:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T2>(p) == T2(0x89AB);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:107:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T2>(p) == T2(0x4567);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:108:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T2>(p) == T2(0x0123);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:114:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t  = be::read<T1>(p) == T1(0x01);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:115:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0x23);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:116:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0x45);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:117:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0x67);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:118:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0x89);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:119:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0xAB);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:120:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0xCD);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:121:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= be::read<T1>(p) == T1(0xEF);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:123:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t  = le::read<T1>(p) == T1(0xEF);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:124:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0xCD);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:125:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0xAB);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:126:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0x89);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:127:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0x67);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:128:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0x45);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:129:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0x23);
data/graphite2-1.3.14/tests/endian/endiantest.cpp:130:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t &= le::read<T1>(p) == T1(0x01);
data/graphite2-1.3.14/tests/examples/cluster.c:24: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 lenstr = strlen(argv[2]);

ANALYSIS SUMMARY:

Hits = 218
Lines analyzed = 29975 in approximately 0.94 seconds (31907 lines/second)
Physical Source Lines of Code (SLOC) = 19508
Hits@level = [0] 116 [1] 151 [2]  58 [3]   2 [4]   7 [5]   0
Hits@level+ = [0+] 334 [1+] 218 [2+]  67 [3+]   9 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 17.1212 [1+] 11.1749 [2+] 3.43449 [3+] 0.461349 [4+] 0.358827 [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.