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

Issue 11364115: Don't crash when decoding astral plane UTF-8. (Closed)

Created:
8 years, 1 month ago by Bob Nystrom
Modified:
8 years, 1 month ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org, dgrove
Visibility:
Public.

Description

Don't crash when decoding astral plane UTF-8. Committed: https://code.google.com/p/dart/source/detail?r=14639

Patch Set 1 #

Total comments: 2

Patch Set 2 : Respond to review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -17 lines) Patch
M sdk/lib/io/string_stream.dart View 1 3 chunks +10 lines, -14 lines 0 comments Download
M tests/standalone/io/string_stream_test.dart View 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Bob Nystrom
I think this should address dartbug.com/6513, but please let me know if I did something ...
8 years, 1 month ago (2012-11-07 00:22:50 UTC) #1
Mads Ager (google)
LGTM, thanks Bob. I'm a little worried about which other things will break in this ...
8 years, 1 month ago (2012-11-07 06:54:40 UTC) #2
Bob Nystrom
8 years, 1 month ago (2012-11-07 17:28:05 UTC) #3
https://codereview.chromium.org/11364115/diff/1/sdk/lib/io/string_stream.dart
File sdk/lib/io/string_stream.dart (right):

https://codereview.chromium.org/11364115/diff/1/sdk/lib/io/string_stream.dart...
sdk/lib/io/string_stream.dart:94: } else {
On 2012/11/07 06:54:40, Mads Ager wrote:
> Let's change this to
> 
> if (len !== null && len < available()) {
>   ...
> } else if (_resultOffset == 0) {
>   ...
> } else {
>   ...
> }
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698