Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: chrome/third_party/hunspell/src/hunspell/affentry.cxx

Issue 115228: Try to fix a crash in Hunspell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/third_party/hunspell/src/hunspell/affentry.cxx
===================================================================
--- chrome/third_party/hunspell/src/hunspell/affentry.cxx (revision 15859)
+++ chrome/third_party/hunspell/src/hunspell/affentry.cxx (working copy)
@@ -59,8 +59,9 @@
appnd = NULL;
strip = NULL;
if (opts & aeUTF8) {
- for (int i = 0; i < 8; i++) {
- if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]);
+ for (int i = 0; i < numconds; i++) {
+ if (conds.utf8.wchars[i])
+ free(conds.utf8.wchars[i]);
}
}
#ifdef HUNSPELL_EXPERIMENTAL
@@ -396,7 +397,7 @@
appnd = NULL;
strip = NULL;
if (opts & aeUTF8) {
- for (int i = 0; i < 8; i++) {
+ for (int i = 0; i < numconds; i++) {
if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]);
}
}
« no previous file with comments | « chrome/third_party/hunspell/dictionaries/fr_FR.bdic ('k') | chrome/third_party/hunspell/src/hunspell/affixmgr.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698