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/x11-touchscreen-calibrator-0.2/x11-touchscreen-calibrator.c

FINAL RESULTS:

data/x11-touchscreen-calibrator-0.2/x11-touchscreen-calibrator.c:458:29:  [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.
    *display = XOpenDisplay(getenv("DISPLAY"));
data/x11-touchscreen-calibrator-0.2/x11-touchscreen-calibrator.c:529:19:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt(argc, argv, "d")) != -1) {
data/x11-touchscreen-calibrator-0.2/x11-touchscreen-calibrator.c:540:28:  [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.
    display = XOpenDisplay(getenv("DISPLAY"));
data/x11-touchscreen-calibrator-0.2/x11-touchscreen-calibrator.c:457:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(100000); /* It needs to wait for a while before X resources are ready. */

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 587 in approximately 0.02 seconds (24684 lines/second)
Physical Source Lines of Code (SLOC) = 494
Hits@level = [0]  22 [1]   1 [2]   0 [3]   3 [4]   0 [5]   0
Hits@level+ = [0+]  26 [1+]   4 [2+]   3 [3+]   3 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 52.6316 [1+] 8.09717 [2+] 6.07287 [3+] 6.07287 [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.