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/ghostwriter-1.8.1/src/AbstractStatisticsWidget.cpp
Examining data/ghostwriter-1.8.1/src/AbstractStatisticsWidget.h
Examining data/ghostwriter-1.8.1/src/AppMain.cpp
Examining data/ghostwriter-1.8.1/src/AppSettings.cpp
Examining data/ghostwriter-1.8.1/src/AppSettings.h
Examining data/ghostwriter-1.8.1/src/ColorHelper.cpp
Examining data/ghostwriter-1.8.1/src/ColorHelper.h
Examining data/ghostwriter-1.8.1/src/CommandLineExporter.cpp
Examining data/ghostwriter-1.8.1/src/CommandLineExporter.h
Examining data/ghostwriter-1.8.1/src/DocumentHistory.cpp
Examining data/ghostwriter-1.8.1/src/DocumentHistory.h
Examining data/ghostwriter-1.8.1/src/DocumentManager.cpp
Examining data/ghostwriter-1.8.1/src/DocumentManager.h
Examining data/ghostwriter-1.8.1/src/DocumentStatistics.cpp
Examining data/ghostwriter-1.8.1/src/DocumentStatistics.h
Examining data/ghostwriter-1.8.1/src/DocumentStatisticsWidget.cpp
Examining data/ghostwriter-1.8.1/src/DocumentStatisticsWidget.h
Examining data/ghostwriter-1.8.1/src/ExportDialog.cpp
Examining data/ghostwriter-1.8.1/src/ExportDialog.h
Examining data/ghostwriter-1.8.1/src/ExportFormat.cpp
Examining data/ghostwriter-1.8.1/src/ExportFormat.h
Examining data/ghostwriter-1.8.1/src/Exporter.cpp
Examining data/ghostwriter-1.8.1/src/Exporter.h
Examining data/ghostwriter-1.8.1/src/ExporterFactory.cpp
Examining data/ghostwriter-1.8.1/src/ExporterFactory.h
Examining data/ghostwriter-1.8.1/src/HighlightTokenizer.cpp
Examining data/ghostwriter-1.8.1/src/HighlightTokenizer.h
Examining data/ghostwriter-1.8.1/src/HighlighterLineStates.h
Examining data/ghostwriter-1.8.1/src/HtmlPreview.cpp
Examining data/ghostwriter-1.8.1/src/HtmlPreview.h
Examining data/ghostwriter-1.8.1/src/HudWindow.cpp
Examining data/ghostwriter-1.8.1/src/HudWindow.h
Examining data/ghostwriter-1.8.1/src/HudWindowTypes.h
Examining data/ghostwriter-1.8.1/src/LocaleDialog.cpp
Examining data/ghostwriter-1.8.1/src/LocaleDialog.h
Examining data/ghostwriter-1.8.1/src/MainWindow.cpp
Examining data/ghostwriter-1.8.1/src/MainWindow.h
Examining data/ghostwriter-1.8.1/src/MarkdownEditor.h
Examining data/ghostwriter-1.8.1/src/MarkdownEditorTypes.h
Examining data/ghostwriter-1.8.1/src/MarkdownHighlighter.cpp
Examining data/ghostwriter-1.8.1/src/MarkdownHighlighter.h
Examining data/ghostwriter-1.8.1/src/MarkdownStates.h
Examining data/ghostwriter-1.8.1/src/MarkdownStyles.h
Examining data/ghostwriter-1.8.1/src/MarkdownTokenTypes.h
Examining data/ghostwriter-1.8.1/src/MarkdownTokenizer.cpp
Examining data/ghostwriter-1.8.1/src/MarkdownTokenizer.h
Examining data/ghostwriter-1.8.1/src/MessageBoxHelper.cpp
Examining data/ghostwriter-1.8.1/src/MessageBoxHelper.h
Examining data/ghostwriter-1.8.1/src/Outline.cpp
Examining data/ghostwriter-1.8.1/src/Outline.h
Examining data/ghostwriter-1.8.1/src/PreferencesDialog.cpp
Examining data/ghostwriter-1.8.1/src/PreferencesDialog.h
Examining data/ghostwriter-1.8.1/src/PreviewOptionsDialog.cpp
Examining data/ghostwriter-1.8.1/src/PreviewOptionsDialog.h
Examining data/ghostwriter-1.8.1/src/SandboxedWebPage.cpp
Examining data/ghostwriter-1.8.1/src/SandboxedWebPage.h
Examining data/ghostwriter-1.8.1/src/SessionStatistics.cpp
Examining data/ghostwriter-1.8.1/src/SessionStatistics.h
Examining data/ghostwriter-1.8.1/src/SessionStatisticsWidget.cpp
Examining data/ghostwriter-1.8.1/src/SessionStatisticsWidget.h
Examining data/ghostwriter-1.8.1/src/SimpleFontDialog.cpp
Examining data/ghostwriter-1.8.1/src/SimpleFontDialog.h
Examining data/ghostwriter-1.8.1/src/StringObserver.cpp
Examining data/ghostwriter-1.8.1/src/StringObserver.h
Examining data/ghostwriter-1.8.1/src/StyleSheetManagerDialog.cpp
Examining data/ghostwriter-1.8.1/src/StyleSheetManagerDialog.h
Examining data/ghostwriter-1.8.1/src/SundownExporter.cpp
Examining data/ghostwriter-1.8.1/src/SundownExporter.h
Examining data/ghostwriter-1.8.1/src/TextBlockData.h
Examining data/ghostwriter-1.8.1/src/TextDocument.cpp
Examining data/ghostwriter-1.8.1/src/TextDocument.h
Examining data/ghostwriter-1.8.1/src/Theme.cpp
Examining data/ghostwriter-1.8.1/src/Theme.h
Examining data/ghostwriter-1.8.1/src/ThemeEditorDialog.cpp
Examining data/ghostwriter-1.8.1/src/ThemeEditorDialog.h
Examining data/ghostwriter-1.8.1/src/ThemeFactory.cpp
Examining data/ghostwriter-1.8.1/src/ThemeFactory.h
Examining data/ghostwriter-1.8.1/src/ThemePreviewer.cpp
Examining data/ghostwriter-1.8.1/src/ThemePreviewer.h
Examining data/ghostwriter-1.8.1/src/ThemeSelectionDialog.cpp
Examining data/ghostwriter-1.8.1/src/ThemeSelectionDialog.h
Examining data/ghostwriter-1.8.1/src/TimeLabel.cpp
Examining data/ghostwriter-1.8.1/src/TimeLabel.h
Examining data/ghostwriter-1.8.1/src/Token.cpp
Examining data/ghostwriter-1.8.1/src/Token.h
Examining data/ghostwriter-1.8.1/src/color_button.cpp
Examining data/ghostwriter-1.8.1/src/color_button.h
Examining data/ghostwriter-1.8.1/src/find_dialog.cpp
Examining data/ghostwriter-1.8.1/src/find_dialog.h
Examining data/ghostwriter-1.8.1/src/image_button.cpp
Examining data/ghostwriter-1.8.1/src/image_button.h
Examining data/ghostwriter-1.8.1/src/spell_checker.cpp
Examining data/ghostwriter-1.8.1/src/spell_checker.h
Examining data/ghostwriter-1.8.1/src/spelling/abstract_dictionary.h
Examining data/ghostwriter-1.8.1/src/spelling/abstract_dictionary_provider.h
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_manager.cpp
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_manager.h
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_provider_hunspell.cpp
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_provider_hunspell.h
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_provider_nsspellchecker.h
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_provider_voikko.cpp
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_provider_voikko.h
Examining data/ghostwriter-1.8.1/src/spelling/dictionary_ref.h
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/config.h
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.h
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/hunvisapi.h
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/phonet.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/replist.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx
Examining data/ghostwriter-1.8.1/src/spelling/hunspell/utf_info.cxx
Examining data/ghostwriter-1.8.1/src/spelling/spell_checker.cpp
Examining data/ghostwriter-1.8.1/src/spelling/spell_checker.h
Examining data/ghostwriter-1.8.1/src/sundown/autolink.c
Examining data/ghostwriter-1.8.1/src/sundown/autolink.h
Examining data/ghostwriter-1.8.1/src/sundown/buffer.c
Examining data/ghostwriter-1.8.1/src/sundown/buffer.h
Examining data/ghostwriter-1.8.1/src/sundown/houdini.h
Examining data/ghostwriter-1.8.1/src/sundown/houdini_href_e.c
Examining data/ghostwriter-1.8.1/src/sundown/houdini_html_e.c
Examining data/ghostwriter-1.8.1/src/sundown/html.c
Examining data/ghostwriter-1.8.1/src/sundown/html.h
Examining data/ghostwriter-1.8.1/src/sundown/html_blocks.h
Examining data/ghostwriter-1.8.1/src/sundown/html_smartypants.c
Examining data/ghostwriter-1.8.1/src/sundown/markdown.c
Examining data/ghostwriter-1.8.1/src/sundown/markdown.h
Examining data/ghostwriter-1.8.1/src/sundown/stack.c
Examining data/ghostwriter-1.8.1/src/sundown/stack.h
Examining data/ghostwriter-1.8.1/src/MarkdownEditor.cpp

