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/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c
Examining data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.h

FINAL RESULTS:

data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:57: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 logname[1024];
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:215:23:  [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).
            min_uid = atoi(*argv+8);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:346:19:  [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).
    name = malloc(strlen(lname) + strlen(def_realm) + 2);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:346:35:  [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).
    name = malloc(strlen(lname) + strlen(def_realm) + 2);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:353:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(name, lname, strlen(lname) + 1);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:353:26:  [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).
    strncpy(name, lname, strlen(lname) + 1);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:364:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(name, "@", 2);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:365:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(name, def_realm, strlen(def_realm) + 1);
data/pam-krb5-migrate-0.0.11/pam_krb5_migrate.c:365:30:  [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).
    strncat(name, def_realm, strlen(def_realm) + 1);

ANALYSIS SUMMARY:

Hits = 9
Lines analyzed = 555 in approximately 0.04 seconds (13120 lines/second)
Physical Source Lines of Code (SLOC) = 379
Hits@level = [0]   2 [1]   7 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]   9 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 29.0237 [1+] 23.7467 [2+] 5.27704 [3+]   0 [4+]   0 [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.