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/oneko-1.2.sakura.6/patchlevel.h
Examining data/oneko-1.2.sakura.6/oneko.h
Examining data/oneko-1.2.sakura.6/oneko.c

FINAL RESULTS:

data/oneko-1.2.sakura.6/oneko.c:152: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	*PixelPattern[BITMAPTYPES];
data/oneko-1.2.sakura.6/oneko.c:154: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	*MaskPattern[BITMAPTYPES];
data/oneko-1.2.sakura.6/oneko.c:359:17:  [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 (num = atoi(resource)) {
data/oneko-1.2.sakura.6/oneko.c:367:17:  [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 (num = atoi(resource)) {
data/oneko-1.2.sakura.6/oneko.c:375:17:  [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 (num = atoi(resource)) {
data/oneko-1.2.sakura.6/oneko.c:1233: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		theKeyBuffer[AVAIL_KEYBUF + 1];
data/oneko-1.2.sakura.6/oneko.c:1362: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 msg[80];
data/oneko-1.2.sakura.6/oneko.c:1455:17:  [2] (integer) atol:
  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).
	IntervalTime = atol(argv[ArgCounter]);
data/oneko-1.2.sakura.6/oneko.c:1464:14:  [2] (integer) atol:
  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).
	IdleSpace = atol(argv[ArgCounter]);
data/oneko-1.2.sakura.6/oneko.c:1526:22:  [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).
      restoredCursor=atoi(argv[ArgCounter]);
data/oneko-1.2.sakura.6/oneko.c:1559: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	theDisplayName[MAXDISPLAYNAME];
data/oneko-1.2.sakura.6/oneko.c:1437:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(theDisplayName, argv[ArgCounter], sizeof(theDisplayName)-1);
data/oneko-1.2.sakura.6/oneko.c:1544:7:  [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).
  if (strlen(theDisplayName) < 1) {

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 1691 in approximately 0.09 seconds (19334 lines/second)
Physical Source Lines of Code (SLOC) = 1283
Hits@level = [0]  23 [1]   2 [2]  11 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  36 [1+]  13 [2+]  11 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 28.0592 [1+] 10.1325 [2+] 8.57366 [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.