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/rep-gtk-0.90.8.3/gtk-compat.c
Examining data/rep-gtk-0.90.8.3/gtk-support.c
Examining data/rep-gtk-0.90.8.3/rep-gtk.c
Examining data/rep-gtk-0.90.8.3/rep-gtk.h
Examining data/rep-gtk-0.90.8.3/rep-types.c

FINAL RESULTS:

data/rep-gtk-0.90.8.3/rep-gtk.c:2535:7:  [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 (newstr, str);
data/rep-gtk-0.90.8.3/rep-gtk.c:2509:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *tem = getenv ("REP_GTK_DONT_INITIALIZE");
data/rep-gtk-0.90.8.3/rep-gtk.c:514:5:  [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 buf[32];
data/rep-gtk-0.90.8.3/rep-gtk.c:521:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%lx", (long)proxy->obj);
data/rep-gtk-0.90.8.3/rep-gtk.c:939: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 buf[32];
data/rep-gtk-0.90.8.3/rep-gtk.c:944:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%lx", (long)BOXED_PTR (exp));
data/rep-gtk-0.90.8.3/rep-gtk.c:2510:23:  [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).
      if (tem == 0 || atoi (tem) == 0)
data/rep-gtk-0.90.8.3/rep-gtk.c:2545:10:  [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 *argv_storage[1] = { "rep-gtk" };
data/rep-gtk-0.90.8.3/gtk-support.c:361:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (str, event->key.string, event->key.length);
data/rep-gtk-0.90.8.3/rep-gtk.c:2534:33:  [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).
      char *newstr = rep_alloc (strlen(str)+1);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 4309 in approximately 0.10 seconds (44006 lines/second)
Physical Source Lines of Code (SLOC) = 3402
Hits@level = [0]  25 [1]   2 [2]   6 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  35 [1+]  10 [2+]   8 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 10.2881 [1+] 2.93945 [2+] 2.35156 [3+] 0.587889 [4+] 0.293945 [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.