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/kivy-1.11.0/kivy/core/camera/camera_avfoundation_implem.h
Examining data/kivy-1.11.0/kivy/core/window/window_x11_core.c
Examining data/kivy-1.11.0/kivy/core/window/window_x11_keytab.c
Examining data/kivy-1.11.0/kivy/include/common_subset.h
Examining data/kivy-1.11.0/kivy/include/gl2platform.h
Examining data/kivy-1.11.0/kivy/include/gl_redirect.h
Examining data/kivy-1.11.0/kivy/include/khrplatform.h
Examining data/kivy-1.11.0/kivy/lib/gstplayer/_gstplayer.h
Examining data/kivy-1.11.0/kivy/lib/kivy_endian.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Include/tesselator.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/bucketalloc.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/bucketalloc.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/dict.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/dict.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/geom.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/geom.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/mesh.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/mesh.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/priorityq.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/priorityq.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/sweep.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/sweep.h
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/tess.c
Examining data/kivy-1.11.0/kivy/lib/libtess2/Source/tess.h
Examining data/kivy-1.11.0/kivy/lib/pango/freetype2.h
Examining data/kivy-1.11.0/kivy/lib/pango/pangoft2.h
Examining data/kivy-1.11.0/kivy/tools/gles_compat/gl2.h

FINAL RESULTS:

data/kivy-1.11.0/kivy/lib/libtess2/Source/geom.c:189:13:  [3] (random) drand48:
  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.
		a = 1.2 * drand48() - 0.1;
data/kivy-1.11.0/kivy/lib/libtess2/Source/tess.c:177:36:  [3] (random) drand48:
  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.
#define S_UNIT_X	(RandomSweep ? (2*drand48()-1) : 1.0)
data/kivy-1.11.0/kivy/lib/libtess2/Source/tess.c:178:36:  [3] (random) drand48:
  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.
#define S_UNIT_Y	(RandomSweep ? (2*drand48()-1) : 0.0)
data/kivy-1.11.0/kivy/lib/gstplayer/_gstplayer.h:39:2:  [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 eventname[15];
data/kivy-1.11.0/kivy/lib/gstplayer/_gstplayer.h:99:4:  [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(dstbuffer, srcbuffer, width3);
data/kivy-1.11.0/kivy/lib/gstplayer/_gstplayer.h:134:2:  [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(data->eventname, "pull-sample");
data/kivy-1.11.0/kivy/lib/gstplayer/_gstplayer.h:151:2:  [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(data.eventname, "pull-preroll");
data/kivy-1.11.0/kivy/core/window/window_x11_core.c:251: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).
	textprop.nitems = strlen(title);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 8268 in approximately 0.56 seconds (14675 lines/second)
Physical Source Lines of Code (SLOC) = 5331
Hits@level = [0]   6 [1]   1 [2]   4 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  14 [1+]   8 [2+]   7 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.62615 [1+] 1.50066 [2+] 1.31307 [3+] 0.562746 [4+]   0 [5+]   0
Dot directories skipped = 3 (--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.