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/timemachine-0.3.3/src/callbacks.c
Examining data/timemachine-0.3.3/src/callbacks.h
Examining data/timemachine-0.3.3/src/interface.c
Examining data/timemachine-0.3.3/src/interface.h
Examining data/timemachine-0.3.3/src/main.c
Examining data/timemachine-0.3.3/src/main.h
Examining data/timemachine-0.3.3/src/meters.c
Examining data/timemachine-0.3.3/src/meters.h
Examining data/timemachine-0.3.3/src/support.c
Examining data/timemachine-0.3.3/src/support.h
Examining data/timemachine-0.3.3/src/threads.c
Examining data/timemachine-0.3.3/src/threads.h
Examining data/timemachine-0.3.3/src/gtkmeter.c
Examining data/timemachine-0.3.3/src/gtkmeter.h
Examining data/timemachine-0.3.3/src/gtkmeterscale.c
Examining data/timemachine-0.3.3/src/gtkmeterscale.h

FINAL RESULTS:

data/timemachine-0.3.3/src/main.c:55:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if (verbosity >= lvl) fprintf(stderr, PACKAGE ": " txt)
data/timemachine-0.3.3/src/threads.c:175:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, PACKAGE ": output file format error\n");
data/timemachine-0.3.3/src/main.c:106: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, "hic:t:n:p:f:sab:e:T:")) != -1) {
data/timemachine-0.3.3/src/main.c:259:21:  [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.
    if (console || !getenv("DISPLAY") || getenv("DISPLAY")[0] == '\0') {
data/timemachine-0.3.3/src/main.c:259:42:  [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.
    if (console || !getenv("DISPLAY") || getenv("DISPLAY")[0] == '\0') {
data/timemachine-0.3.3/src/gtkmeterscale.c:294: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 text[128];
data/timemachine-0.3.3/src/interface.c:75: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 name[32];
data/timemachine-0.3.3/src/interface.c:109: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 name[32];
data/timemachine-0.3.3/src/main.c:96: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 port_name[32];
data/timemachine-0.3.3/src/main.c:115:18:  [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).
	    num_ports = atoi(optarg);
data/timemachine-0.3.3/src/main.c:119:19:  [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).
	    buf_length = atoi(optarg);
data/timemachine-0.3.3/src/main.c:146: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).
	    auto_end_time = atoi(optarg);
data/timemachine-0.3.3/src/meters.c:36: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 name[32];
data/timemachine-0.3.3/src/main.c:345:2:  [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(1000);
data/timemachine-0.3.3/src/main.c:380: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(10000);
data/timemachine-0.3.3/src/threads.c:143:2:  [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(100);
data/timemachine-0.3.3/src/threads.c:222:2:  [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(10);

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 2359 in approximately 0.08 seconds (27783 lines/second)
Physical Source Lines of Code (SLOC) = 1748
Hits@level = [0]  47 [1]   4 [2]   8 [3]   3 [4]   2 [5]   0
Hits@level+ = [0+]  64 [1+]  17 [2+]  13 [3+]   5 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 36.6133 [1+] 9.7254 [2+] 7.43707 [3+] 2.86041 [4+] 1.14416 [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.