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

Issue 24239003: Fix range checks for typed data in native code and the optimizer. (Closed)

Created:
7 years, 3 months ago by Florian Schneider
Modified:
7 years, 3 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, sra1
Visibility:
Public.

Description

Fix range checks for typed data in native code and the optimizer. TEST=tests/standalone/typed_data_test.dart R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=27801

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : addressed comments, added tests #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : fixed indentation #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -51 lines) Patch
M runtime/lib/typed_data.cc View 1 2 3 4 5 8 chunks +45 lines, -45 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 1 chunk +20 lines, -2 lines 0 comments Download
M tests/standalone/typed_data_test.dart View 1 2 2 chunks +38 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Florian Schneider
7 years, 3 months ago (2013-09-20 07:58:56 UTC) #1
Ivan Posva
https://codereview.chromium.org/24239003/diff/5001/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/24239003/diff/5001/runtime/vm/flow_graph_optimizer.cc#newcode2652 runtime/vm/flow_graph_optimizer.cc:2652: // Check byte_index + num_bytes < len_in_bytes. Where is ...
7 years, 3 months ago (2013-09-20 17:20:30 UTC) #2
siva
https://chromiumcodereview.appspot.com/24239003/diff/5001/runtime/lib/typed_data.cc File runtime/lib/typed_data.cc (right): https://chromiumcodereview.appspot.com/24239003/diff/5001/runtime/lib/typed_data.cc#newcode22 runtime/lib/typed_data.cc:22: intptr_t element_size_in_bytes) { indentation For a little more readability ...
7 years, 3 months ago (2013-09-20 22:03:45 UTC) #3
Florian Schneider
Addressed comments and added tests with small negative index and for Int64 and Uint64List. https://codereview.chromium.org/24239003/diff/5001/runtime/lib/typed_data.cc ...
7 years, 3 months ago (2013-09-23 11:02:26 UTC) #4
siva
lgtm
7 years, 3 months ago (2013-09-24 00:15:27 UTC) #5
Florian Schneider
7 years, 3 months ago (2013-09-24 08:22:02 UTC) #6
Message was sent while issue was closed.
Committed patchset #7 manually as r27801 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698