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/hunspell-1.7.0/msvc/config.h
Examining data/hunspell-1.7.0/src/hunspell/affentry.cxx
Examining data/hunspell-1.7.0/src/hunspell/affixmgr.cxx
Examining data/hunspell-1.7.0/src/hunspell/csutil.cxx
Examining data/hunspell-1.7.0/src/hunspell/filemgr.cxx
Examining data/hunspell-1.7.0/src/hunspell/hashmgr.cxx
Examining data/hunspell-1.7.0/src/hunspell/hunspell.cxx
Examining data/hunspell-1.7.0/src/hunspell/hunspell.h
Examining data/hunspell-1.7.0/src/hunspell/hunvisapi.h
Examining data/hunspell-1.7.0/src/hunspell/hunzip.cxx
Examining data/hunspell-1.7.0/src/hunspell/phonet.cxx
Examining data/hunspell-1.7.0/src/hunspell/replist.cxx
Examining data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx
Examining data/hunspell-1.7.0/src/parsers/firstparser.cxx
Examining data/hunspell-1.7.0/src/parsers/htmlparser.cxx
Examining data/hunspell-1.7.0/src/parsers/latexparser.cxx
Examining data/hunspell-1.7.0/src/parsers/manparser.cxx
Examining data/hunspell-1.7.0/src/parsers/odfparser.cxx
Examining data/hunspell-1.7.0/src/parsers/testparser.cxx
Examining data/hunspell-1.7.0/src/parsers/textparser.cxx
Examining data/hunspell-1.7.0/src/parsers/xmlparser.cxx
Examining data/hunspell-1.7.0/src/tools/analyze.cxx
Examining data/hunspell-1.7.0/src/tools/chmorph.cxx
Examining data/hunspell-1.7.0/src/tools/example.cxx
Examining data/hunspell-1.7.0/src/tools/fuzzer.cxx
Examining data/hunspell-1.7.0/src/tools/hunspell.cxx
Examining data/hunspell-1.7.0/src/tools/hunzip.cxx
Examining data/hunspell-1.7.0/src/tools/hzip.cxx
Examining data/hunspell-1.7.0/src/tools/munch.cxx
Examining data/hunspell-1.7.0/src/tools/munch.h
Examining data/hunspell-1.7.0/src/tools/unmunch.cxx
Examining data/hunspell-1.7.0/src/tools/unmunch.h

FINAL RESULTS:

data/hunspell-1.7.0/src/hunspell/affentry.cxx:938:64:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
If we set up a conds array of 256 bytes indexed (0 to 255) and access it
data/hunspell-1.7.0/src/hunspell/filemgr.cxx:79:3:  [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, err, par);
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:238:3:  [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(hpw, word->c_str());
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:257:7:  [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(hpw + word->size() + 1, desc->c_str());
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:54:3:  [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, err, par);
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:250: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(linebuf + l - 1, line + strlen(line) - right - 1);
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:253:3:  [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(line + left, linebuf);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:800:3:  [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(candidate + 1, word);
data/hunspell-1.7.0/src/tools/hunspell.cxx:639:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system((std::string("mkdir ") + odftmpdir).c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:679:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (!secure_filename(filename) || system(sbuf.str().c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:684:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (system((std::string("rmdir ") + odftmpdir).c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:694:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (system((std::string("rmdir ") + odftmpdir).c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:703: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(stdout, HUNSPELL_VERSION);
data/hunspell-1.7.0/src/tools/hunspell.cxx:1022:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(sbuf.str().c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:1589:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (!secure_filename(filename) || system(sbuf.str().c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:1595:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      (void)system((std::string("rmdir ") + odftmpdir).c_str());
data/hunspell-1.7.0/src/tools/hunspell.cxx:1606:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      (void)system((std::string("rmdir ") + odftmpdir).c_str());
data/hunspell-1.7.0/src/tools/hunspell.cxx:1637:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            if (system(sbuf.str().c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:1670:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (system(sbuf.str().c_str()) != 0)
data/hunspell-1.7.0/src/tools/hunspell.cxx:1682:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(sbuf.str().c_str()) != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:2151: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(stdout, HUNSPELL_PIPE_HEADING);
data/hunspell-1.7.0/src/tools/hunzip.cxx:50: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, DESC);
data/hunspell-1.7.0/src/tools/hzip.cxx:73:3:  [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, err, par);
data/hunspell-1.7.0/src/tools/hzip.cxx:92: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(table[i], code);
data/hunspell-1.7.0/src/tools/munch.cxx:168:13:  [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(ap, (roots[j].hashent)->affstr);
data/hunspell-1.7.0/src/tools/munch.cxx:729: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(pp, (word + aent->stripl));
data/hunspell-1.7.0/src/tools/munch.cxx:771:11:  [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(pp, aent->appnd);
data/hunspell-1.7.0/src/tools/hunspell.cxx:141:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define HOME getenv("HOME")
data/hunspell-1.7.0/src/tools/hunspell.cxx:635:21:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
  char *odftmpdir = tmpnam(NULL);
data/hunspell-1.7.0/src/tools/hunspell.cxx:2007:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!(dicname = getenv("DICTIONARY"))) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:2014:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if ((dicname = getenv(tests[i])) && strcmp(dicname, "") != 0) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:2044:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("DICPATH")) {
data/hunspell-1.7.0/src/tools/hunspell.cxx:2045:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      path_std_str.append(getenv("DICPATH")).append(PATHSEP);
data/hunspell-1.7.0/src/tools/hunspell.cxx:2075:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    privdicname = mystrdup(getenv("WORDLIST"));
data/hunspell-1.7.0/src/hunspell/affentry.cxx:888:4:  [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   conds[SETSIZE];   // array which encodes the conditions to be met
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:248:3:  [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 dupflags[CONTSIZE];
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:1048:5:  [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(entry.c.conds, cs, short_part);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:3715:10:  [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).
  *out = atoi(s.c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:3732:26:  [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).
        cpdmaxsyllable = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:3786:17:  [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).
        numrl = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:3878:15:  [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).
        num = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:3971: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).
        numcheckcpd = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4068:21:  [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).
        numdefcpd = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4171: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).
        nummap = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4273:20:  [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).
        numbreak = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4481:19:  [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).
        numents = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4609:27:  [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).
              int index = atoi(dash_str.c_str());
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4679:25:  [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).
            int index = atoi(chunk.c_str());
data/hunspell-1.7.0/src/hunspell/csutil.cxx:120:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int len = MultiByteToWideChar(CP_UTF8, 0, path, -1, NULL, 0);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:123:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, path, -1, buff, len);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:125:14:  [2] (misc) open:
  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).
      stream.open(buff2, mode);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:132:10:  [2] (misc) open:
  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).
  stream.open(path, mode);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:304: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(d, s, sl);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:438:11:  [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.
    const char c(beg[i]);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:606:3:  [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(dest, &source, sizeof(char*));
data/hunspell-1.7.0/src/hunspell/csutil.cxx:612:3:  [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(&p, s, sizeof(char*));
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:255:56:  [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).
      store_pointer(hpw + word->size() + 1, get_aliasm(atoi(desc->c_str())));
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:442: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(flags2, flags, flagslen * sizeof(unsigned short));
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:543:9:  [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((void*)flags, (void*)dp->astr,
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:590:15:  [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).
  tablesize = atoi(ts.c_str());
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:669:21:  [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).
        int index = atoi(ap.c_str());
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:754:19:  [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).
          int i = atoi(src);
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:767:15:  [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).
      int i = atoi(src);
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:785: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(*result, &w[0], len * sizeof(short));
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:827:19:  [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).
          int i = atoi(src);
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:839:15:  [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).
      int i = atoi(src);
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:856: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(&result[origsize], &w[0], len * sizeof(short));
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:877:11:  [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).
      i = atoi(f);
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:887:11:  [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(&s, &w[0], 1 * sizeof(short));
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:1068:21:  [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).
        numaliasf = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:1197:21:  [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).
        numaliasm = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/hashmgr.cxx:1310: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).
        numrep = atoi(std::string(start_piece, iter).c_str());
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:69: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 c[2];
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:208:3:  [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 linebuf[BUFSIZE];
data/hunspell-1.7.0/src/hunspell/phonet.cxx:81:3:  [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 word[MAXPHONETUTF8LEN + 1];
data/hunspell-1.7.0/src/parsers/testparser.cxx:63:7:  [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(argv[1], "r");
data/hunspell-1.7.0/src/parsers/testparser.cxx:72:3:  [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[MAXLNLEN];
data/hunspell-1.7.0/src/tools/analyze.cxx:61:18:  [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).
  FILE* wtclst = fopen(argv[3], "r");
data/hunspell-1.7.0/src/tools/analyze.cxx:68:3:  [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/hunspell-1.7.0/src/tools/chmorph.cxx:70:7:  [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(argv[3], "r");
data/hunspell-1.7.0/src/tools/chmorph.cxx:80:3:  [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[MAXLNLEN];
data/hunspell-1.7.0/src/tools/hunspell.cxx:152:1:  [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 text_conv[MAXLNLEN];
data/hunspell-1.7.0/src/tools/hunspell.cxx:335: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 letters[MAXLNLEN];
data/hunspell-1.7.0/src/tools/hunspell.cxx:337: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 ch[2];
data/hunspell-1.7.0/src/tools/hunspell.cxx:338: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 u8[10];
data/hunspell-1.7.0/src/tools/hunspell.cxx:497:13:  [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).
  FILE* f = fopen(LOGFILE, "a");
data/hunspell-1.7.0/src/tools/hunspell.cxx:536:7:  [2] (misc) open:
  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).
  dic.open(filename, std::ios_base::in);
data/hunspell-1.7.0/src/tools/hunspell.cxx:547:5:  [2] (misc) open:
  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.open(filename, std::ios_base::in);
data/hunspell-1.7.0/src/tools/hunspell.cxx:555:15:  [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).
  FILE* dic = fopen(filename.c_str(), "r");
data/hunspell-1.7.0/src/tools/hunspell.cxx:558:11:  [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).
    dic = fopen(filename.c_str(), "a");
data/hunspell-1.7.0/src/tools/hunspell.cxx:560:11:  [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).
    dic = fopen(filename2.c_str(), "a");
data/hunspell-1.7.0/src/tools/hunspell.cxx:583:3:  [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 input[INPUTLEN];
data/hunspell-1.7.0/src/tools/hunspell.cxx:649:3:  [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[MAXLNLEN];
data/hunspell-1.7.0/src/tools/hunspell.cxx:691:14:  [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).
    fileid = fopen(file.c_str(), "r");
data/hunspell-1.7.0/src/tools/hunspell.cxx:1554:3:  [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[MAXLNLEN];
data/hunspell-1.7.0/src/tools/hunspell.cxx:1559:16:  [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).
  FILE* text = fopen(filename, "r");
data/hunspell-1.7.0/src/tools/hunspell.cxx:1602:12:  [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).
    text = fopen(filename, "r");
data/hunspell-1.7.0/src/tools/hunspell.cxx:1611:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  FILE* tempfile = tmpfile();
data/hunspell-1.7.0/src/tools/hunspell.cxx:1657:12:  [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).
    text = fopen(filename, "wb");
data/hunspell-1.7.0/src/tools/hunspell.cxx:2162:19:  [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).
        FILE* f = fopen(argv[i], "r");
data/hunspell-1.7.0/src/tools/hzip.cxx:116: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 c[2];
data/hunspell-1.7.0/src/tools/hzip.cxx:193:3:  [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 bitbuf[BUFSIZE];
data/hunspell-1.7.0/src/tools/hzip.cxx:198: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 c[2];
data/hunspell-1.7.0/src/tools/hzip.cxx:275:3:  [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[BUFSIZE];
data/hunspell-1.7.0/src/tools/hzip.cxx:276:3:  [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 buf2[BUFSIZE * 2];
data/hunspell-1.7.0/src/tools/hzip.cxx:277:3:  [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 prev[BUFSIZE];
data/hunspell-1.7.0/src/tools/hzip.cxx:330:5:  [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(prev, buf, i);
data/hunspell-1.7.0/src/tools/hzip.cxx:342:13:  [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).
  FILE* f = fopen(filename, "r");
data/hunspell-1.7.0/src/tools/hzip.cxx:348:20:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int tempfileno = mkstemp(tmpfiletemplate);
data/hunspell-1.7.0/src/tools/hzip.cxx:365:14:  [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).
  FILE* f2 = fopen(out.c_str(), "wb");
data/hunspell-1.7.0/src/tools/munch.cxx:64:3:  [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 as[(MAX_PREFIXES + MAX_SUFFIXES)];
data/hunspell-1.7.0/src/tools/munch.cxx:93:12:  [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).
  afflst = fopen(af, "r");
data/hunspell-1.7.0/src/tools/munch.cxx:116:12:  [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).
  wrdlst = fopen(wf, "r");
data/hunspell-1.7.0/src/tools/munch.cxx:286:25:  [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).
              numents = atoi(piece);
data/hunspell-1.7.0/src/tools/munch.cxx:398: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 mbr[MAX_WD_LEN];
data/hunspell-1.7.0/src/tools/munch.cxx:629:3:  [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 ts[MAX_LN_LEN];
data/hunspell-1.7.0/src/tools/munch.cxx:636:15:  [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).
  tablesize = atoi(ts);
data/hunspell-1.7.0/src/tools/munch.cxx:695:3:  [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(tmp, ep->affstr, (al + 1));
data/hunspell-1.7.0/src/tools/munch.cxx:710:3:  [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 tword[MAX_WD_LEN];
data/hunspell-1.7.0/src/tools/munch.cxx:747:3:  [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 tword[MAX_WD_LEN];
data/hunspell-1.7.0/src/tools/munch.cxx:836:9:  [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(rv, mp, nc);
data/hunspell-1.7.0/src/tools/munch.cxx:842:9:  [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(rv, mp, n);
data/hunspell-1.7.0/src/tools/munch.cxx:857: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(d, s, sl);
data/hunspell-1.7.0/src/tools/munch.h:69:3:  [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 conds[SET_SIZE];
data/hunspell-1.7.0/src/tools/unmunch.cxx:65:3:  [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 ts[MAX_LN_LEN];
data/hunspell-1.7.0/src/tools/unmunch.cxx:88:12:  [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).
  afflst = fopen(af, "r");
data/hunspell-1.7.0/src/tools/unmunch.cxx:113:12:  [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).
  wrdlst = fopen(wf, "r");
data/hunspell-1.7.0/src/tools/unmunch.cxx:200:25:  [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).
              numents = atoi(piece);
data/hunspell-1.7.0/src/tools/unmunch.cxx:318: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 mbr[MAX_WD_LEN];
data/hunspell-1.7.0/src/tools/unmunch.cxx:518:9:  [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(rv, mp, nc);
data/hunspell-1.7.0/src/tools/unmunch.cxx:524:9:  [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(rv, mp, n);
data/hunspell-1.7.0/src/tools/unmunch.cxx:539: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(d, s, sl);
data/hunspell-1.7.0/src/tools/unmunch.h:65:3:  [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 conds[SET_SIZE];
data/hunspell-1.7.0/src/hunspell/affentry.cxx:960:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
(read that only 8 character positions) can be examined at one
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:772:7:  [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(key) == 0) {
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:838:7:  [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(key) == 0) {
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:1046: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).
    const size_t cslen = strlen(cs);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:1958:56:  [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).
                     ? affix_check((word.c_str() + i), strlen(word.c_str() + i), compoundflag,
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:1964:52:  [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).
              rv = affix_check((word.c_str() + i), strlen(word.c_str() + i), compoundend,
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:1969:52:  [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).
              rv = affix_check((word.c_str() + i), strlen(word.c_str() + i), 0, IN_CPD_END);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2557:40:  [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).
          rv = affix_check((word + i), strlen(word + i), compoundflag);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2564:40:  [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).
          rv = affix_check((word + i), strlen(word + i), compoundend);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2568:40:  [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).
          rv = affix_check((word + i), strlen(word + i), 0, IN_CPD_END);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2572: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).
              m = affix_check_morph((word + i), strlen(word + i), compoundflag);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2574: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).
              m = affix_check_morph((word + i), strlen(word + i), compoundend);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2664:47:  [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).
            m = affix_check_morph((word + i), strlen(word + i), compoundflag);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2666:47:  [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).
            m = affix_check_morph((word + i), strlen(word + i), compoundend);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:2686: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).
          compound_check_morph((word + i), strlen(word + i), wordnum + 1,
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:3430:22:  [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).
            int l1 = strlen(wlst[j].word);
data/hunspell-1.7.0/src/hunspell/affixmgr.cxx:4754:15:  [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).
  int condl = strlen(cond);
data/hunspell-1.7.0/src/hunspell/csutil.cxx:301:17:  [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).
    size_t sl = strlen(s) + 1;
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2325:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      size_t read;
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2327:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      Tie(result, read, written) =
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2329:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (result != kInputEmpty || read != 1 || written != 1) {
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2334:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      Tie(result, read, written) =
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2336:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (result != kInputEmpty || read != 1 || written != 1) {
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2342:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      Tie(result, read, written) =
data/hunspell-1.7.0/src/hunspell/csutil.cxx:2344:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (result != kInputEmpty || read != 1 || written != 1) {
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:273: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).
  int nl = strlen(q);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:310: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).
  int nl = strlen((const char*)q);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:1129:25:  [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).
          size_t slen = strlen(space + 1);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:1777:10:  [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).
    p += strlen(attr);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:1779:14:  [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 p + strlen(attr);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:1797: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).
    std::string cw = get_xml_par(p + strlen(tag) - 1);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:1907: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).
  len = strlen(word);
data/hunspell-1.7.0/src/hunspell/hunspell.cxx:2018:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest, d.c_str(), destsize);
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:82:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!fin.read(in, 3) ||
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:93:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!fin.read(reinterpret_cast<char*>(c), 1))
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:104:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!fin.read(reinterpret_cast<char*>(c), 2))
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:122:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!fin.read(reinterpret_cast<char*>(c), 2))
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:132:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!fin.read(reinterpret_cast<char*>(&l), 1))
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:139:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!fin.read(in, l / 8 + 1))
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:180:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fin.read(in, BUFSIZE);
data/hunspell-1.7.0/src/hunspell/hunzip.cxx:250: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).
    strcpy(linebuf + l - 1, line + strlen(line) - right - 1);
data/hunspell-1.7.0/src/hunspell/phonet.cxx:82:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(word, inword.c_str(), MAXPHONETUTF8LEN);
data/hunspell-1.7.0/src/hunspell/replist.cxx:122:7:  [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(word) == dat[ind]->pattern.size())
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:126:15:  [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).
      ckeyl = strlen(ckey);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:133:15:  [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).
      ctryl = strlen(ctry);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:386: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).
  int wl = strlen(word);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:455: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).
  int wl = strlen(word);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:464:52:  [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 (r - word + reptable[i].pattern.size() == strlen(word))
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:511: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).
  int wl = strlen(word);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:792: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).
  int wl = strlen(word);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:1120: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).
  int nc = strlen(word);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:1440:15:  [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(guess[i]);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:1525:17:  [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(rootsphon[i]);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:2065:14:  [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).
    int l1 = strlen(s1);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:2066:14:  [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).
    int l2 = strlen(s2);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:2150: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(word);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:2197: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).
    m = strlen(s);
data/hunspell-1.7.0/src/hunspell/suggestmgr.cxx:2198: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).
    n = strlen(s2);
data/hunspell-1.7.0/src/parsers/latexparser.cxx:191: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).
          head += strlen(PATTERN[pattern_num].pat[0]) - 1;
data/hunspell-1.7.0/src/parsers/latexparser.cxx:218:68:  [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).
                   strncmp(line[actual].c_str() + head, UTF8_APOS, strlen(UTF8_APOS)) ==
data/hunspell-1.7.0/src/parsers/latexparser.cxx:220: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).
                   is_wordchar(line[actual].c_str() + head + strlen(UTF8_APOS))) {
data/hunspell-1.7.0/src/parsers/latexparser.cxx:221: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).
          head += strlen(UTF8_APOS) - 1;
data/hunspell-1.7.0/src/parsers/latexparser.cxx:237: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).
          head += strlen(PATTERN[pattern_num].pat[1]) - 1;
data/hunspell-1.7.0/src/parsers/textparser.cxx:98:54:  [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 ((i < LATIN1_LEN) && strncmp(LATIN1[i], s, strlen(LATIN1[i])))
data/hunspell-1.7.0/src/parsers/textparser.cxx:118:32:  [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).
  for (unsigned int j = 0; j < strlen(wordchars); ++j) {
data/hunspell-1.7.0/src/parsers/textparser.cxx:178: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).
          head += strlen(latin1);
data/hunspell-1.7.0/src/parsers/textparser.cxx:183: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).
          head += strlen(latin1);
data/hunspell-1.7.0/src/parsers/textparser.cxx:193:68:  [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).
                   strncmp(line[actual].c_str() + head, UTF8_APOS, strlen(UTF8_APOS)) ==
data/hunspell-1.7.0/src/parsers/textparser.cxx:195: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).
                   is_wordchar(line[actual].c_str() + head + strlen(UTF8_APOS))) {
data/hunspell-1.7.0/src/parsers/textparser.cxx:196: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).
          head += strlen(UTF8_APOS) - 1;
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:130: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).
          head += strlen(latin1);
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:137: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).
          head += strlen(latin1);
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:141:28:  [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).
                           strlen(ENTITY_APOS)) == 0 &&
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:142: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).
                   is_wordchar(line[actual].c_str() + head + strlen(ENTITY_APOS))) {
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:143: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).
          head += strlen(ENTITY_APOS) - 1;
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:148:68:  [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).
                   strncmp(line[actual].c_str() + head, UTF8_APOS, strlen(UTF8_APOS)) ==
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:150: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).
                   is_wordchar(line[actual].c_str() + head + strlen(UTF8_APOS))) {
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:151: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).
          head += strlen(UTF8_APOS) - 1;
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:157:37:  [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).
              size_t endpos = pos + strlen(PATTERN3[pattern3_num][1]) - 1;
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:181: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).
          head += strlen(PATTERN[pattern_num][1]) - 1;
data/hunspell-1.7.0/src/parsers/xmlparser.cxx:231:34:  [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).
        word.erase(pos, endpos + strlen(PATTERN3[i][1]) - pos);
data/hunspell-1.7.0/src/tools/chmorph.cxx:94:28:  [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).
            r.append(pos + strlen(argv[4]));
data/hunspell-1.7.0/src/tools/hunspell.cxx:374: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).
      char* dest = letters + strlen(letters);  // append wordchars
data/hunspell-1.7.0/src/tools/hunspell.cxx:461:18:  [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 (((strlen(extension) == 3) &&
data/hunspell-1.7.0/src/tools/hunspell.cxx:463:18:  [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).
               ((strlen(extension) == 4) && (extension[0] == 'f') &&
data/hunspell-1.7.0/src/tools/hunspell.cxx:573:23:  [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).
  const char* p = s + strlen(s);
data/hunspell-1.7.0/src/tools/hunspell.cxx:1705:28:  [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).
    buf.erase(buf.size() - strlen(HZIP_EXTENSION));
data/hunspell-1.7.0/src/tools/hunspell.cxx:1722:11:  [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(de->d_name);
data/hunspell-1.7.0/src/tools/hzip.cxx:121:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((j = getc(f)) != -1 && (k = getc(f)) != -1) {
data/hunspell-1.7.0/src/tools/hzip.cxx:121:38:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((j = getc(f)) != -1 && (k = getc(f)) != -1) {
data/hunspell-1.7.0/src/tools/hzip.cxx:257:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((cx[0] = getc(f)) != -1 && (cx[1] = getc(f)) != -1) {
data/hunspell-1.7.0/src/tools/hzip.cxx:257:46:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((cx[0] = getc(f)) != -1 && (cx[1] = getc(f)) != -1) {
data/hunspell-1.7.0/src/tools/hzip.cxx:347:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  mode_t mask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
data/hunspell-1.7.0/src/tools/hzip.cxx:349:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(mask);
data/hunspell-1.7.0/src/tools/munch.cxx:134:25:  [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).
      aff_chk(ep->word, strlen(ep->word));
data/hunspell-1.7.0/src/tools/munch.cxx:160:17:  [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).
          nwl = strlen(nword);
data/hunspell-1.7.0/src/tools/munch.cxx:172:16:  [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).
          al = strlen(as);
data/hunspell-1.7.0/src/tools/munch.cxx:328:32:  [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).
                nptr->stripl = strlen(nptr->strip);
data/hunspell-1.7.0/src/tools/munch.cxx:338:32:  [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).
                nptr->appndl = strlen(nptr->appnd);
data/hunspell-1.7.0/src/tools/munch.cxx:405:8:  [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).
  nc = strlen(cs);
data/hunspell-1.7.0/src/tools/munch.cxx:572: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).
        int nwl = strlen(nword);
data/hunspell-1.7.0/src/tools/munch.cxx:690:8:  [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).
  al = strlen(ep->affstr);
data/hunspell-1.7.0/src/tools/munch.cxx:724:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(tword, aent->appnd, MAX_WD_LEN - 1);
data/hunspell-1.7.0/src/tools/munch.cxx:764:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tword, word, MAX_WD_LEN - 1);
data/hunspell-1.7.0/src/tools/munch.cxx:803:25:  [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).
              int nwl = strlen(wlist[j].word);
data/hunspell-1.7.0/src/tools/munch.cxx:827:11:  [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).
  int n = strlen(mp);
data/hunspell-1.7.0/src/tools/munch.cxx:854:14:  [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).
    int sl = strlen(s) + 1;
data/hunspell-1.7.0/src/tools/munch.cxx:863:11:  [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).
  int k = strlen(s);
data/hunspell-1.7.0/src/tools/unmunch.cxx:133: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).
      al = strlen(ap);
data/hunspell-1.7.0/src/tools/unmunch.cxx:139:14:  [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).
    int wl = strlen(ts);
data/hunspell-1.7.0/src/tools/unmunch.cxx:242:32:  [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).
                nptr->stripl = strlen(nptr->strip);
data/hunspell-1.7.0/src/tools/unmunch.cxx:252:32:  [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).
                nptr->appndl = strlen(nptr->appnd);
data/hunspell-1.7.0/src/tools/unmunch.cxx:325:8:  [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).
  nc = strlen(cs);
data/hunspell-1.7.0/src/tools/unmunch.cxx:485:25:  [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).
              int nwl = strlen(wlist[j].word);
data/hunspell-1.7.0/src/tools/unmunch.cxx:509:11:  [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).
  int n = strlen(mp);
data/hunspell-1.7.0/src/tools/unmunch.cxx:536:14:  [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).
    int sl = strlen(s) + 1;
data/hunspell-1.7.0/src/tools/unmunch.cxx:545:11:  [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).
  int k = strlen(s);

ANALYSIS SUMMARY:

Hits = 250
Lines analyzed = 21633 in approximately 0.76 seconds (28639 lines/second)
Physical Source Lines of Code (SLOC) = 16900
Hits@level = [0] 170 [1] 117 [2]  99 [3]   7 [4]  27 [5]   0
Hits@level+ = [0+] 420 [1+] 250 [2+] 133 [3+]  34 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 24.8521 [1+] 14.7929 [2+] 7.86982 [3+] 2.01183 [4+] 1.59763 [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.