FINAL RESULTS:

data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:70: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:178: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:243: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:293: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:347: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:472: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:634: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:738: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:804: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:956: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:756: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1318: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1320: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1321: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1565: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1591: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(st + i, checkcpdtable[scpd-1].pattern);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1594: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(st + i, checkcpdtable[scpd-1].pattern2);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1595: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(st + i + strlen(checkcpdtable[scpd-1].pattern2), word + soldi + strlen(checkcpdtable[scpd-1].pattern3));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2028: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(st, word); // XXX add more optim.
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2067: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2120: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2122: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2127: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_DATA2(rv));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2170: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2401: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2482: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2725: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2976: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2992: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3084: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3085: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:283: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(dest + len, st);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:361: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:374: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:404: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:418: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:440: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(dest, s);
data/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx:12: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/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx:27: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/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx:28: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/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx:46:55:  [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()) != NULL)) return strcpy(in, l);
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:128: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:156: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:578: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:597: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:777:30:  [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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:863: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:864: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:926: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(wspace + (ppos - cw), nlst[j]);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:929:3:  [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(wspace, pos + 1);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:962: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:980: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1120: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1132: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1133: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1170: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1189: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1195: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/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx:17: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/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx:192: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/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx:194: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/ghostwriter-1.8.1/src/spelling/hunspell/replist.cxx:79: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(dest + stl, dat[n]->pattern2);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:144: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:275: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:337: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:392: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 + cn, maptable[j].set[l]);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:427: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:429: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:430: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:472: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:473: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:516: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:601: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:674: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:695: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(candidate, word);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:745: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:820: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:904: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:959: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:969: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:980: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1055: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1085: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(candidate, word);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1124: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1165: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1265: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1314: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1501: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1548: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1687: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1709: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1710: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1722: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1726: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1740: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1903: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/ghostwriter-1.8.1/src/sundown/buffer.c:31:25:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#	define _buf_vsnprintf vsnprintf
data/ghostwriter-1.8.1/src/sundown/buffer.h:90:73:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void bufprintf(struct buf *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/ghostwriter-1.8.1/src/sundown/html_smartypants.c:26:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf	_snprintf		
data/ghostwriter-1.8.1/src/sundown/html_smartypants.c:26:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf	_snprintf		
data/ghostwriter-1.8.1/src/DocumentManager.cpp:134:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void DocumentManager::open(const QString& filePath)
data/ghostwriter-1.8.1/src/DocumentManager.cpp:232:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(recentFiles.first());
data/ghostwriter-1.8.1/src/DocumentManager.cpp:571:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!inputFile.open(QIODevice::ReadOnly))
data/ghostwriter-1.8.1/src/DocumentManager.cpp:854:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!outputFile.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text))
data/ghostwriter-1.8.1/src/DocumentManager.h:156:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open(const QString& filePath = QString());
data/ghostwriter-1.8.1/src/MainWindow.cpp:299:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            cliFile.open(QIODevice::WriteOnly);
data/ghostwriter-1.8.1/src/MainWindow.cpp:522:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        documentManager->open(fileToOpen);
data/ghostwriter-1.8.1/src/MainWindow.cpp:1108:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!inputFile.open(QIODevice::ReadOnly))
data/ghostwriter-1.8.1/src/MainWindow.cpp:1282:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        documentManager->open(action->data().toString());
data/ghostwriter-1.8.1/src/MainWindow.cpp:1559:60:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fileMenu->addAction(tr("&Open"), documentManager, SLOT(open()), QKeySequence::Open);
data/ghostwriter-1.8.1/src/SundownExporter.cpp:142:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!outputFile.open(QIODevice::WriteOnly | QIODevice::Truncate))
data/ghostwriter-1.8.1/src/spelling/dictionary_manager.cpp:274:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
data/ghostwriter-1.8.1/src/spelling/dictionary_manager.cpp:299:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:32: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:34: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tword[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:160: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:224: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:274: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:324: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:325: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:434: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:436: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:461: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx: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                tmpword[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:710: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:772: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[MAXTEMPWORDLEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:776: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/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:906: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:273: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:754: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1213: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1264: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1306: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1546: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2052: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2056: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2486: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2677: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2678: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2679: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2751: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2916: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2962: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3083: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3484: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3502: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3512: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3550: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3636:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                       numrl = atoi(piece);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3723:37:  [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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3808: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3903: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4002: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4047:48:  [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.
                            maptable[j].set = (char **) malloc(maptable[j].len * sizeof(char*));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4106: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4240: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4355: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4413: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:58:19:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        int len = MultiByteToWideChar(CP_UTF8, 0, path, -1, NULL, 0);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:60:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar(CP_UTF8, 0, path, -1, buff, len);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:66:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(path, mode);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:267: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.
         memcpy(d,s,sl);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:372: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:416: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:700: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:707: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:739: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:5581: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:5858: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/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:56: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/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:146: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/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:152: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/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:169: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);
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:154: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:229: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.
          if (flagslen) memcpy(flags2, flags, flagslen * sizeof(unsigned short));
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:232: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:335: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:385: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:449: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:532:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            i = atoi(src);
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:541: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).
        i = atoi(src);
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:553: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:579: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).
        i = atoi(f);
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:594: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:601: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:727: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:844: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:330: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:331: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/ghostwriter-1.8.1/src/spelling/hunspell/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/ghostwriter-1.8.1/src/spelling/hunspell/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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:427: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:429: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:440: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:452: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:474: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:517:13:  [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.
      	s = (char *) strstr(s, wordbreak[j]);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:544:10:  [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.
      s=(char *) strstr(cw, wordbreak[j]);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:573: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/ghostwriter-1.8.1/src/spelling/hunspell/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 cw[MAXWORDUTF8LEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:685: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:743: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:785: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:789: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:822: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:844: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:861: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:884: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:891: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:897: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:961: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:974: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1050: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1051: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1074: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1088: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1096: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1119: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1130: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1148: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1149: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1156: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1169: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1221: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1222: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1245: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1259: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1272: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1380: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1381: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1409: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1456: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1465: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1474: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, wl2);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1485: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1491: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1501: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, wl2);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1615: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1617: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1708: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1750: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], cw2[MAXWORDUTF8LEN];
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1809: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1810: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1823: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1837: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1850: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1864: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1890: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1901: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1922: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/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx:37: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/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx:158: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/ghostwriter-1.8.1/src/spelling/hunspell/phonet.cxx:87: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:65: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:79: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:138: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:270: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:325: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:327: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:336: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:345: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:412: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:464: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:489: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:496: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:497: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:514: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:555: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:556: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:597: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:623: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:626: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:647: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:653: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:669: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:688: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 + 4];
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:711: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 + 4];
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:717:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (candidate_utf, word, wl * sizeof(w_char));
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:734: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:815: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:855: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:860: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:898: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:926: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:931: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:952: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:989: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:994: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1005: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1017: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1035: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1049: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1050: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1060: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1076: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1077: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1117: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 target2[MAXSWUTF8L];
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1176: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1177: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1257: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1306: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1496: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1533: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1543: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1607: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1624: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1658: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1659: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1660: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1673: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1686: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1708: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1902: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/ghostwriter-1.8.1/src/sundown/autolink.c:43: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.
			strncasecmp((char *)link, valid_uris[i], len) == 0 &&
