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/libdrilbo-0.2.11/src/locales/libdrilbo_locales.h
Examining data/libdrilbo-0.2.11/src/locales/libdrilbo_locales.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-mg1.h
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo.h
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-test.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-x11.h
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-ppm.h
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-ppm.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-jpeg.h
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-png.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-x11.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-jpeg.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-mg1.c
Examining data/libdrilbo-0.2.11/src/drilbo/drilbo-png.h

FINAL RESULTS:

data/libdrilbo-0.2.11/src/drilbo/drilbo-test.c:354: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.
  env_window_id = getenv("WINDOWID");
data/libdrilbo-0.2.11/src/drilbo/drilbo-mg1.c:132:17:  [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 unsigned char buffer[CODE_TABLE_SIZE];
data/libdrilbo-0.2.11/src/drilbo/drilbo-mg1.c:365:12:  [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.
  unsigned char code_buffer[CODE_TABLE_SIZE];
data/libdrilbo-0.2.11/src/drilbo/drilbo-test.c:115: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[STREAM_BUFSIZE];
data/libdrilbo-0.2.11/src/drilbo/drilbo-test.c:358: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).
    window_id = atol(env_window_id);
data/libdrilbo-0.2.11/src/drilbo/drilbo-x11.c:599: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 message[1024];
data/libdrilbo-0.2.11/src/drilbo/drilbo.c:236:3:  [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(result->data, image->data, len);
data/libdrilbo-0.2.11/src/drilbo/drilbo.c:245: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[5];
data/libdrilbo-0.2.11/src/drilbo/drilbo-test.c:174:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret_val = read(STDIN_FILENO, &read_buf, 1);
data/libdrilbo-0.2.11/src/drilbo/drilbo-test.c:184:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret_val = read(signalling_pipe[0], &read_buf, 1);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 3155 in approximately 0.17 seconds (18257 lines/second)
Physical Source Lines of Code (SLOC) = 1800
Hits@level = [0]  27 [1]   2 [2]   7 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  37 [1+]  10 [2+]   8 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 20.5556 [1+] 5.55556 [2+] 4.44444 [3+] 0.555556 [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.