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/pyopencl-2019.1.1/test/empty-header.h
Examining data/pyopencl-2019.1.1/pyopencl/cl/pyopencl-random123/openclfeatures.h
Examining data/pyopencl-2019.1.1/pyopencl/cl/pyopencl-random123/array.h
Examining data/pyopencl-2019.1.1/pyopencl/cl/pyopencl-complex.h
Examining data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_language_opencl.cpp
Examining data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/gpu_ndarray.h
Examining data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_ndarray_object.h
Examining data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_ndarray.cpp
Examining data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_language.h
Examining data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_ndarray.h
Examining data/pyopencl-2019.1.1/src/wrap_constants.cpp
Examining data/pyopencl-2019.1.1/src/wrap_cl_part_2.cpp
Examining data/pyopencl-2019.1.1/src/wrap_helpers.hpp
Examining data/pyopencl-2019.1.1/src/bitlog.hpp
Examining data/pyopencl-2019.1.1/src/mempool.hpp
Examining data/pyopencl-2019.1.1/src/wrap_cl.hpp
Examining data/pyopencl-2019.1.1/src/wrap_cl_part_1.cpp
Examining data/pyopencl-2019.1.1/src/wrap_mempool.cpp
Examining data/pyopencl-2019.1.1/src/bitlog.cpp
Examining data/pyopencl-2019.1.1/src/pyopencl_ext.h
Examining data/pyopencl-2019.1.1/src/tools.hpp
Examining data/pyopencl-2019.1.1/src/wrap_cl.cpp

FINAL RESULTS:

data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_language.h:23:26:  [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.
#define DPRINTF(args...) fprintf(stderr, args)
data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_language_opencl.cpp:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char local_kern[92];
data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_language_opencl.cpp:252: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.
  const char *rlk[1];
data/pyopencl-2019.1.1/pyopencl/compyte/ndarray/pygpu_language_opencl.cpp:275:8:  [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).
  sz = strlen(local_kern);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 11330 in approximately 0.25 seconds (46086 lines/second)
Physical Source Lines of Code (SLOC) = 8825
Hits@level = [0]  41 [1]   1 [2]   2 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  45 [1+]   4 [2+]   3 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 5.09915 [1+] 0.453258 [2+] 0.339943 [3+] 0.113314 [4+] 0.113314 [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.