data/ghostwriter-1.8.1/src/sundown/buffer.c:162: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(buf->data + buf->size, data, len);
data/ghostwriter-1.8.1/src/sundown/houdini_href_e.c:58: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 hex_str[3];
data/ghostwriter-1.8.1/src/sundown/html.c:580: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(callbacks, &cb_default, sizeof(struct sd_callbacks));
data/ghostwriter-1.8.1/src/sundown/html.c:623: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(callbacks, &cb_default, sizeof(struct sd_callbacks));
data/ghostwriter-1.8.1/src/sundown/html_blocks.h:36: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.
static unsigned char gperf_downcase[256] =
data/ghostwriter-1.8.1/src/sundown/html_smartypants.c:89: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 ent[8];
data/ghostwriter-1.8.1/src/sundown/markdown.c:2411: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(&md->cb, callbacks, sizeof(struct sd_callbacks));
data/ghostwriter-1.8.1/src/DocumentManager.cpp:609:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QString text = inStream.read(2048L);
data/ghostwriter-1.8.1/src/DocumentManager.cpp:631:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        text = inStream.read(2048L);
data/ghostwriter-1.8.1/src/image_button.cpp:52:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		setIcon(QPixmap::fromImage(source.read(), Qt::AutoColor | Qt::AvoidDither));
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:66:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy(tword, appnd, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:175:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tmpword, strip, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:240:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tmpword, strip, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:290:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tmpword, strip, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:344:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(tmpword, strip, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:469:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(tword, word, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:630:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (tmpword, word, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:734:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmpword, word, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:800:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmpword, word, MAXTEMPWORDLEN-1);
data/ghostwriter-1.8.1/src/spelling/hunspell/affentry.cxx:978: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:299: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:763: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:764: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:805: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:870: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1083:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(entry.c.conds, cs, MAXCONDLEN);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1314: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1315: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1319: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1322: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1343: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).
            (*(checkcpdtable[i].pattern)!='0' && ((len = strlen(checkcpdtable[i].pattern)) != 0) &&
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1588: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).
            strncmp(word + i, checkcpdtable[scpd-1].pattern3, strlen(checkcpdtable[scpd-1].pattern3)) != 0); scpd++);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1593: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).
          i += strlen(checkcpdtable[scpd-1].pattern);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1595: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).
          strcpy(st + i + strlen(checkcpdtable[scpd-1].pattern2), word + soldi + strlen(checkcpdtable[scpd-1].pattern3));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1595:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strcpy(st + i + strlen(checkcpdtable[scpd-1].pattern2), word + soldi + strlen(checkcpdtable[scpd-1].pattern3));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1598: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).
          len += strlen(checkcpdtable[scpd-1].pattern) + strlen(checkcpdtable[scpd-1].pattern2) - strlen(checkcpdtable[scpd-1].pattern3);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1598: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).
          len += strlen(checkcpdtable[scpd-1].pattern) + strlen(checkcpdtable[scpd-1].pattern2) - strlen(checkcpdtable[scpd-1].pattern3);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1598:99:  [1] (buffer) strlen:
  Does not handle 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[scpd-1].pattern) + strlen(checkcpdtable[scpd-1].pattern2) - strlen(checkcpdtable[scpd-1].pattern3);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1766: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).
                if (pfx && (get_syllable(pfx->getKey(),strlen(pfx->getKey())) > 1)) wordnum++;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1861: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).
            rv = (compoundflag && !onlycpdrule) ? affix_check((word+i),strlen(word+i), compoundflag, IN_CPD_END) : NULL;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1865: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1869: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1908: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1914: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1919: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).
                if (pfx && (get_syllable(pfx->getKey(),strlen(pfx->getKey())) > 1)) wordnum++;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:1962: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).
                rv = compound_check((st+i),strlen(st+i), wordnum+1,
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2120: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2122: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2127: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_DATA2(rv));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2132: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).
            if (onlycpdrule && strlen(*result) > MAXLNLEN/10) break;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2170: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2274: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).
                if (pfx && (get_syllable(pfx->getKey(),strlen(pfx->getKey())) > 1)) wordnum++;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2382: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 (compoundflag && !onlycpdrule) rv = affix_check((word+i),strlen(word+i), compoundflag); else rv = NULL;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2387: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2391: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2394: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2397: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2401: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2431: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2437: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2442: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).
                if (pfx && (get_syllable(pfx->getKey(),strlen(pfx->getKey())) > 1)) wordnum++;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2475: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2478: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2482: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2486: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2495: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:2978: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3016: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3086: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3114: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3595: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).
                            int lr = strlen(reptable[j].pattern) - 1;
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3671: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).
                             if (strncmp(piece, keyword, strlen(keyword)) != 0) {
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:3946: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).
                                defcpdtable[j].def = (FLAG *) malloc(strlen(piece) * sizeof(FLAG));
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4046: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).
                            maptable[j].len = strlen(piece);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4068:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(maptable[j].set[setn], piece + chb, chl);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4168: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4321:59:  [1] (buffer) strlen:
  Does not handle 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->stripl = (unsigned char) strlen(entry->strip);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4383:59:  [1] (buffer) strlen:
  Does not handle 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->appndl = (unsigned char) strlen(entry->appnd);
