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

Issue 2493143003: Return kBadChar for longest subpart of incomplete utf-8 character. (Closed)

Created:
4 years, 1 month ago by vogelheim
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Return kBadChar for longest subpart of incomplete utf-8 character. This brings the two utf-8 decoders (bulk + incremental) in line. Technically, either behaviour was correct, since the utf-8 spec demands incomplete utf-8 be handled, but does not specify how. Unicode recommends that "the maximal subpart at that offset should be replaced by a single U+FFFD," and with this change we consistently do that. More details + spec references in the bug. BUG=chromium:662822 Committed: https://crrev.com/fd40ebb1e64274ae3529f8bbe6dad6adc76cb391 Cr-Commit-Position: refs/heads/master@{#41025}

Patch Set 1 #

Patch Set 2 : Update utf-8 decoders to agree on error handling. #

Patch Set 3 : Fix signed/unsigned comparison. #

Patch Set 4 : And then, clang-format uglified the code. #

Patch Set 5 : Fix end of buffer handling. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -300 lines) Patch
M src/unicode.cc View 1 2 3 4 3 chunks +53 lines, -72 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 2 chunks +217 lines, -228 lines 0 comments Download

Messages

Total messages: 27 (21 generated)
vogelheim
4 years, 1 month ago (2016-11-15 15:40:18 UTC) #18
jochen (gone - plz use gerrit)
lgtm
4 years, 1 month ago (2016-11-15 19:11:19 UTC) #20
marja
lgtm
4 years, 1 month ago (2016-11-16 08:41:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2493143003/80001
4 years, 1 month ago (2016-11-16 11:00:40 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-16 11:03:00 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:35:49 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fd40ebb1e64274ae3529f8bbe6dad6adc76cb391
Cr-Commit-Position: refs/heads/master@{#41025}

Powered by Google App Engine
This is Rietveld 408576698