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/libsdl2-ttf-2.0.15+dfsg1/glfont.c
Examining data/libsdl2-ttf-2.0.15+dfsg1/SDL_ttf.h
Examining data/libsdl2-ttf-2.0.15+dfsg1/showfont.c
Examining data/libsdl2-ttf-2.0.15+dfsg1/SDL_ttf.c

FINAL RESULTS:

data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:252:17:  [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, TTF_GLFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:262:17:  [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, TTF_GLFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:269:13:  [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, TTF_GLFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:278: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, TTF_GLFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:141:17:  [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, TTF_SHOWFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:163:17:  [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, TTF_SHOWFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:174:17:  [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, TTF_SHOWFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:182:13:  [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, TTF_SHOWFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:191: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, TTF_SHOWFONT_USAGE, argv0);
data/libsdl2-ttf-2.0.15+dfsg1/SDL_ttf.c:202: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[1024];
data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:292: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).
        ptsize = atoi(argv[1]);
data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:315: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.
                char outname[64];
data/libsdl2-ttf-2.0.15+dfsg1/glfont.c:316:17:  [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(outname, "glyph-%d.bmp", i);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:97: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 *message, string[128];
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:205: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).
        ptsize = atoi(argv[1]);
data/libsdl2-ttf-2.0.15+dfsg1/showfont.c:231: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.
                char outname[64];

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 3335 in approximately 0.10 seconds (34449 lines/second)
Physical Source Lines of Code (SLOC) = 2524
Hits@level = [0]  19 [1]   0 [2]   7 [3]   0 [4]   9 [5]   0
Hits@level+ = [0+]  35 [1+]  16 [2+]  16 [3+]   9 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 13.8669 [1+] 6.33914 [2+] 6.33914 [3+] 3.56577 [4+] 3.56577 [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.