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/libgltf-0.1.0/inc/libgltf.h
Examining data/libgltf-0.1.0/inc/types.h
Examining data/libgltf-0.1.0/src/Camera.cpp
Examining data/libgltf-0.1.0/src/Camera.h
Examining data/libgltf-0.1.0/src/Common.cpp
Examining data/libgltf-0.1.0/src/Common.h
Examining data/libgltf-0.1.0/src/Font.cpp
Examining data/libgltf-0.1.0/src/Font.h
Examining data/libgltf-0.1.0/src/FPSCounter.cpp
Examining data/libgltf-0.1.0/src/FPSCounter.h
Examining data/libgltf-0.1.0/src/libgltf.cpp
Examining data/libgltf-0.1.0/src/LoadScene.cpp
Examining data/libgltf-0.1.0/src/LoadScene.h
Examining data/libgltf-0.1.0/src/NumberBitmap.h
Examining data/libgltf-0.1.0/src/NumberBitmap.cpp
Examining data/libgltf-0.1.0/src/RenderScene.cpp
Examining data/libgltf-0.1.0/src/RenderScene.h
Examining data/libgltf-0.1.0/src/Shaders.cpp
Examining data/libgltf-0.1.0/src/Shaders.h
Examining data/libgltf-0.1.0/src/Texture.cpp
Examining data/libgltf-0.1.0/src/Texture.h
Examining data/libgltf-0.1.0/src/TimeFunction.cpp
Examining data/libgltf-0.1.0/src/TimeFunction.h
Examining data/libgltf-0.1.0/src/types.cpp
Examining data/libgltf-0.1.0/qa/helper/OpenGLContext.cpp
Examining data/libgltf-0.1.0/qa/helper/OpenGLContext.h
Examining data/libgltf-0.1.0/qa/helper/PNGHelper.cpp
Examining data/libgltf-0.1.0/qa/helper/PNGHelper.h
Examining data/libgltf-0.1.0/qa/test/APITest.cpp
Examining data/libgltf-0.1.0/qa/test/APITest.h
Examining data/libgltf-0.1.0/qa/test/UnitTester.cpp

FINAL RESULTS:

data/libgltf-0.1.0/qa/helper/PNGHelper.cpp:21: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 aHeader[8];    // 8 is the maximum size that can be checked
data/libgltf-0.1.0/qa/helper/PNGHelper.cpp:24: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).
    FILE* pFile = fopen(sFileName.c_str(), "rb");
data/libgltf-0.1.0/src/Common.cpp:85:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pData, pValue, length);
data/libgltf-0.1.0/src/Common.cpp:409: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, pValue, size);
data/libgltf-0.1.0/src/Font.cpp:209:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 pBuffer[32] = {0};
data/libgltf-0.1.0/src/Shaders.cpp:147: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 sInfoLog[1024] = {0};
data/libgltf-0.1.0/src/Shaders.cpp:165: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 sInfoLog[1024] = {0};
data/libgltf-0.1.0/qa/test/APITest.cpp:1267:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ifs.read (rFile.buffer,rFile.size);
data/libgltf-0.1.0/src/FPSCounter.cpp:43:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pShaderProgram->loadShader(uiFPSProgram, VERTSHADER, strlen(VERTSHADER),
data/libgltf-0.1.0/src/FPSCounter.cpp:45:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pShaderProgram->loadShader(uiFPSProgram, FRAGSHADER, strlen(FRAGSHADER),
data/libgltf-0.1.0/src/RenderScene.cpp:188:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     strlen(vShader), GL_VERTEX_SHADER))
data/libgltf-0.1.0/src/RenderScene.cpp:193:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     strlen(fShader), GL_FRAGMENT_SHADER))
data/libgltf-0.1.0/src/Shaders.cpp:131:13:  [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("#version 130\n"),

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 9970 in approximately 0.41 seconds (24438 lines/second)
Physical Source Lines of Code (SLOC) = 7785
Hits@level = [0]   1 [1]   6 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  14 [1+]  13 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.79833 [1+] 1.66988 [2+] 0.899165 [3+]   0 [4+]   0 [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.