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/distro-info-0.24/debian-distro-info.c
Examining data/distro-info-0.24/distro-info-util.c
Examining data/distro-info-0.24/distro-info-util.h
Examining data/distro-info-0.24/ubuntu-distro-info.c

FINAL RESULTS:

data/distro-info-0.24/distro-info-util.c:75: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, NAME ": Failed to open %s: %s\n", filename,
data/distro-info-0.24/distro-info-util.c:81: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, NAME ": %s has a negative file size.\n", filename);
data/distro-info-0.24/distro-info-util.c:87: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, NAME ": Failed to read %zu bytes from %s.\n", size,
data/distro-info-0.24/distro-info-util.c:157: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, NAME ": Invalid date `%s' in file `%s' at line %i "
data/distro-info-0.24/distro-info-util.c:318:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(DISTRO_NAME " %s \"%s\"\n", distro->version, distro->codename);
data/distro-info-0.24/distro-info-util.c:324:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(DISTRO_NAME " %s \"%s\" %s\n",
data/distro-info-0.24/distro-info-util.c:331:17:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                printf(DISTRO_NAME " %s \"%s\" %zd\n",
data/distro-info-0.24/distro-info-util.c:401: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, NAME ": Header `%s' in file `%s' does not match "
data/distro-info-0.24/distro-info-util.c:437: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, NAME ": No data found in file `%s'.\n", filename);
data/distro-info-0.24/distro-info-util.c:548:5:  [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, NAME ": You have to select exactly one of "
data/distro-info-0.24/distro-info-util.c:634:21:  [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, NAME ": --alias requested multiple times.\n");
data/distro-info-0.24/distro-info-util.c:639:21:  [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, NAME ": invalid distribution codename `%s'\n",
data/distro-info-0.24/distro-info-util.c:674:21:  [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, NAME ": Date specified multiple times.\n");
data/distro-info-0.24/distro-info-util.c:682:21:  [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, NAME ": invalid date `%s'\n", optarg);
data/distro-info-0.24/distro-info-util.c:691:21:  [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, NAME ": series requested multiple times.\n");
data/distro-info-0.24/distro-info-util.c:695:21:  [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, NAME ": invalid distribution series `%s'\n",
data/distro-info-0.24/distro-info-util.c:776:25:  [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, NAME ": invalid milestone: %s\n",
data/distro-info-0.24/distro-info-util.c:786:21:  [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, NAME ": unrecognized option `%s'\n",
data/distro-info-0.24/distro-info-util.c:790:21:  [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, NAME ": option `--alias' requires "
data/distro-info-0.24/distro-info-util.c:794:21:  [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, NAME ": option `--date' requires "
data/distro-info-0.24/distro-info-util.c:797:21:  [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, NAME ": option `--series' requires "
data/distro-info-0.24/distro-info-util.c:800:21:  [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, NAME ": unrecognized option `-%c'\n",
data/distro-info-0.24/distro-info-util.c:808: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, NAME ": getopt returned character code %i. "
data/distro-info-0.24/distro-info-util.c:820: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, NAME ": unrecognized arguments: %s", argv[optind]);
data/distro-info-0.24/distro-info-util.c:861: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, NAME ": " OUTDATED_ERROR "\n");
data/distro-info-0.24/distro-info-util.c:895: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, NAME ": unknown distribution series `%s'\n", series_name);
data/distro-info-0.24/distro-info-util.c:897: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, NAME ": " OUTDATED_ERROR "\n");
data/distro-info-0.24/distro-info-util.c:627:22:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((option = getopt_long(argc, argv, short_options,
data/distro-info-0.24/distro-info-util.c:73:9:  [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).
    f = fopen(filename, "r");
data/distro-info-0.24/distro-info-util.c:143:12:  [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).
    return strlen(codename) > 0 &&
data/distro-info-0.24/distro-info-util.c:144:62:  [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).
           strspn(codename, "abcdefghijklmnopqrstuvwxyz") == strlen(codename);

ANALYSIS SUMMARY:

Hits = 31
Lines analyzed = 1087 in approximately 0.06 seconds (17621 lines/second)
Physical Source Lines of Code (SLOC) = 857
Hits@level = [0]  21 [1]   2 [2]   1 [3]   1 [4]  27 [5]   0
Hits@level+ = [0+]  52 [1+]  31 [2+]  29 [3+]  28 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 60.6768 [1+] 36.1727 [2+] 33.839 [3+] 32.6721 [4+] 31.5053 [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.