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; |
} |