data/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4401: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4422: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/ghostwriter-1.8.1/src/spelling/hunspell/affixmgr.cxx:4473: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:252: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:264: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).
      size_t sl = strlen(s)+1;
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:280: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).
   len = strlen(dest);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:281: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).
   len2 = strlen(st);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:290: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).
   size_t k = strlen(s);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:301: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 sl = strlen(s);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:349: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:372: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:408: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:418: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:420: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:430: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:434:17:  [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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:575: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).
      int replen = strlen(rep);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:576: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).
      int patlen = strlen(pat);
data/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:579: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:581: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:586: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:590: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:600: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:739: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/ghostwriter-1.8.1/src/spelling/hunspell/csutil.cxx:5468: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).
  char *normalized_encoding = new char[strlen(es)+1];
data/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:138: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).
  size_t n = strlen(mp);
data/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:167: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)+1;
data/ghostwriter-1.8.1/src/spelling/hunspell/dictmgr.cxx:178: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/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx:25: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) + 1);
data/ghostwriter-1.8.1/src/spelling/hunspell/filemgr.cxx:25: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) + 1);
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:122: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).
    int descl = desc ? (aliasm ? sizeof(char *) : strlen(desc) + 1) : 0;
data/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:313: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/ghostwriter-1.8.1/src/spelling/hunspell/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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:381: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:471: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:508: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:558: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:633: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/ghostwriter-1.8.1/src/spelling/hunspell/hashmgr.cxx:897: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:94: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:107: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:109: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx: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).
   int nl = strlen((const char *)q);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:196: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:234: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:266: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:339: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:510: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).
    wl = strlen(cw);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:528: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 plen = strlen(wordbreak[j]);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:543: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 plen = strlen(wordbreak[j]);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:589: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:693: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:763: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:803: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:844: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:925:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(wspace, cw, ppos - cw);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:928:14:  [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(wspace, "-");
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:942: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).
	if (!pos) pos = cw + strlen(cw);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:961: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:962: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:981: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1053: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1119: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1120: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1161: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1189: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1195: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1197: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1199: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1224: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1322: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1336: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1386: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1560: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/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1704:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return p + strlen(attr);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1723: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).
        int l = strlen(p);
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1726: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).
        if (!get_xml_par((*slst)[n], p + strlen(tag) - 1, l)) {
data/ghostwriter-1.8.1/src/spelling/hunspell/hunspell.cxx:1812: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/ghostwriter-1.8.1/src/spelling/hunspell/hunzip.cxx:192: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/ghostwriter-1.8.1/src/spelling/hunspell/phonet.cxx:88: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/ghostwriter-1.8.1/src/spelling/hunspell/phonet.cxx:90:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(word, inword, MAXPHONETUTF8LEN);
data/ghostwriter-1.8.1/src/spelling/hunspell/replist.cxx:49: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).
    if (strncmp(word, dat[n]->pattern, strlen(dat[n]->pattern)) == 0) return strlen(dat[n]->pattern);
