Skip to content

Commit

Permalink
fix(reverse_lookup_dictionary): writing data to overflow buffer
Browse files Browse the repository at this point in the history
Closes #456
  • Loading branch information
lotem committed Apr 1, 2021
1 parent 2af37e0 commit 46e3066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/dict/reverse_lookup_dictionary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ bool ReverseDb::Build(DictSettings* settings,
metadata_->key_trie_size = key_trie_image_size;

// save value trie image
char* value_trie_image = Allocate<char>();
char* value_trie_image = Allocate<char>(value_trie_image_size);
if (!value_trie_image) {
LOG(ERROR) << "Error creating value trie image.";
return false;
Expand Down

0 comments on commit 46e3066

Please sign in to comment.