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/pngmeta-1.11/pngmeta.c

FINAL RESULTS:

data/pngmeta-1.11/pngmeta.c:531:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(value, "%s, %sinterlaced",
data/pngmeta-1.11/pngmeta.c:407:21:  [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).
      if (!(in_fp = fopen (pngfile, "rb"))) {
data/pngmeta-1.11/pngmeta.c:506: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 value[80]; /* Sorry for the fixed-size buffer (big enough) */
data/pngmeta-1.11/pngmeta.c:522:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(value, "%d", bit_depth);
data/pngmeta-1.11/pngmeta.c:525:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(value, "%ld", width);
data/pngmeta-1.11/pngmeta.c:528:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(value, "%ld", height);
data/pngmeta-1.11/pngmeta.c:194:45:  [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).
	  fprintf(fd, "%s{%d}:\t%s\n", field, (int)strlen(value), value);
data/pngmeta-1.11/pngmeta.c:345:11:  [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).
    int l=strlen(arg);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 593 in approximately 0.03 seconds (17547 lines/second)
Physical Source Lines of Code (SLOC) = 405
Hits@level = [0]  28 [1]   2 [2]   5 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  36 [1+]   8 [2+]   6 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 88.8889 [1+] 19.7531 [2+] 14.8148 [3+] 2.46914 [4+] 2.46914 [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.