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/enchant-1.6.0/src/hspell/hspell_provider.c Examining data/enchant-1.6.0/src/pwl.c Examining data/enchant-1.6.0/src/pwl.h Examining data/enchant-1.6.0/src/enchant++.h Examining data/enchant-1.6.0/src/voikko/voikko_provider.c Examining data/enchant-1.6.0/src/uspell/uspell_provider.cpp Examining data/enchant-1.6.0/src/myspell/hunzip.cxx Examining data/enchant-1.6.0/src/myspell/phonet.cxx Examining data/enchant-1.6.0/src/myspell/hashmgr.cxx Examining data/enchant-1.6.0/src/myspell/suggestmgr.cxx Examining data/enchant-1.6.0/src/myspell/utf_info.cxx Examining data/enchant-1.6.0/src/myspell/hunspell.cxx Examining data/enchant-1.6.0/src/myspell/filemgr.cxx Examining data/enchant-1.6.0/src/myspell/dictmgr.cxx Examining data/enchant-1.6.0/src/myspell/hunspell.h Examining data/enchant-1.6.0/src/myspell/affixmgr.cxx Examining data/enchant-1.6.0/src/myspell/csutil.cxx Examining data/enchant-1.6.0/src/myspell/affentry.cxx Examining data/enchant-1.6.0/src/myspell/myspell_checker.cpp Examining data/enchant-1.6.0/src/ispell/lookup.cpp Examining data/enchant-1.6.0/src/ispell/ispell_def.h Examining data/enchant-1.6.0/src/ispell/msgs.h Examining data/enchant-1.6.0/src/ispell/ispell_checker.h Examining data/enchant-1.6.0/src/ispell/hash.cpp Examining data/enchant-1.6.0/src/ispell/correct.cpp Examining data/enchant-1.6.0/src/ispell/makedent.cpp Examining data/enchant-1.6.0/src/ispell/sp_spell.h Examining data/enchant-1.6.0/src/ispell/tgood.cpp Examining data/enchant-1.6.0/src/ispell/ispell_checker.cpp Examining data/enchant-1.6.0/src/ispell/good.cpp Examining data/enchant-1.6.0/src/ispell/ispell.h Examining data/enchant-1.6.0/src/zemberek/zemberek.h Examining data/enchant-1.6.0/src/zemberek/zemberek_provider.cpp Examining data/enchant-1.6.0/src/zemberek/zemberek.cpp Examining data/enchant-1.6.0/src/enchant-provider.h Examining data/enchant-1.6.0/src/aspell/aspell_provider.c Examining data/enchant-1.6.0/src/prefix.c Examining data/enchant-1.6.0/src/prefix.h Examining data/enchant-1.6.0/src/enchant.h Examining data/enchant-1.6.0/src/enchant.c Examining data/enchant-1.6.0/src/applespell/applespell_checker.h Examining data/enchant-1.6.0/tests/test-enchant.c Examining data/enchant-1.6.0/tests/test-enchantxx.cpp Examining data/enchant-1.6.0/tests/enchant-lsmod.c Examining data/enchant-1.6.0/tests/enchant-ispell.c FINAL RESULTS: data/enchant-1.6.0/src/prefix.c:75:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. size = readlink (path2, path, buf_size - 1); data/enchant-1.6.0/src/aspell/aspell_provider.c:371:5: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(wszFullLibraryPath, path); data/enchant-1.6.0/src/aspell/aspell_provider.c:373:5: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). wcscat(wszFullLibraryPath, libraryName); data/enchant-1.6.0/src/ispell/correct.cpp:313: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 (m_possibilities[m_pcount++], realword); data/enchant-1.6.0/src/ispell/ispell.h:407:24: [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). #define icharcpy(a, b) strcpy ((char *) (a), (char *) (b)) data/enchant-1.6.0/src/ispell/lookup.cpp:261:4: [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, LOOKUP_C_CANT_READ, hashname); data/enchant-1.6.0/src/ispell/lookup.cpp:263:4: [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, LOOKUP_C_NULL_HASH, hashname); data/enchant-1.6.0/src/ispell/lookup.cpp:265:4: [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, data/enchant-1.6.0/src/ispell/lookup.cpp:272: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, data/enchant-1.6.0/src/ispell/lookup.cpp:279: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, data/enchant-1.6.0/src/ispell/lookup.cpp:289: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, data/enchant-1.6.0/src/ispell/lookup.cpp:309: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, LOOKUP_C_NO_HASH_SPACE); data/enchant-1.6.0/src/ispell/lookup.cpp:318:7: [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, LOOKUP_C_BAD_FORMAT); data/enchant-1.6.0/src/ispell/lookup.cpp:327:8: [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, LOOKUP_C_BAD_FORMAT); data/enchant-1.6.0/src/ispell/lookup.cpp:338: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, LOOKUP_C_BAD_FORMAT); data/enchant-1.6.0/src/ispell/lookup.cpp:348: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, LOOKUP_C_BAD_FORMAT); data/enchant-1.6.0/src/ispell/lookup.cpp:435: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, LOOKUP_C_NO_LANG_SPACE); data/enchant-1.6.0/src/ispell/lookup.cpp:497: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, LOOKUP_C_NO_LANG_SPACE); data/enchant-1.6.0/src/ispell/lookup.cpp:517:4: [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, LOOKUP_C_NO_LANG_SPACE); data/enchant-1.6.0/src/ispell/lookup.cpp:717: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, WORD_TOO_LONG (schar)); data/enchant-1.6.0/src/ispell/makedent.cpp:288: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, MAKEDENT_C_NO_WORD_SPACE, dp->word); data/enchant-1.6.0/src/ispell/makedent.cpp:300:4: [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, MAKEDENT_C_NO_WORD_SPACE, dp->word); data/enchant-1.6.0/src/ispell/makedent.cpp:304: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 (tdent->word, dp->word); data/enchant-1.6.0/src/ispell/makedent.cpp:688: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, WORD_TOO_LONG (in)); data/enchant-1.6.0/src/ispell/makedent.cpp:706: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, WORD_TOO_LONG (out)); data/enchant-1.6.0/src/ispell/makedent.cpp:729: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 (out, m_hashheader.stringchars[static_cast<unsigned>(in) - SET_SIZE]); data/enchant-1.6.0/src/myspell/affentry.cxx:78:19: [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(tword,appnd); data/enchant-1.6.0/src/myspell/affentry.cxx:81:16: [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 + stripl)); data/enchant-1.6.0/src/myspell/affentry.cxx:172:25: [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). if (stripl) strcpy (tmpword, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:173: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 ((tmpword + stripl), (word + appndl)); data/enchant-1.6.0/src/myspell/affentry.cxx:234:25: [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). if (stripl) strcpy (tmpword, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:235: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 ((tmpword + stripl), (word + appndl)); data/enchant-1.6.0/src/myspell/affentry.cxx:281:25: [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). if (stripl) strcpy (tmpword, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:282: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 ((tmpword + stripl), (word + appndl)); data/enchant-1.6.0/src/myspell/affentry.cxx:332:25: [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). if (stripl) strcpy (tmpword, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:333: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 ((tmpword + stripl), (word + appndl)); data/enchant-1.6.0/src/myspell/affentry.cxx:355:33: [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(result, morphcode); data/enchant-1.6.0/src/myspell/affentry.cxx:356:36: [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). } else strcat(result,getKey()); data/enchant-1.6.0/src/myspell/affentry.cxx:359:33: [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(result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affentry.cxx:360:33: [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(result,HENTRY_WORD(he)); data/enchant-1.6.0/src/myspell/affentry.cxx:366:33: [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(result,HENTRY_DATA(he)); data/enchant-1.6.0/src/myspell/affentry.cxx:371:33: [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(result, MORPH_FLAG); data/enchant-1.6.0/src/myspell/affentry.cxx:372:33: [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(result, flag); data/enchant-1.6.0/src/myspell/affentry.cxx:389:25: [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(result, st); data/enchant-1.6.0/src/myspell/affentry.cxx:451:15: [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(tword,word); data/enchant-1.6.0/src/myspell/affentry.cxx:453:19: [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(tword + len - stripl, appnd); data/enchant-1.6.0/src/myspell/affentry.cxx:581: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 (tmpword, word); data/enchant-1.6.0/src/myspell/affentry.cxx:584:17: [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 ((char *)cp, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:681: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 (tmpword, word); data/enchant-1.6.0/src/myspell/affentry.cxx:684:17: [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 ((char *)cp, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:746: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 (tmpword, word); data/enchant-1.6.0/src/myspell/affentry.cxx:749:17: [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 ((char *)cp, strip); data/enchant-1.6.0/src/myspell/affentry.cxx:768:33: [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(result, ((PfxEntry *) ppfx)->getMorph()); data/enchant-1.6.0/src/myspell/affentry.cxx:771:29: [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(result,st); data/enchant-1.6.0/src/myspell/affentry.cxx:778:29: [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(result, st); data/enchant-1.6.0/src/myspell/affentry.cxx:786:29: [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(result, st); data/enchant-1.6.0/src/myspell/affentry.cxx:901: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/enchant-1.6.0/src/myspell/affixmgr.cxx:673: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(expw, wordchars); data/enchant-1.6.0/src/myspell/affixmgr.cxx:970:5: [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(result, MORPH_FLAG); data/enchant-1.6.0/src/myspell/affixmgr.cxx:971:5: [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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1135: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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1153:21: [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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1186: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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1200:17: [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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1229: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(candidate, word); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1231: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(candidate+(r-word),reptable[i].pattern2); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1232: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(candidate+(r-word)+lenr, r+lenp); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1432: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(st, word); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1817: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(st, word); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1836:25: [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). if (partresult) strcat(presult, partresult); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1856:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(presult + strlen(presult), "%c%s%s", MSEP_FLD, MORPH_PART, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1858:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(presult + strlen(presult), "%c%s%s", MSEP_FLD, MORPH_STEM, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1863:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(presult + strlen(presult), "%c%s", MSEP_FLD, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1901:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(presult + strlen(presult), "%c%s%s%s", MSEP_FLD, data/enchant-1.6.0/src/myspell/affixmgr.cxx:2020:19: [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(*result, presult); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2022:19: [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(*result, MORPH_PART); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2023:19: [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(*result, word+i); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2024:59: [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). if (complexprefixes && HENTRY_DATA(rv)) strcat(*result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2027:21: [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(*result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2028:21: [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(*result, HENTRY_WORD(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2034:21: [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(*result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2080:23: [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(*result, presult); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2082:23: [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(*result, MORPH_PART); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2083:23: [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(*result, word+i); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2086:46: [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). if (complexprefixes) strcat(*result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2089:28: [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(*result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2090:28: [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(*result, HENTRY_WORD(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2096:29: [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(*result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2127:23: [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(*result, presult); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2129:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(*result + strlen(*result), "%c%s%s%s", MSEP_FLD, data/enchant-1.6.0/src/myspell/affixmgr.cxx:2207:23: [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(*result, presult); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2209:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(*result + strlen(*result), "%c%s%s%s", MSEP_FLD, data/enchant-1.6.0/src/myspell/affixmgr.cxx:2350:41: [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(result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2351:41: [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(result, derived); // XXX check size data/enchant-1.6.0/src/myspell/affixmgr.cxx:2354:41: [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(result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2355:41: [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(result, word); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2438:25: [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(result, ((PfxEntry *) ppfx)->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2442:17: [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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2446:21: [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(result, se->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2466:21: [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(result2, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2481:21: [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(result3, sptr->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2485:17: [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(result, result2); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2540:21: [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(result, ((PfxEntry *) ppfx)->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2544:53: [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). if (complexprefixes && HENTRY_DATA(rv)) strcat(result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2547:17: [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(result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2548:17: [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(result, HENTRY_WORD(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2555:21: [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(result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2559:17: [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(result, se->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2598:29: [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(result, ((PfxEntry *) ppfx)->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2602:61: [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). if (complexprefixes && HENTRY_DATA(rv)) strcat(result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2605:29: [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(result, MORPH_STEM); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2606:29: [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(result, HENTRY_WORD(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2613:25: [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(result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2627:21: [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(result, sptr->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2680:9: [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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2687:9: [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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2697: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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2704: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(result, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2732: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(stemmorph, morph); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2748:38: [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). if (stemmorphcatpos) strcpy(stemmorphcatpos, sptr->getMorph()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2836:8: [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(st, phon); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2837:8: [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(st, sptr->getKey()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:4001:29: [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(nptr->morphcode, piece); data/enchant-1.6.0/src/myspell/csutil.cxx:326: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(text, lines[0]); data/enchant-1.6.0/src/myspell/csutil.cxx:336: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(text, lines[i]); data/enchant-1.6.0/src/myspell/csutil.cxx:366: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(*text, lines[0]); data/enchant-1.6.0/src/myspell/csutil.cxx:380:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(*text + strlen(*text), "%s%s", lines[i], " | "); data/enchant-1.6.0/src/myspell/csutil.cxx:401: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(dest, s); data/enchant-1.6.0/src/myspell/filemgr.cxx:8: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, err, par); data/enchant-1.6.0/src/myspell/filemgr.cxx:19: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(st, file); data/enchant-1.6.0/src/myspell/filemgr.cxx:20: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(st, HZIP_EXTENSION); data/enchant-1.6.0/src/myspell/filemgr.cxx:36:45: [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). if (hin && (l = hin->getline())) return strcpy(in, l); data/enchant-1.6.0/src/myspell/hashmgr.cxx:138: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(hpw, word); data/enchant-1.6.0/src/myspell/hashmgr.cxx:167:6: [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 + wbl + 1, desc); data/enchant-1.6.0/src/myspell/hunspell.cxx:580:6: [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(w2, w); data/enchant-1.6.0/src/myspell/hunspell.cxx:594: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(w2, word); data/enchant-1.6.0/src/myspell/hunspell.cxx:736:27: [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(st + (dot - cw) + 2, dot + 1); data/enchant-1.6.0/src/myspell/hunspell.cxx:822:15: [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(w, (*slst)[j]); data/enchant-1.6.0/src/myspell/hunspell.cxx:823:15: [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(w, pos + 1); data/enchant-1.6.0/src/myspell/hunspell.cxx:881:7: [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((*slst)[j], word + strlen(word) - abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:899: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(s, (*slst)[j]); data/enchant-1.6.0/src/myspell/hunspell.cxx:1017:7: [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((*slst)[j], word + strlen(word) - abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:1029:15: [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(w, (*slst)[j]); data/enchant-1.6.0/src/myspell/hunspell.cxx:1030:15: [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(w, pos + 1); data/enchant-1.6.0/src/myspell/hunspell.cxx:1066: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(tok, s); data/enchant-1.6.0/src/myspell/hunspell.cxx:1085:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(result2 + strlen(result2), "%c%s%s", data/enchant-1.6.0/src/myspell/hunspell.cxx:1091:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(result2 + strlen(result2), "%c%s", MSEP_REC, result); data/enchant-1.6.0/src/myspell/hunspell.cxx:1269:9: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1321:9: [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(result, cw); data/enchant-1.6.0/src/myspell/hunspell.cxx:1417:33: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1423:33: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1440:33: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1446:37: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1468:21: [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(result, cw); data/enchant-1.6.0/src/myspell/hunspell.cxx:1472:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1569:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1579:29: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1590:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1596:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1607:29: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1614:29: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1623:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1631:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1640:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1647:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1654:25: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1664:29: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1671:27: [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(result, st); data/enchant-1.6.0/src/myspell/hunspell.cxx:1678:27: [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(result, st); data/enchant-1.6.0/src/myspell/hunzip.cxx:25: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, err, par); data/enchant-1.6.0/src/myspell/hunzip.cxx:36:19: [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). if (filename) strcpy(filename, file); data/enchant-1.6.0/src/myspell/hunzip.cxx:195:16: [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). if (right) strcpy(linebuf + l - 1, line + strlen(line) - right - 1); data/enchant-1.6.0/src/myspell/hunzip.cxx:197: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(line + left, linebuf); data/enchant-1.6.0/src/myspell/phonet.cxx:95: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(word, inword); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:140: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(w2, w); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:261: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(w2, w); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:320: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, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:452: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(candidate, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:454: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(candidate+(r-word),reptable[i].pattern2); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:455: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(candidate+(r-word)+lenr, r+lenp); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:491: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(candidate,word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:492: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(candidate+i-1,word+i+1); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:535: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, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:620: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, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:691:4: [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, word + 1); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:711:4: [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/enchant-1.6.0/src/myspell/suggestmgr.cxx:779: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(candidate + 1, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:829:4: [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, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:913:4: [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, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:968:4: [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, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:978: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(candidate, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:989: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(candidate, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1063: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(w2, w); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1086: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(candidate, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1111: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(candidate, HENTRY_WORD(hp)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1150:8: [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(mw, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1243: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(gl, guess[i]); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1283: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(gl, rootsphon[i]); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1450: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(w2, w); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1497: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(w2, w); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1510:21: [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(result, MORPH_STEM); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1511:21: [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(result, word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1515:21: [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(result, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1524:9: [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(result, st); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1566: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(result, aff); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1592:25: [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(result, aff); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1636: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(tok, s); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1658:21: [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(newpat, pl[i]); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1659:21: [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(newpat, pattern); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1671:33: [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(result2 + r2l + 1, result); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1673:33: [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(result2, gen[j]); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1675:33: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(result2 + strlen(result2), "%c%s%s", data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1689: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(newpattern, pattern); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1741: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(t, s2); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1834: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(t, s2); data/enchant-1.6.0/src/enchant.c:152:13: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. home_dir = g_get_home_dir (); data/enchant-1.6.0/src/enchant.c:330:10: [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). return fopen (filename, mode); data/enchant-1.6.0/src/enchant.c:1519:2: [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 line [1024]; data/enchant-1.6.0/src/ispell/ispell.h:541: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 conds[SET_SIZE + MAXSTRINGCHARS]; /* Adj. char conds */ data/enchant-1.6.0/src/ispell/ispell.h:592: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 nrchars[5]; /* Nroff special characters */ data/enchant-1.6.0/src/ispell/ispell.h:593: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 texchars[13]; /* TeX special characters */ data/enchant-1.6.0/src/ispell/ispell.h:600: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 wordchars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for chars found in wrds */ data/enchant-1.6.0/src/ispell/ispell.h:601: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 upperchars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for uppercase chars */ data/enchant-1.6.0/src/ispell/ispell.h:602: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 lowerchars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for lowercase chars */ data/enchant-1.6.0/src/ispell/ispell.h:603: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 boundarychars[SET_SIZE + MAXSTRINGCHARS]; /* NZ for boundary chars */ data/enchant-1.6.0/src/ispell/ispell.h:604: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 stringstarts[SET_SIZE]; /* NZ if char can start str */ data/enchant-1.6.0/src/ispell/ispell.h:605: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 stringchars[MAXSTRINGCHARS][MAXSTRINGCHARLEN + 1]; /* String chars */ data/enchant-1.6.0/src/ispell/ispell.h:746:7: [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. INIT (char tempfile[MAXPATHLEN], ""); /* Name of file we're spelling into */ data/enchant-1.6.0/src/ispell/ispell_checker.cpp:150:2: [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 szWord[INPUTWORDLEN + MAXAFFIXLEN]; data/enchant-1.6.0/src/ispell/ispell_checker.cpp:197:2: [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 word8[INPUTWORDLEN + MAXAFFIXLEN]; data/enchant-1.6.0/src/ispell/ispell_checker.cpp:439:6: [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 teststring[64]; data/enchant-1.6.0/src/ispell/ispell_checker.cpp:442:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(teststring, "latin%d", n1); data/enchant-1.6.0/src/ispell/ispell_checker.h:174:2: [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 m_ctoken[INPUTWORDLEN + MAXAFFIXLEN]; /* Current token as char */ data/enchant-1.6.0/src/ispell/ispell_checker.h:188:2: [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 m_hashname[MAXPATHLEN]; /* Name of hash table file */ data/enchant-1.6.0/src/ispell/ispell_checker.h:225:2: [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 m_possibilities[MAXPOSSIBLE][INPUTWORDLEN + MAXAFFIXLEN]; data/enchant-1.6.0/src/ispell/lookup.cpp:550:2: [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 num[4]; data/enchant-1.6.0/src/ispell/lookup.cpp:597:13: [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). c = atoi (num); data/enchant-1.6.0/src/ispell/lookup.cpp:653: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 stripbuf[INPUTWORDLEN + 4 * MAXAFFIXLEN + 4]; data/enchant-1.6.0/src/ispell/lookup.cpp:713: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 schar[INPUTWORDLEN + MAXAFFIXLEN]; data/enchant-1.6.0/src/ispell/makedent.cpp:467: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. static char * sp[MAXSTRINGCHARS]; data/enchant-1.6.0/src/ispell/makedent.cpp:703: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. static char out[ICHARTOSSTR_SIZE]; data/enchant-1.6.0/src/ispell/makedent.cpp:721: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. static char out[MAXSTRINGCHARLEN + 1]; data/enchant-1.6.0/src/myspell/affentry.cxx:42: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(c.conds, dp->c.l.conds1, MAXCONDLEN_1); data/enchant-1.6.0/src/myspell/affentry.cxx:44:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. } else memcpy(c.conds, dp->c.conds, MAXCONDLEN); data/enchant-1.6.0/src/myspell/affentry.cxx:70: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 tword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:157: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:219: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:266: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:313: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:314: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affentry.cxx:416: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(c.l.conds1, dp->c.l.conds1, MAXCONDLEN_1); data/enchant-1.6.0/src/myspell/affentry.cxx:418:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. } else memcpy(c.conds, dp->c.conds, MAXCONDLEN); data/enchant-1.6.0/src/myspell/affentry.cxx:444: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 tword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:556: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:657: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:718: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 tmpword[MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affentry.cxx:722: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affentry.cxx:851: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/enchant-1.6.0/src/myspell/affixmgr.cxx:255: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/enchant-1.6.0/src/myspell/affixmgr.cxx:671: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 expw[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1124: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1175: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1217: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 candidate[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1402: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 st [MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1794: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 st [MAXWORDUTF8LEN + 4]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1798: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 presult[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2213:23: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(*result + strlen(*result), "%c", MSEP_REC); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2264: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2419: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2420: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 result2[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2421: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 result3[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2473:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result3, "<%d>", sptr->getKey()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2475:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result3, "<%c%c>", flag >> 8, (flag << 8) >>8); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2476:24: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. } else sprintf(result3, "<%c>", flag); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2500: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2618:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "<%d>", sptr->getKey()); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2620:21: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(result, "<%c%c>", flag >> 8, (flag << 8) >>8); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2621:24: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. } else sprintf(result, "<%c>", flag); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2672: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2718: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 mymorph[MAXLNLEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2835:8: [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 st[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/affixmgr.cxx:3187: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). *out = atoi(s); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3205:41: [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). case 1: { cpdmaxsyllable = atoi(piece); np++; break; } data/enchant-1.6.0/src/myspell/affixmgr.cxx:3215:25: [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(cpdvowels_utf16, w, n * sizeof(w_char)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3254:33: [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(piece); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3335:34: [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). phone->num = atoi(piece); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3421:38: [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(piece); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3501:36: [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(piece); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3584:33: [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(piece); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3643:37: [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(maptable[j].set_utf16, w, n * sizeof(w_char)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3681:35: [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(piece); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3817:34: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:3931:45: [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 + 1); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3989:41: [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(piece); data/enchant-1.6.0/src/myspell/csutil.cxx:256:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (d) memcpy(d,s,((sl+1)*sizeof(char))); data/enchant-1.6.0/src/myspell/csutil.cxx:334:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text + strlen(text), "%c", breakchar); data/enchant-1.6.0/src/myspell/csutil.cxx:378:5: [2] (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). Risk is low because the source is a constant string. strcpy(*text," ( "); data/enchant-1.6.0/src/myspell/csutil.cxx:682:4: [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,p,(strlen(p)+1)); data/enchant-1.6.0/src/myspell/csutil.cxx:689: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(dest, &source, sizeof(char *)); data/enchant-1.6.0/src/myspell/csutil.cxx:696: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(&p, s, sizeof(char *)); data/enchant-1.6.0/src/myspell/csutil.cxx:5220: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 expw[MAXLNLEN]; data/enchant-1.6.0/src/myspell/csutil.cxx:5511:13: [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(*out_utf16, w, n * sizeof(unsigned short)); data/enchant-1.6.0/src/myspell/dictmgr.cxx:60: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 line[MAXDICTENTRYLEN+1]; data/enchant-1.6.0/src/myspell/dictmgr.cxx:65: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). dictlst = fopen(dictpath,"r"); data/enchant-1.6.0/src/myspell/dictmgr.cxx:139:12: [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/enchant-1.6.0/src/myspell/dictmgr.cxx:146: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(rv, mp, n); data/enchant-1.6.0/src/myspell/dictmgr.cxx:164:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (d) memcpy(d,s,((sl+1)*sizeof(char))); data/enchant-1.6.0/src/myspell/filemgr.cxx:14: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). fin = fopen(file, "r"); data/enchant-1.6.0/src/myspell/hashmgr.cxx:165:53: [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 + wbl + 1, get_aliasm(atoi(desc))); data/enchant-1.6.0/src/myspell/hashmgr.cxx:237:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (al) memcpy(flags2, flags, al * sizeof(unsigned short)); data/enchant-1.6.0/src/myspell/hashmgr.cxx:240:15: [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 st[BUFSIZE]; data/enchant-1.6.0/src/myspell/hashmgr.cxx:350: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((void *) flags, (void *) dp->astr, dp->alen * sizeof(short)); data/enchant-1.6.0/src/myspell/hashmgr.cxx:400: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/enchant-1.6.0/src/myspell/hashmgr.cxx:450: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 + 1); data/enchant-1.6.0/src/myspell/hashmgr.cxx:523:38: [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). *dest = (unsigned short) atoi(src); data/enchant-1.6.0/src/myspell/hashmgr.cxx:529:34: [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). *dest = (unsigned short) atoi(src); data/enchant-1.6.0/src/myspell/hashmgr.cxx:538: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(*result, w, len * sizeof(short)); data/enchant-1.6.0/src/myspell/hashmgr.cxx:563:30: [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). s = (unsigned short) atoi(f); data/enchant-1.6.0/src/myspell/hashmgr.cxx:576:14: [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 ch[10]; data/enchant-1.6.0/src/myspell/hashmgr.cxx:583:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf((char *) ch, "%d", f); data/enchant-1.6.0/src/myspell/hashmgr.cxx:708:36: [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(piece); data/enchant-1.6.0/src/myspell/hashmgr.cxx:829:36: [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(piece); data/enchant-1.6.0/src/myspell/hunspell.cxx:334: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:335: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 wspace[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:382:17: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:393:17: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:424:17: [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 tmpword[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:426:17: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:437:25: [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(wspace, cw, wl2); data/enchant-1.6.0/src/myspell/hunspell.cxx:448:14: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:470:21: [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(wspace, cw, wl2); data/enchant-1.6.0/src/myspell/hunspell.cxx:575: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 w2[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:683: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:684: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 wspace[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:711:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:744:29: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:748:25: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:781:22: [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(wspace, cw, (wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:803:51: [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. (*slst)[j] = (char *) realloc((*slst)[j], strlen((*slst)[j]) + 2); data/enchant-1.6.0/src/myspell/hunspell.cxx:820:15: [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 w[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:841:15: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:848:15: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:854:15: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:880:21: [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. (*slst)[j] = (char *) realloc((*slst)[j], strlen((*slst)[j]) + 1 + abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:893: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. char s[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/hunspell.cxx:948: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:949: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 wspace[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:972:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:985:25: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:993:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1016:21: [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. (*slst)[j] = (char *) realloc((*slst)[j], strlen((*slst)[j]) + 1 + abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:1027:15: [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 w[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1045: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1046: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 result2[MAXLNLEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1052:17: [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 * s = (char *) desc[i]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1065: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 tok[MAXLNLEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1117: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1118: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 wspace[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1141:26: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:1155:25: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1168:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1276: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1277: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 wspace[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1296: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1341:25: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:1349:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1354:26: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:1367:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1374:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1381:25: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1490: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1492: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1545: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 cw[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1546: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 wspace[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1559: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/hunspell.cxx:1573:26: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:1586:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1600:26: [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(wspace,cw,wl); data/enchant-1.6.0/src/myspell/hunspell.cxx:1626:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1637:22: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunspell.cxx:1658:25: [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(wspace,cw,(wl+1)); data/enchant-1.6.0/src/myspell/hunzip.cxx:42:14: [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/enchant-1.6.0/src/myspell/hunzip.cxx:47: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). fin = fopen(filename, "rb"); data/enchant-1.6.0/src/myspell/hunzip.cxx:161: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 linebuf[BUFSIZE]; data/enchant-1.6.0/src/myspell/myspell_checker.cpp:164:2: [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 word8[MAXWORDLEN + 1]; data/enchant-1.6.0/src/myspell/myspell_checker.cpp:190:2: [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 word8[MAXWORDLEN + 1]; data/enchant-1.6.0/src/myspell/myspell_checker.cpp:424:2: [2] (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). Risk is low because the source is a constant string. strcpy(aff+len_dic-3, "aff"); data/enchant-1.6.0/src/myspell/phonet.cxx:92: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 word[MAXPHONETUTF8LEN + 1]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:69:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (ckey_utf) memcpy(ckey_utf, t, ckeyl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:80:23: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (ctry_utf) memcpy(ctry_utf, t, ctryl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:135: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 w2[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:256: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 w2[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:308: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:310: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(candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:319: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:396:7: [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 s[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:438: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:483: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:508: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:515:13: [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(candidate_utf, word, (i - 1) * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:516:13: [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(candidate_utf+i-1, word+i+1, (wl-i-1) * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:533: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:574: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:575: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(candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:616: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:642: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:645: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(candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:666: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:672:4: [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(candidate_utf, word + 1, (wl - 1) * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:685: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:704: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:734: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:741:4: [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 (candidate_utf + 1, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:768: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:824: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:864: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:869:4: [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 (candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:907: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:935: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:940:4: [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 (candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:961: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:998: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1003:4: [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 (candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1014:6: [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 (candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1026:6: [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 (candidate_utf, word, wl * sizeof(w_char)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1044: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 * rootsphon[MAX_ROOTS]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1057: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 w2[MAXWORDUTF8LEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1058: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 f[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1068: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 mw[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1083: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 target[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1084: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 candidate[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1110:2: [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 target2[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1161: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 * guess[MAX_GUESS]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1162: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 * guessorig[MAX_GUESS]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1235: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 gl[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1275: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 gl[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1445: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 w2[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1482: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1492: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 w2[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1556: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1573: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 allomorph[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1607: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 result[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1608: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 result2[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1609: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 newpattern[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1622:17: [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 * s = (char *) desc[k]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1635: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 tok[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1657:21: [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 newpat[MAXLNLEN]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1737: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 t[MAXSWUTF8L]; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1833: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 t[MAXSWUTF8L]; data/enchant-1.6.0/src/prefix.c:119:6: [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 ("/proc/self/maps", "r"); data/enchant-1.6.0/src/prefix.c:185:2: [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 *address_string, line[SIZE], *found; data/enchant-1.6.0/src/prefix.c:190:6: [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 ("/proc/self/maps", "r"); data/enchant-1.6.0/src/prefix.c:250: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 (address_string, "0x", 2); data/enchant-1.6.0/src/prefix.c:251: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 (address_string + 2, start_addr, len); data/enchant-1.6.0/src/prefix.c:255: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 (address_string, "0x", 2); data/enchant-1.6.0/src/prefix.c:256: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 (address_string + 2, end_addr, len); data/enchant-1.6.0/src/pwl.c:283:2: [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 buffer[BUFSIZ]; data/enchant-1.6.0/src/uspell/uspell_provider.cpp:134:2: [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(reinterpret_cast<char *>(myWord), word, len); data/enchant-1.6.0/src/uspell/uspell_provider.cpp:189:2: [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(reinterpret_cast<char *>(myWord), word, len); data/enchant-1.6.0/src/aspell/aspell_provider.c:106:55: [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). val = pspell_manager_check (manager, normalizedWord, strlen(normalizedWord)); data/enchant-1.6.0/src/aspell/aspell_provider.c:136:63: [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_list = pspell_manager_suggest (manager, normalizedWord, strlen(normalizedWord)); data/enchant-1.6.0/src/aspell/aspell_provider.c:368:26: [1] (buffer) wcslen: 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). fullLibraryPathLen = wcslen(path) + 1 /* '\\' */+ wcslen(libraryName); data/enchant-1.6.0/src/aspell/aspell_provider.c:368:56: [1] (buffer) wcslen: 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). fullLibraryPathLen = wcslen(path) + 1 /* '\\' */+ wcslen(libraryName); data/enchant-1.6.0/src/aspell/aspell_provider.c:372:5: [1] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant character. wcscat(wszFullLibraryPath, L"\\"); data/enchant-1.6.0/src/enchant.c:449: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 (str); data/enchant-1.6.0/src/enchant.c:803: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/enchant-1.6.0/src/enchant.c:893: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). size_t sugg_len = strlen(suggs[i]); data/enchant-1.6.0/src/enchant.c:933: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/enchant-1.6.0/src/enchant.c:1020: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/enchant-1.6.0/src/enchant.c:1081: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/enchant-1.6.0/src/enchant.c:1110: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/enchant-1.6.0/src/enchant.c:1154: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/enchant-1.6.0/src/enchant.c:1186: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/enchant-1.6.0/src/enchant.c:1213: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/enchant-1.6.0/src/enchant.c:1248: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). mis_len = strlen (mis); data/enchant-1.6.0/src/enchant.c:1251: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). cor_len = strlen (cor); data/enchant-1.6.0/src/enchant.c:1416:24: [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). g_module_suffix_len = strlen (G_MODULE_SUFFIX); data/enchant-1.6.0/src/enchant.c:1422: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). entry_len = strlen (dir_entry); data/enchant-1.6.0/src/enchant.c:1531:21: [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 (i = 0, len = strlen(line); i < len && line[i] != ':'; i++) data/enchant-1.6.0/src/enchant.c:1750:31: [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). g_return_val_if_fail (pwl && strlen(pwl), NULL); data/enchant-1.6.0/src/enchant.c:1844:31: [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). g_return_val_if_fail (tag && strlen(tag), NULL); data/enchant-1.6.0/src/enchant.c:2086:31: [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). g_return_val_if_fail (tag && strlen(tag), 0); data/enchant-1.6.0/src/enchant.c:2135:27: [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). g_return_if_fail (tag && strlen(tag)); data/enchant-1.6.0/src/enchant.c:2136: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). g_return_if_fail (ordering && strlen(ordering)); data/enchant-1.6.0/src/enchant.c:2145: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). if (tag_dupl && strlen(tag_dupl) && data/enchant-1.6.0/src/enchant.c:2146: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). ordering_dupl && strlen(ordering_dupl)) data/enchant-1.6.0/src/enchant.c:2259: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(prefix) >=6 && data/enchant-1.6.0/src/enchant.c:2260: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). G_IS_DIR_SEPARATOR(prefix[strlen(prefix)-4]) && data/enchant-1.6.0/src/enchant.c:2261: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). g_ascii_strcasecmp(prefix+strlen(prefix)-3, "bin") == 0) data/enchant-1.6.0/src/enchant.c:2262: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). prefix[strlen(prefix)-4] = '\0'; data/enchant-1.6.0/src/hspell/hspell_provider.c:89: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). strlen (sugg), data/enchant-1.6.0/src/hspell/hspell_provider.c:191: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). if(!((strlen(tag) >= 2) && tag[0] == 'h' && tag[1] == 'e')) data/enchant-1.6.0/src/ispell/correct.cpp:314: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). i = strlen (realword); data/enchant-1.6.0/src/ispell/ispell.h:406:21: [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). #define icharlen(s) strlen ((char *) (s)) data/enchant-1.6.0/src/ispell/ispell_checker.cpp:79: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). if (inEncoding && strlen(inEncoding)) data/enchant-1.6.0/src/ispell/ispell_checker.cpp:171: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). len_in = strlen(In); data/enchant-1.6.0/src/ispell/ispell_checker.cpp:218: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). len_in = strlen(In); data/enchant-1.6.0/src/ispell/ispell_checker.cpp:240: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). int l = strlen(m_possibilities[c]); data/enchant-1.6.0/src/ispell/ispell_checker.cpp:410: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). if (!szFile || !strlen(szFile)) data/enchant-1.6.0/src/ispell/lookup.cpp:525: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). nextchar += strlen (m_chartypes[i].name) + 1; data/enchant-1.6.0/src/ispell/lookup.cpp:527: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). nextchar += strlen (m_chartypes[i].deformatter) + 1; data/enchant-1.6.0/src/ispell/lookup.cpp:530: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). nextchar += strlen (&m_hashstrings[nextchar]) + 1; data/enchant-1.6.0/src/ispell/lookup.cpp:596: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). wchars += strlen (num); data/enchant-1.6.0/src/ispell/lookup.cpp:601: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). wchars += strlen (num); data/enchant-1.6.0/src/ispell/makedent.cpp:297:71: [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). tdent->word = static_cast<char *>(malloc (static_cast<unsigned int>(strlen(tdent->word)) + 1)); data/enchant-1.6.0/src/ispell/makedent.cpp:428:24: [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). ichartostr (s, is, strlen (s) + 1, 1); data/enchant-1.6.0/src/ispell/makedent.cpp:837: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 (name); data/enchant-1.6.0/src/ispell/makedent.cpp:855: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). cplen = strlen (cp); data/enchant-1.6.0/src/myspell/affentry.cxx:354:33: [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(result, " "); data/enchant-1.6.0/src/myspell/affentry.cxx:358:33: [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(result, " "); data/enchant-1.6.0/src/myspell/affentry.cxx:365:33: [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(result, " "); data/enchant-1.6.0/src/myspell/affentry.cxx:370:33: [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(result, " "); data/enchant-1.6.0/src/myspell/affentry.cxx:375:29: [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(result, "\n"); data/enchant-1.6.0/src/myspell/affentry.cxx:769:33: [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(result, " "); data/enchant-1.6.0/src/myspell/affentry.cxx:923: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/enchant-1.6.0/src/myspell/affixmgr.cxx:280: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). memmove(line, line+3, strlen(line+3)+1); data/enchant-1.6.0/src/myspell/affixmgr.cxx:680: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). *(expw + strlen(expw) + 1) = '\0'; data/enchant-1.6.0/src/myspell/affixmgr.cxx:681: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). *(expw + strlen(expw)) = (char) i; data/enchant-1.6.0/src/myspell/affixmgr.cxx:719: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/enchant-1.6.0/src/myspell/affixmgr.cxx:784: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/enchant-1.6.0/src/myspell/affixmgr.cxx:969:5: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:995:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ptr->c.conds, cs, MAXCONDLEN); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1225: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). lenr = strlen(reptable[i].pattern2); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1226: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). lenp = strlen(reptable[i].pattern); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1230:31: [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 + lenr + strlen(r+lenp) >= MAXLNLEN) break; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1233:41: [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 (candidate_check(candidate,strlen(candidate))) return 1; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1246: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). (len = strlen(checkcpdtable[i].pattern)) && (pos > len) && data/enchant-1.6.0/src/myspell/affixmgr.cxx:1595:70: [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 (pfx && (get_syllable(((PfxEntry *)pfx)->getKey(),strlen(((PfxEntry *)pfx)->getKey())) > 1)) wordnum++; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1666: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). rv = (compoundflag) ? affix_check((word+i),strlen(word+i), compoundflag, IN_CPD_END) : NULL; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1670:43: [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, IN_CPD_END); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1674:43: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:1701:55: [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). numsyllable += get_syllable(word + i, strlen(word + i)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1707: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). numsyllable -= get_syllable(tmp, strlen(tmp)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1712:70: [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 (pfx && (get_syllable(((PfxEntry *)pfx)->getKey(),strlen(((PfxEntry *)pfx)->getKey())) > 1)) wordnum++; data/enchant-1.6.0/src/myspell/affixmgr.cxx:1757:46: [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 = compound_check((word+i),strlen(word+i), wordnum+1, data/enchant-1.6.0/src/myspell/affixmgr.cxx:1856:31: [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). sprintf(presult + strlen(presult), "%c%s%s", MSEP_FLD, MORPH_PART, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1858: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). sprintf(presult + strlen(presult), "%c%s%s", MSEP_FLD, MORPH_STEM, st); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1863: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). sprintf(presult + strlen(presult), "%c%s", MSEP_FLD, HENTRY_DATA(rv)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:1901:39: [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). sprintf(presult + strlen(presult), "%c%s%s%s", MSEP_FLD, data/enchant-1.6.0/src/myspell/affixmgr.cxx:2003:70: [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 (pfx && (get_syllable(((PfxEntry *)pfx)->getKey(),strlen(((PfxEntry *)pfx)->getKey())) > 1)) wordnum++; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2021:19: [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(*result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2026:21: [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(*result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2033:21: [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(*result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2036:19: [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(*result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2081:23: [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(*result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2088:28: [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(*result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2095:29: [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(*result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2099:23: [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(*result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2110:57: [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 (compoundflag) rv = affix_check((word+i),strlen(word+i), compoundflag); else rv = NULL; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2115:43: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:2119:43: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:2122:72: [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 (compoundflag) m = affix_check_morph((word+i),strlen(word+i), compoundflag); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2125:60: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:2129:43: [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). sprintf(*result + strlen(*result), "%c%s%s%s", MSEP_FLD, data/enchant-1.6.0/src/myspell/affixmgr.cxx:2133:23: [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(*result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2158:55: [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). numsyllable += get_syllable(word + i, strlen(word + i)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2164: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). numsyllable -= get_syllable(tmp, strlen(tmp)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2169:70: [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 (pfx && (get_syllable(((PfxEntry *)pfx)->getKey(),strlen(((PfxEntry *)pfx)->getKey())) > 1)) wordnum++; data/enchant-1.6.0/src/myspell/affixmgr.cxx:2202:72: [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 (compoundflag) m = affix_check_morph((word+i),strlen(word+i), compoundflag); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2205:60: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:2209:43: [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). sprintf(*result + strlen(*result), "%c%s%s%s", MSEP_FLD, data/enchant-1.6.0/src/myspell/affixmgr.cxx:2213:41: [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). sprintf(*result + strlen(*result), "%c", MSEP_REC); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2222:55: [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/enchant-1.6.0/src/myspell/affixmgr.cxx:2349:41: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2352:41: [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(result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2353:41: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2439:25: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2445:21: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2448: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(result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2477: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(result3, ":"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2480:21: [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(result3, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2484: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(result2, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2541:21: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2546: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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2554:21: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2558: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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2561:13: [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(result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2599:29: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2604:29: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2612:25: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2622: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(result, ":"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2626:21: [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(result, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2629: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(result, "\n"); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2733:9: [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(stemmorph, " "); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2734:39: [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). stemmorphcatpos = stemmorph + strlen(stemmorph); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2771:61: [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 * newword2 = morphgen(newword, strlen(newword), sptr->getCont(), data/enchant-1.6.0/src/myspell/affixmgr.cxx:2838: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). reverseword(st + strlen(phon)); data/enchant-1.6.0/src/myspell/affixmgr.cxx:2864: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). int l1 = strlen(wlst[j].word); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3635:51: [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). maptable[j].len = strlen(maptable[j].set); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3746:29: [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 (char * k = piece + strlen(piece) - 1; k >= piece; k--) { data/enchant-1.6.0/src/myspell/affixmgr.cxx:3897:58: [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 = (unsigned char) strlen(nptr->strip); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3959:58: [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 = (unsigned char) strlen(nptr->appnd); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3977:33: [1] (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). Risk is low because the source is a constant character. strcpy(piece, "."); data/enchant-1.6.0/src/myspell/affixmgr.cxx:3998:43: [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). tp = tp + strlen(tp); data/enchant-1.6.0/src/myspell/affixmgr.cxx:4000:63: [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->morphcode = (char *) malloc(strlen(piece)+1); data/enchant-1.6.0/src/myspell/affixmgr.cxx:4052: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/enchant-1.6.0/src/myspell/csutil.cxx:241: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). *stringp = mp + strlen(mp); data/enchant-1.6.0/src/myspell/csutil.cxx:254: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). int sl = strlen(s); data/enchant-1.6.0/src/myspell/csutil.cxx:265: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 k = strlen(s); data/enchant-1.6.0/src/myspell/csutil.cxx:276: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). int sl = strlen(s); data/enchant-1.6.0/src/myspell/csutil.cxx:314: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). p += strlen(p) + 1; data/enchant-1.6.0/src/myspell/csutil.cxx:334: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). sprintf(text + strlen(text), "%c", breakchar); data/enchant-1.6.0/src/myspell/csutil.cxx:370: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). char * newtext = (char *) malloc(strlen(*text) + 2 * linenum + 3 + 1); data/enchant-1.6.0/src/myspell/csutil.cxx:380: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). sprintf(*text + strlen(*text), "%s%s", lines[i], " | "); data/enchant-1.6.0/src/myspell/csutil.cxx:382: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). (*text)[strlen(*text) - 2] = ')'; // " ) " data/enchant-1.6.0/src/myspell/csutil.cxx:392: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 len = strlen(s); data/enchant-1.6.0/src/myspell/csutil.cxx:395:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, s, len); data/enchant-1.6.0/src/myspell/csutil.cxx:535: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 replen = strlen(rep); data/enchant-1.6.0/src/myspell/csutil.cxx:536: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 patlen = strlen(pat); data/enchant-1.6.0/src/myspell/csutil.cxx:538:33: [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 * end = word + strlen(word); data/enchant-1.6.0/src/myspell/csutil.cxx:540:33: [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 * prev = pos + strlen(pat); data/enchant-1.6.0/src/myspell/csutil.cxx:545: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). char * next = word + strlen(word) + replen - patlen; data/enchant-1.6.0/src/myspell/csutil.cxx:549:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pos, rep, replen); data/enchant-1.6.0/src/myspell/csutil.cxx:557: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). for (char * dest = word + strlen(word) - 1; word < dest; word++, dest--) { data/enchant-1.6.0/src/myspell/csutil.cxx:682: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). memcpy(d,p,(strlen(p)+1)); data/enchant-1.6.0/src/myspell/dictmgr.cxx:131: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/enchant-1.6.0/src/myspell/dictmgr.cxx:162: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 sl = strlen(s); data/enchant-1.6.0/src/myspell/dictmgr.cxx:173: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/enchant-1.6.0/src/myspell/filemgr.cxx:17: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). char * st = (char *) malloc(strlen(file) + strlen(HZIP_EXTENSION)); data/enchant-1.6.0/src/myspell/filemgr.cxx:17: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). char * st = (char *) malloc(strlen(file) + strlen(HZIP_EXTENSION)); data/enchant-1.6.0/src/myspell/hashmgr.cxx:132:50: [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 descl = desc ? (aliasm ? sizeof(short) : strlen(desc) + 1) : 0; data/enchant-1.6.0/src/myspell/hashmgr.cxx:328: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 wbl = strlen(word); data/enchant-1.6.0/src/myspell/hashmgr.cxx:343: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 wbl = strlen(word); data/enchant-1.6.0/src/myspell/hashmgr.cxx:395: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). memmove(ts, ts+3, strlen(ts+3)+1); data/enchant-1.6.0/src/myspell/hashmgr.cxx:467: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 wbl = strlen(ts); data/enchant-1.6.0/src/myspell/hashmgr.cxx:500: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(flags); data/enchant-1.6.0/src/myspell/hashmgr.cxx:543: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(flags); data/enchant-1.6.0/src/myspell/hashmgr.cxx:615:73: [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 (strncmp(line,"\xEF\xBB\xBF",3) == 0) memmove(line, line+3, strlen(line+3)+1); data/enchant-1.6.0/src/myspell/hashmgr.cxx:885:43: [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). tp = tp + strlen(tp); data/enchant-1.6.0/src/myspell/hunspell.cxx:100: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). int nl = strlen((const char *)q); data/enchant-1.6.0/src/myspell/hunspell.cxx:113:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, (char *) q, nl); data/enchant-1.6.0/src/myspell/hunspell.cxx:115: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). nl = strlen(dest); data/enchant-1.6.0/src/myspell/hunspell.cxx:144: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). int nl = strlen((const char *)q); data/enchant-1.6.0/src/myspell/hunspell.cxx:202: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). return strlen(dest); data/enchant-1.6.0/src/myspell/hunspell.cxx:240: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 strlen(p); data/enchant-1.6.0/src/myspell/hunspell.cxx:272: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 strlen(p); data/enchant-1.6.0/src/myspell/hunspell.cxx:337: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/enchant-1.6.0/src/myspell/hunspell.cxx:507: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). if (spell(cw) && spell(s + strlen(wordbreak[j]))) { data/enchant-1.6.0/src/myspell/hunspell.cxx:547:46: [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 (result && spell(dash+1) && ((strlen(dash+1) > 1) || (dash[1] == 'e') || data/enchant-1.6.0/src/myspell/hunspell.cxx:628: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). len = strlen(word); data/enchant-1.6.0/src/myspell/hunspell.cxx:687: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/enchant-1.6.0/src/myspell/hunspell.cxx:730: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). } else captype_ = get_captype(dot+1, strlen(dot+1), csconv); data/enchant-1.6.0/src/myspell/hunspell.cxx:762: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). int slen = strlen(space + 1); data/enchant-1.6.0/src/myspell/hunspell.cxx:803:79: [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). (*slst)[j] = (char *) realloc((*slst)[j], strlen((*slst)[j]) + 2); data/enchant-1.6.0/src/myspell/hunspell.cxx:880: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). (*slst)[j] = (char *) realloc((*slst)[j], strlen((*slst)[j]) + 1 + abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:881:33: [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). strcat((*slst)[j], word + strlen(word) - abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:900: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). len = strlen(s); data/enchant-1.6.0/src/myspell/hunspell.cxx:951: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/enchant-1.6.0/src/myspell/hunspell.cxx:1016: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). (*slst)[j] = (char *) realloc((*slst)[j], strlen((*slst)[j]) + 1 + abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:1017:33: [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). strcat((*slst)[j], word + strlen(word) - abbv); data/enchant-1.6.0/src/myspell/hunspell.cxx:1057:33: [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). copy_field(result + strlen(result), part, MORPH_PART); data/enchant-1.6.0/src/myspell/hunspell.cxx:1085:39: [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). sprintf(result2 + strlen(result2), "%c%s%s", data/enchant-1.6.0/src/myspell/hunspell.cxx:1091:31: [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). sprintf(result2 + strlen(result2), "%c%s", MSEP_REC, result); data/enchant-1.6.0/src/myspell/hunspell.cxx:1093: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). copy_field(result2 + strlen(result2), pl[k], MORPH_SURF_PFX); data/enchant-1.6.0/src/myspell/hunspell.cxx:1095: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). copy_field(result2 + strlen(result2), pl[k], MORPH_STEM); data/enchant-1.6.0/src/myspell/hunspell.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 wl = strlen(word); data/enchant-1.6.0/src/myspell/hunspell.cxx:1218: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 strlen(p); data/enchant-1.6.0/src/myspell/hunspell.cxx:1232: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 strlen(p); data/enchant-1.6.0/src/myspell/hunspell.cxx:1268:22: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1279: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/enchant-1.6.0/src/myspell/hunspell.cxx:1328: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(result, "+"); // XXX SPEC. MORPHCODE data/enchant-1.6.0/src/myspell/hunspell.cxx:1420:25: [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(result,"+"); // XXX spec. separator in MORPHCODE data/enchant-1.6.0/src/myspell/hunspell.cxx:1436:43: [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 (nresult && spell(dash+1) && ((strlen(dash+1) > 1) || data/enchant-1.6.0/src/myspell/hunspell.cxx:1442:33: [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(result,"+"); // XXX spec. separator in MORPHCODE data/enchant-1.6.0/src/myspell/hunspell.cxx:1548: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/enchant-1.6.0/src/myspell/hunspell.cxx:1578:42: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1595:38: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1606:42: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1613:42: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1630:38: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1646:38: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1653:38: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1661:38: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1670:40: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunspell.cxx:1677:40: [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. if (*result) strcat(result, "\n"); data/enchant-1.6.0/src/myspell/hunzip.cxx:35: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). filename = (char *) malloc(strlen(file) + 1); data/enchant-1.6.0/src/myspell/hunzip.cxx:195: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). if (right) strcpy(linebuf + l - 1, line + strlen(line) - right - 1); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:166: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). size_t len_in = strlen(in); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:192: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). size_t len_in = strlen(in); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:206: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). len_in = strlen(in); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:355:29: [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 dic_suffix_len = strlen(dic_suffix); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:356: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). size_t dir_entry_len = strlen(dir_entry); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:357: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). size_t tag_len = strlen(tag); data/enchant-1.6.0/src/myspell/myspell_checker.cpp:423: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). int len_dic = strlen(dic); data/enchant-1.6.0/src/myspell/phonet.cxx:93: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 (len == -1) len = strlen(inword); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:71: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). ckeyl = strlen(ckey); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:83: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). ctryl = strlen(ctry); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:287:65: [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 ((nsug < maxSug) && (nsug > -1) && check_forbidden(word, strlen(word))) { data/enchant-1.6.0/src/myspell/suggestmgr.cxx:313: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). return testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:322: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). return testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:331: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:355: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). int wl = strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:398: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). wl = strlen(s); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:441: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:448: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). lenr = strlen(reptable[i].pattern2); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:449: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). lenp = strlen(reptable[i].pattern); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:453:31: [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 + lenr + strlen(r+lenp) >= MAXSWUTF8L) break; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:462: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 (checkword(candidate, strlen(candidate), 0, NULL, NULL)) { data/enchant-1.6.0/src/myspell/suggestmgr.cxx:465:42: [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). ns = testsug(wlst, sp + 1, strlen(sp + 1), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:485: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:518:43: [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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:534: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:584: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:596:41: [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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:602:41: [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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:619: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:654: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, &timer, &timelimit); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:675: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:688: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). int wl = strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:709: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). int wl = strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:747: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, &timer, &timelimit); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:758: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:774: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:791:33: [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). c1 = checkword(candidate,strlen(candidate), cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:793:31: [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). c2 = checkword((p+1),strlen(p+1), cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.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 wl=strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:875:27: [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 (len == 0) len = strlen(candidate); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:911: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 wl=strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:948: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:966: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 wl=strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1011: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1023: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). ns = testsug(wlst, candidate, strlen(candidate), ns, cpdsuggest, NULL, NULL); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1070: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:1245: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(guess[i]); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1285: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:1312: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). !checkword(guess[i], strlen(guess[i]), 0, NULL, NULL)) unique = 0; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1340: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). !checkword(rootsphon[i], strlen(rootsphon[i]), 0, NULL, NULL)) unique = 0; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1455: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(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1470: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). if (wlst[j][strlen(wlst[j]) - 1] == '-') wlst[j][strlen(wlst[j]) - 1] = '\0'; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1470: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). if (wlst[j][strlen(wlst[j]) - 1] == '-') wlst[j][strlen(wlst[j]) - 1] = '\0'; data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1509:21: [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(result, " "); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1514:21: [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(result, " "); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1517: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(result, "\n"); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1522: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). st = pAMgr->affix_check_morph(word,strlen(word)); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1529:43: [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). pAMgr->compound_check_morph(word, strlen(word), data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1567:13: [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(result, "\n"); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1580:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(allomorph, p, plen); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1593:25: [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(result, "\n"); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1627:33: [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). copy_field(result + strlen(result), part, MORPH_PART); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1669:43: [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 r2l = strlen(result2); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1672: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). copy_field(result2 + strlen(result2), pl[i], MORPH_SURF_PFX); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1675:51: [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). sprintf(result2 + strlen(result2), "%c%s%s", data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1693:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ds, MORPH_TERM_SFX, MORPH_TAG_LEN); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1738: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). l1 = strlen(s1); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1739: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). l2 = strlen(s2); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1788: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). int l1 = strlen(s1); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1789: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). int l2 = strlen(s2); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1837: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). int l2 = strlen(t); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1861: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). } else return strlen(word); data/enchant-1.6.0/src/myspell/suggestmgr.cxx:1904: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/enchant-1.6.0/src/myspell/suggestmgr.cxx:1905: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/enchant-1.6.0/src/prefix.c:70:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (path2, "/proc/self/exe", buf_size - 1); data/enchant-1.6.0/src/prefix.c:102:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (path, path2, buf_size - 1); data/enchant-1.6.0/src/prefix.c:138: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). buf_size = strlen (line); data/enchant-1.6.0/src/prefix.c:226: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 (file); data/enchant-1.6.0/src/prefix.c:233: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 (file); data/enchant-1.6.0/src/prefix.c:238: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 (start_addr); data/enchant-1.6.0/src/prefix.c:239: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). if (len != strlen (end_addr)) data/enchant-1.6.0/src/pwl.c:320: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). l = strlen(line)-1; data/enchant-1.6.0/src/pwl.c:328: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). if (line[strlen(buffer)-1]=='\n') data/enchant-1.6.0/src/pwl.c:337:42: [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). enchant_pwl_add_to_trie(pwl, line, strlen(line)); data/enchant-1.6.0/src/pwl.c:632: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). exists = enchant_pwl_contains(pwl, lower_case_word, strlen(lower_case_word)); data/enchant-1.6.0/src/pwl.c:640:57: [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). exists = enchant_pwl_contains(pwl, title_case_word, strlen(title_case_word)); data/enchant-1.6.0/src/pwl.c:678:21: [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). suggestion_len = strlen(suggestion); data/enchant-1.6.0/src/pwl.c:1010:21: [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 word_len = strlen(matcher->word); data/enchant-1.6.0/src/pwl.c:1060: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). enchant_trie_matcher_poppath(matcher,strlen(nxtChS)); data/enchant-1.6.0/src/pwl.c:1107:39: [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). enchant_trie_matcher_poppath(matcher,strlen(key)); data/enchant-1.6.0/src/pwl.c:1121:41: [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). enchant_trie_matcher_poppath(matcher,strlen(key2)); data/enchant-1.6.0/src/pwl.c:1122:41: [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). enchant_trie_matcher_poppath(matcher,strlen(key)); data/enchant-1.6.0/src/pwl.c:1142: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). len = strlen(normalized_word); data/enchant-1.6.0/src/pwl.c:1179: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). len = strlen(newchars); data/enchant-1.6.0/tests/enchant-ispell.c:93:22: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (ret && (ch = fgetc (in)) != EOF) { data/enchant-1.6.0/tests/enchant-ispell.c:129: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). fwrite (str, 1, strlen (str), out); data/enchant-1.6.0/tests/enchant-ispell.c:475: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). if (strlen (arg) == 2) { data/enchant-1.6.0/tests/enchant-ispell.c:492: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). else if ((strlen (arg) == 3) && (arg[1] == 'v') && (arg[2] == 'v')) { data/enchant-1.6.0/tests/enchant-ispell.c:498: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). else if (strlen (arg) > 2) { data/enchant-1.6.0/tests/test-enchant.c:81: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). enchant_dict_suggest (dict, sugg_checks[i], strlen (sugg_checks[i]), ANALYSIS SUMMARY: Hits = 777 Lines analyzed = 38997 in approximately 1.15 seconds (34053 lines/second) Physical Source Lines of Code (SLOC) = 31134 Hits@level = [0] 77 [1] 318 [2] 243 [3] 1 [4] 214 [5] 1 Hits@level+ = [0+] 854 [1+] 777 [2+] 459 [3+] 216 [4+] 215 [5+] 1 Hits/KSLOC@level+ = [0+] 27.4298 [1+] 24.9566 [2+] 14.7427 [3+] 6.93775 [4+] 6.90563 [5+] 0.0321192 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.