data/ghostwriter-1.8.1/src/spelling/hunspell/replist.cxx:49:78:  [1] (buffer) strlen:
  Does not handle 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(word, dat[n]->pattern, strlen(dat[n]->pattern)) == 0) return strlen(dat[n]->pattern);
data/ghostwriter-1.8.1/src/spelling/hunspell/replist.cxx:75: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).
    for (size_t i = 0; i < strlen(word); i++) {
data/ghostwriter-1.8.1/src/spelling/hunspell/replist.cxx:80: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).
          stl += strlen(dat[n]->pattern2);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:68: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:74: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).
    if (ctry) ctryl = strlen(ctry);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:304:114:  [1] (buffer) strlen:
  Does not handle 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) && (!cpdsuggest || (nsug < oldSug + maxcpdsugs)) && check_forbidden(word, strlen(word))) {
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:330: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:339: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:350: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:369: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(candidate);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:388: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).
      int len = strlen(maptable[j].set[k]);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:393:48:  [1] (buffer) strlen:
  Does not handle 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 = map_related(word, candidate, wn + len, strlen(candidate), wlst,
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:415: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:422: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:423: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:425:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      while ((r=strstr(r, reptable[i].pattern)) != NULL && (!reptable[i].end || strlen(r) == strlen(reptable[i].pattern)) &&
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:425:94:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      while ((r=strstr(r, reptable[i].pattern)) != NULL && (!reptable[i].end || strlen(r) == strlen(reptable[i].pattern)) &&
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:428: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:439: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).
              if (checkword(prev, strlen(prev), 0, NULL, NULL)) {
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:442: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).
                ns = testsug(wlst, sp + 1, strlen(sp + 1), ns, cpdsuggest, NULL, NULL);
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:466: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:499: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:515: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:565: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:577: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:583: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:600: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:635: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:658: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:671: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:692: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:722: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:740: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:757: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:759: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:818: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:866: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:902: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:939: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:957: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1002: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1014: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1062: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1267: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1316: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1351: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)) {
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1382: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)) {
data/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1506: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1521: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1521: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1573: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1580: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1631: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1678: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1720: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1723: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1726: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1744: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1794: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1796: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1853: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1854: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1906: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1930: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1973: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/ghostwriter-1.8.1/src/spelling/hunspell/suggestmgr.cxx:1974: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/ghostwriter-1.8.1/src/sundown/autolink.c:40: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).
		size_t len = strlen(valid_uris[i]);
