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/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c
Examining data/python-stdlib-extensions-2.7.18/2.7/Modules/tkinter.h
Examining data/python-stdlib-extensions-2.7.18/2.7/Modules/tkappinit.c
Examining data/python-stdlib-extensions-2.7.18/2.7/Modules/gdbmmodule.c

FINAL RESULTS:

data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:776:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(argv0, className);
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:817:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(args, use);
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:390: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 *argvStore[ARGSZ];
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:812:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(args, "-sync");
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:816:13:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
            strcat(args, "-use ");
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:952: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 buf[50];
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:2892: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 buf[100];
data/python-stdlib-extensions-2.7.18/2.7/Modules/gdbmmodule.c:485:9:  [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 buf[40];
data/python-stdlib-extensions-2.7.18/2.7/Modules/tkappinit.c:41: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 tclLibPath[MAX_PATH_LEN], tkLibPath[MAX_PATH_LEN];
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:528:36:  [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 fromTclStringAndSize(s, strlen(s));
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:769: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).
    argv0 = (char*)attemptckalloc(strlen(className) + 1);
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:801:20:  [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).
            len += strlen(use) + sizeof "-use ";
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:815:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(args, " ");
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:1040: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).
        if (s != NULL && strlen(s) >= INT_MAX) {                        \
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:1846:13:  [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).
        if (strlen(s) != PyString_Size(in)) {
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:2333:9:  [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).
    if (strlen(list) >= INT_MAX) {
data/python-stdlib-extensions-2.7.18/2.7/Modules/_tkinter.c:2399:9:  [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).
    if (strlen(list) >= INT_MAX) {

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 4480 in approximately 0.11 seconds (40578 lines/second)
Physical Source Lines of Code (SLOC) = 3525
Hits@level = [0]   1 [1]   8 [2]   7 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  18 [1+]  17 [2+]   9 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 5.10638 [1+] 4.8227 [2+] 2.55319 [3+] 0.567376 [4+] 0.567376 [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.