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/jpegpixi-1.1.1/rbtree.h
Examining data/jpegpixi-1.1.1/opthotp.h
Examining data/jpegpixi-1.1.1/file.c
Examining data/jpegpixi-1.1.1/jpegpixi.c
Examining data/jpegpixi-1.1.1/rbtree.c
Examining data/jpegpixi-1.1.1/strerror.c
Examining data/jpegpixi-1.1.1/weights.c
Examining data/jpegpixi-1.1.1/interpolate.c
Examining data/jpegpixi-1.1.1/jpegpixi.h
Examining data/jpegpixi-1.1.1/dct.c
Examining data/jpegpixi-1.1.1/optpixi.h
Examining data/jpegpixi-1.1.1/jpeghotp.c
Examining data/jpegpixi-1.1.1/consolidate.c
Examining data/jpegpixi-1.1.1/opthotp.c
Examining data/jpegpixi-1.1.1/jfif.c
Examining data/jpegpixi-1.1.1/optpixi.c
Examining data/jpegpixi-1.1.1/util.h
Examining data/jpegpixi-1.1.1/parsenum.c
Examining data/jpegpixi-1.1.1/util.c

FINAL RESULTS:

data/jpegpixi-1.1.1/opthotp.c:202:9:  [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, STR_ERR_UNKNOWN_LONG_OPT, program_name, option);
data/jpegpixi-1.1.1/opthotp.c:205:9:  [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, STR_ERR_MISSING_ARG_LONG, program_name, option);
data/jpegpixi-1.1.1/opthotp.c:208:9:  [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, STR_ERR_UNEXPEC_ARG_LONG, program_name, option);
data/jpegpixi-1.1.1/opthotp.c:234:11:  [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, STR_ERR_UNKNOWN_SHORT_OPT, program_name, *option);
data/jpegpixi-1.1.1/opthotp.c:237:11:  [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, STR_ERR_MISSING_ARG_SHORT, program_name, *option);
data/jpegpixi-1.1.1/optpixi.c:250:9:  [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, STR_ERR_UNKNOWN_LONG_OPT, program_name, option);
data/jpegpixi-1.1.1/optpixi.c:253:9:  [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, STR_ERR_LONG_OPT_AMBIGUOUS, program_name, option);
data/jpegpixi-1.1.1/optpixi.c:256:9:  [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, STR_ERR_MISSING_ARG_LONG, program_name, option);
data/jpegpixi-1.1.1/optpixi.c:259:9:  [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, STR_ERR_UNEXPEC_ARG_LONG, program_name, option);
data/jpegpixi-1.1.1/optpixi.c:298:11:  [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, STR_ERR_UNKNOWN_SHORT_OPT, program_name, *option);
data/jpegpixi-1.1.1/optpixi.c:301:11:  [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, STR_ERR_MISSING_ARG_SHORT, program_name, *option);
data/jpegpixi-1.1.1/file.c:78:23:  [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 ((infile = fopen (infilename, "rb")) == 0)
data/jpegpixi-1.1.1/file.c:169:24:  [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 ((outfile = fopen (outfilename, "wb")) == 0)
data/jpegpixi-1.1.1/file.c:278: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 buffer [JMSG_LENGTH_MAX];
data/jpegpixi-1.1.1/jpeghotp.c:187:23:  [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 ((infile = fopen (infilename, "rb")) == 0)
data/jpegpixi-1.1.1/jpeghotp.c:268:24:  [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 ((outfile = fopen (outfilename, "w")) == 0)
data/jpegpixi-1.1.1/jpeghotp.c:317: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 buffer [JMSG_LENGTH_MAX];
data/jpegpixi-1.1.1/jpegpixi.c:176:18:  [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 ((f = fopen (arg_blocks_file, "r")) == 0)
data/jpegpixi-1.1.1/rbtree.c:132:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (data_copy, data, data_len);
data/jpegpixi-1.1.1/strerror.c:34:17:  [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.
        return (char *)sys_errlist [n];
data/jpegpixi-1.1.1/strerror.c:37:16:  [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.
        static char tmp [64];
data/jpegpixi-1.1.1/strerror.c:39:9:  [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 (tmp, "Unknown error %d", n);
data/jpegpixi-1.1.1/weights.c:200:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (b, a, sizeof (double) * size * size);
data/jpegpixi-1.1.1/jpegpixi.c:271:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const int c = fgetc (f);
data/jpegpixi-1.1.1/opthotp.c:130:22:  [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).
        option_len = strlen (option);
data/jpegpixi-1.1.1/optpixi.c:148:22:  [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).
        option_len = strlen (option);
data/jpegpixi-1.1.1/util.c:82:22:  [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).
        size_t len = strlen (ptr);

ANALYSIS SUMMARY:

Hits = 27
Lines analyzed = 4048 in approximately 0.13 seconds (30908 lines/second)
Physical Source Lines of Code (SLOC) = 2668
Hits@level = [0]  38 [1]   4 [2]  12 [3]   0 [4]  11 [5]   0
Hits@level+ = [0+]  65 [1+]  27 [2+]  23 [3+]  11 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 24.3628 [1+] 10.1199 [2+] 8.62069 [3+] 4.12294 [4+] 4.12294 [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.