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

Issue 10584044: Check that the C string passed to Dart_NewString is valid UTF-8. (Closed)

Created:
8 years, 6 months ago by cshapiro
Modified:
8 years, 6 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Check that the C string passed to Dart_NewString is valid UTF-8. BUG=2663 Committed: https://code.google.com/p/dart/source/detail?r=8942

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 chunk +8 lines, -0 lines 2 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/vm/unicode.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/unicode.cc View 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
cshapiro
8 years, 6 months ago (2012-06-20 21:58:45 UTC) #1
hausner
LGTM w/comment http://codereview.chromium.org/10584044/diff/2001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/10584044/diff/2001/runtime/vm/dart_api_impl.cc#newcode1503 runtime/vm/dart_api_impl.cc:1503: return Api::NewError("%s expects argument 'str' to be ...
8 years, 6 months ago (2012-06-20 22:05:25 UTC) #2
cshapiro
8 years, 6 months ago (2012-06-20 22:09:06 UTC) #3
http://codereview.chromium.org/10584044/diff/2001/runtime/vm/dart_api_impl.cc
File runtime/vm/dart_api_impl.cc (right):

http://codereview.chromium.org/10584044/diff/2001/runtime/vm/dart_api_impl.cc...
runtime/vm/dart_api_impl.cc:1503: return Api::NewError("%s expects argument
'str' to be non-null.",
This turns out to be part of the debugger API.  I will move this around in a
separate change so the rest of this file can make use of that definition.

Powered by Google App Engine
This is Rietveld 408576698