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/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/examples/src/headerexample.cpp
Examining data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/examples/src/trivial.cpp
Examining data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/examples/src/trivialSizeTCompat.cpp
Examining data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/include/CL/cl2.hpp
Examining data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/include/CL/opencl.hpp
Examining data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/tests/test_openclhpp.cpp
Examining data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/debian/t/opencl_hpp.cpp

FINAL RESULTS:

data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/tests/test_openclhpp.cpp:162:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char *) param_value, version);
data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/tests/test_openclhpp.cpp:1684: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(param_value, &temp, sizeof(cl_platform_id));
data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/tests/test_openclhpp.cpp:1707: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(param_value, returnString, returnSize);
data/khronos-opencl-clhpp-2.2.0~~2.0.12+git7-g64c206f/tests/test_openclhpp.cpp:153: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 bytes = strlen(version) + 1;

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 13531 in approximately 0.32 seconds (42076 lines/second)
Physical Source Lines of Code (SLOC) = 9519
Hits@level = [0]   0 [1]   1 [2]   2 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   3 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 0.420212 [1+] 0.420212 [2+] 0.315159 [3+] 0.105053 [4+] 0.105053 [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.