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/cmor-tables-3.3/cmip5-cmor-tables/show_git.c

FINAL RESULTS:

data/cmor-tables-3.3/cmip5-cmor-tables/show_git.c:7:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  fp = popen("git log -n 1 --pretty=\"format:%H\"  ","r");
data/cmor-tables-3.3/cmip5-cmor-tables/show_git.c:8:3:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  fscanf(fp,"%s",s1);
data/cmor-tables-3.3/cmip5-cmor-tables/show_git.c:6: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 s1[50];

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 11 in approximately 0.07 seconds (166 lines/second)
Physical Source Lines of Code (SLOC) = 11
Hits@level = [0]   1 [1]   0 [2]   1 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   4 [1+]   3 [2+]   3 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 363.636 [1+] 272.727 [2+] 272.727 [3+] 181.818 [4+] 181.818 [5+]   0
Dot directories skipped = 3 (--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.