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/libtimezonemap-0.4.6/src/cc-timezone-location.c
Examining data/libtimezonemap-0.4.6/src/cc-timezone-location.h
Examining data/libtimezonemap-0.4.6/src/cc-timezone-map.c
Examining data/libtimezonemap-0.4.6/src/cc-timezone-map.h
Examining data/libtimezonemap-0.4.6/src/test-timezone.c
Examining data/libtimezonemap-0.4.6/src/timezone-completion.c
Examining data/libtimezonemap-0.4.6/src/timezone-completion.h
Examining data/libtimezonemap-0.4.6/src/tz.c
Examining data/libtimezonemap-0.4.6/src/tz.h

FINAL RESULTS:

data/libtimezonemap-0.4.6/src/cc-timezone-map.c:700: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[16];
data/libtimezonemap-0.4.6/src/test-timezone.c:41:9:  [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[16];
data/libtimezonemap-0.4.6/src/tz.c:51:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fh = fopen (filename, "r");
data/libtimezonemap-0.4.6/src/tz.c:52: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[4096];
data/libtimezonemap-0.4.6/src/tz.c:184: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[4096];
data/libtimezonemap-0.4.6/src/timezone-completion.c:111:58:  [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).
  amatches = strncmp (casefolded_text, casefolded_namea, strlen(casefolded_text)) == 0;
data/libtimezonemap-0.4.6/src/timezone-completion.c:112:58:  [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).
  bmatches = strncmp (casefolded_text, casefolded_nameb, strlen(casefolded_text)) == 0;
data/libtimezonemap-0.4.6/src/timezone-completion.c:246: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 (priv->request_text) < 4)
data/libtimezonemap-0.4.6/src/tz.c:413:17:  [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 (!pos || strlen(pos) < 4 || digits > 9) return 0.0;
data/libtimezonemap-0.4.6/src/tz.c:422:46:  [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 (t1 >= 0.0) return t1 + t2/pow (10.0, strlen(fraction));
data/libtimezonemap-0.4.6/src/tz.c:423:36:  [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).
    else return t1 - t2/pow (10.0, strlen(fraction));

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 3235 in approximately 0.10 seconds (31533 lines/second)
Physical Source Lines of Code (SLOC) = 2488
Hits@level = [0]   0 [1]   6 [2]   5 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]   5 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 4.42122 [1+] 4.42122 [2+] 2.00965 [3+]   0 [4+]   0 [5+]   0
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.