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

Issue 326013: Fixes for multiple potential out-of-bounds reads in hunspell::NodeReader.... (Closed)

Created:
11 years, 2 months ago by jschuh
Modified:
8 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, Chris Evans, kuchhal
Visibility:
Public.

Description

Fixes for multiple potential out-of-bounds reads in hunspell::NodeReader. BUG=14721 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30191

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : Fixes for multiple potential out-of-bounds reads in hunspell::NodeReader. ... #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -19 lines) Patch
M third_party/hunspell/google/bdict_reader.cc View 1 2 3 4 18 chunks +73 lines, -19 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
jschuh
Adds several buffer position checks in NodeReader methods, and fixes two checks in BDictReader::Init(). This ...
11 years, 2 months ago (2009-10-23 18:09:38 UTC) #1
brettw
http://codereview.chromium.org/326013/diff/4001/3002 File third_party/hunspell/google/bdict_reader.cc (right): http://codereview.chromium.org/326013/diff/4001/3002#newcode185 Line 185: return 0; // don't continue with a corrupt ...
11 years, 2 months ago (2009-10-23 19:47:07 UTC) #2
jschuh
Found a missed length check, removed some redundant checks, and added a comment. http://codereview.chromium.org/326013/diff/4001/3002 File ...
11 years, 2 months ago (2009-10-23 21:09:25 UTC) #3
brettw
LGTM
11 years, 2 months ago (2009-10-23 21:23:23 UTC) #4
jschuh
8 years, 5 months ago (2012-07-20 23:16:16 UTC) #5
lgtm with a nit.

http://codereview.chromium.org/326013/diff/5003/third_party/hunspell/google/b...
File third_party/hunspell/google/bdict_reader.cc (right):

http://codereview.chromium.org/326013/diff/5003/third_party/hunspell/google/b...
third_party/hunspell/google/bdict_reader.cc:51: BDict::LEAF_NODE_TYPE_VALUE &&
is_valid_;
Since id_byte() does an is_valid_ check this is redundant. I'd remove it.

Powered by Google App Engine
This is Rietveld 408576698