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/libstroke-0.5.1/acconfig.h
Examining data/libstroke-0.5.1/libstroke/stroke.c
Examining data/libstroke-0.5.1/libstroke/stroke.h
Examining data/libstroke-0.5.1/libgstroke/gnome-stroke.c
Examining data/libstroke-0.5.1/libgstroke/gnome-stroke-draw.c
Examining data/libstroke-0.5.1/libgstroke/gstroke.h
Examining data/libstroke-0.5.1/libgstroke/gstroke-internal.h
Examining data/libstroke-0.5.1/tests/stroke_test.c
Examining data/libstroke-0.5.1/tests/gnome_stroke_test.c

FINAL RESULTS:

data/libstroke-0.5.1/libgstroke/gnome-stroke-draw.c:139: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 result[GSTROKE_MAX_SEQUENCE];
data/libstroke-0.5.1/tests/stroke_test.c:136:1:  [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 sequence[STROKE_MAX_SEQUENCE+1];
data/libstroke-0.5.1/tests/stroke_test.c:174: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).
		    borderwidth = atoi (argv[i]);
data/libstroke-0.5.1/libstroke/stroke.c:267:5:  [1] (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 character.
    strcpy (sequence,"0");
data/libstroke-0.5.1/tests/stroke_test.c:122:15:  [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).
    int len = strlen (s);

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 1653 in approximately 0.07 seconds (22483 lines/second)
Physical Source Lines of Code (SLOC) = 1080
Hits@level = [0]  29 [1]   2 [2]   3 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  34 [1+]   5 [2+]   3 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 31.4815 [1+] 4.62963 [2+] 2.77778 [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.