data/ghostwriter-1.8.1/src/sundown/autolink.c:175: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).
	if (size < 4 || memcmp(data, "www.", strlen("www.")) != 0)
data/ghostwriter-1.8.1/src/sundown/autolink.c:273: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).
	link_end = strlen("://");
data/ghostwriter-1.8.1/src/sundown/buffer.c:170: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).
	bufput(buf, str, strlen(str));
data/ghostwriter-1.8.1/src/sundown/buffer.h:53: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).
	{ (uint8_t *)strname, strlen(strname), 0, 0, 0 }
data/ghostwriter-1.8.1/src/sundown/markdown.c:1862: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).
	size_t tag_size = strlen(curtag);

ANALYSIS SUMMARY:

Hits = 547
Lines analyzed = 66512 in approximately 1.76 seconds (37876 lines/second)
Physical Source Lines of Code (SLOC) = 54452
Hits@level = [0]  10 [1] 225 [2] 222 [3]   0 [4] 100 [5]   0
Hits@level+ = [0+] 557 [1+] 547 [2+] 322 [3+] 100 [4+] 100 [5+]   0
Hits/KSLOC@level+ = [0+] 10.2292 [1+] 10.0455 [2+] 5.91347 [3+] 1.83648 [4+] 1.83648 [5+]   0
Dot directories skipped = 2 (--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.