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

Issue 949343002: Fix array-out-of-bounds in TypedDataView::ElementSizeInBytes. (Closed)

Created:
5 years, 10 months ago by koda
Modified:
5 years, 9 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix array-out-of-bounds in TypedDataView::ElementSizeInBytes. Also add index bounds checking for the lookup table. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=44101

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -6 lines) Patch
M runtime/vm/object.h View 1 2 3 4 5 4 chunks +12 lines, -5 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
koda
5 years, 10 months ago (2015-02-24 21:38:27 UTC) #1
koda
Note that DEBUG mode also didn't catch this one. I'm working on a suitable unit ...
5 years, 10 months ago (2015-02-24 21:47:38 UTC) #2
koda
Not adding a unit test in this CL. The code will be exercised by dart_api_impl_test ...
5 years, 10 months ago (2015-02-24 23:06:22 UTC) #3
koda
On 2015/02/24 23:06:22, koda wrote: > Not adding a unit test in this CL. The ...
5 years, 10 months ago (2015-02-25 23:48:46 UTC) #4
Ivan Posva
LGTM with comment. -Ivan https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h#newcode7039 runtime/vm/object.h:7039: static const intptr_t kNumElementSizes = ...
5 years, 10 months ago (2015-02-25 23:52:44 UTC) #5
koda
https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h#newcode7039 runtime/vm/object.h:7039: static const intptr_t kNumElementSizes = 14; On 2015/02/25 23:52:44, ...
5 years, 10 months ago (2015-02-25 23:57:59 UTC) #6
Ivan Posva
https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h#newcode7039 runtime/vm/object.h:7039: static const intptr_t kNumElementSizes = 14; On 2015/02/25 23:57:59, ...
5 years, 10 months ago (2015-02-26 00:15:44 UTC) #7
koda
https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/949343002/diff/80001/runtime/vm/object.h#newcode7039 runtime/vm/object.h:7039: static const intptr_t kNumElementSizes = 14; On 2015/02/26 00:15:44, ...
5 years, 9 months ago (2015-02-27 18:21:57 UTC) #8
koda
5 years, 9 months ago (2015-02-27 18:52:25 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as r44101 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698