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/pychm-0.8.6/chm/_chmlib.c
Examining data/pychm-0.8.6/chm/chmlib_search.h
Examining data/pychm-0.8.6/chm/search.c

FINAL RESULTS:

data/pychm-0.8.6/chm/search.c:186:9:  [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(word + pos, wrd_buf);
data/pychm-0.8.6/chm/search.c:405:9:  [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(word + pos, wrd_buf);
data/pychm-0.8.6/chm/search.c:178:7:  [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(wrd_buf, buffer + i + 2, word_len - 1);
data/pychm-0.8.6/chm/search.c:224:12:  [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.
  unsigned char entry[TOPICS_ENTRY_LEN];
data/pychm-0.8.6/chm/search.c:225:12:  [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.
  unsigned char combuf[COMMON_BUF_LEN];
data/pychm-0.8.6/chm/search.c:312:12:  [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.
  unsigned char header[FTS_HEADER_LEN];
data/pychm-0.8.6/chm/search.c:397:7:  [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(wrd_buf, buffer + i + 2, word_len - 1);
data/pychm-0.8.6/chm/search.c:438:38:  [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 (!strncasecmp(word, text, strlen(text))) {
data/pychm-0.8.6/chm/search.c:450:44:  [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).
        } else if (strncasecmp(text, word, strlen(text)) < -1)
data/pychm-0.8.6/chm/search.c:454:49:  [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).
  } while (!whole_words && !strncmp(word, text, strlen(text)) && node_offset);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 873 in approximately 0.07 seconds (11963 lines/second)
Physical Source Lines of Code (SLOC) = 680
Hits@level = [0]   0 [1]   3 [2]   5 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   7 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 14.7059 [1+] 14.7059 [2+] 10.2941 [3+] 2.94118 [4+] 2.94118 [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.