diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-08-22 14:58:30 +0200 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2018-08-27 08:21:31 +0000 |
commit | 7085115f51ce9d02cfff216a3f74b1fb6715f38d (patch) | |
tree | fac2f1091f6d4d2074bea014b54f3d2acede0ea9 | |
parent | 084a80f98014f18de47056567cb89806a5ad4b30 (diff) |
Fix hunspell::NodeReader::affix_id_for_leaf bounds checkv5.11.2
Last leaf node's affix ID is currently always zero due to bad bounds check.
Task-number: QTBUG-70034
Change-Id: I4c7865cac4fb7a79811232000f613151875e7ee2
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/third_party/hunspell/google/bdict_reader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/hunspell/google/bdict_reader.cc b/chromium/third_party/hunspell/google/bdict_reader.cc index 358a8e2624e..de5158076b3 100644 --- a/chromium/third_party/hunspell/google/bdict_reader.cc +++ b/chromium/third_party/hunspell/google/bdict_reader.cc @@ -76,7 +76,7 @@ class NodeReader { // additional affix IDs following the node when leaf_has_following is set, // but this will not handle those. inline int affix_id_for_leaf() const { - if (node_offset_ >= bdict_length_ - 2) { + if (node_offset_ >= bdict_length_ - 1) { is_valid_ = false; return 0; } |