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

Unified Diff: third_party/hunspell/google/bdict_writer.cc

Issue 4409002: Add a MD5 checksum to the BDIC header.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « third_party/hunspell/google/bdict_reader.cc ('k') | third_party/hunspell/hunspell.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/google/bdict_writer.cc
===================================================================
--- third_party/hunspell/google/bdict_writer.cc (revision 65173)
+++ third_party/hunspell/google/bdict_writer.cc (working copy)
@@ -464,6 +464,11 @@
header->aff_offset = static_cast<uint32>(aff_offset);
header->dic_offset = static_cast<uint32>(dic_offset);
+ // Write the MD5 digest of the affix information and the dictionary words at
+ // the end of the BDic header.
+ if (header->major_version >= 2)
+ MD5Sum(&ret[aff_offset], ret.size() - aff_offset, &header->digest);
+
return ret;
}
« no previous file with comments | « third_party/hunspell/google/bdict_reader.cc ('k') | third_party/hunspell/hunspell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698