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

Issue 522029: If we can't read a unicode character, write the standard "unknown" (0xFFFD) c... (Closed)

Created:
10 years, 11 months ago by Chris Evans
Modified:
9 years, 6 months ago
Reviewers:
jschuh
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, Paweł Hajdan Jr.
Base URL:
svn://chrome-svn.corp.google.com/chrome/trunk/src/
Visibility:
Public.

Description

If we can't read a unicode character, write the standard "unknown" (0xFFFD) character. This will prevent security issues where the current behaviour can be used to strip characters out of a string after it has passed some validation. BUG=30798 TEST=utf_string_conversions_unittest.cc,utf_offset_string_conversions_unittest.cc,zip_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35430

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -40 lines) Patch
M base/utf_offset_string_conversions.cc View 1 chunk +1 line, -2 lines 0 comments Download
M base/utf_offset_string_conversions_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/utf_string_conversions.cc View 1 chunk +1 line, -2 lines 0 comments Download
M base/utf_string_conversions_unittest.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/zip_unittest.cc View 5 chunks +17 lines, -25 lines 0 comments Download
M net/base/file_stream_posix.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Chris Evans
10 years, 11 months ago (2009-12-31 04:41:22 UTC) #1
Chris Evans
Hang fire on the review whilst I resolve a trybot unit test failure...
10 years, 11 months ago (2009-12-31 09:42:33 UTC) #2
jschuh
On 2009/12/31 09:42:33, Chris Evans wrote: > Hang fire on the review whilst I resolve ...
10 years, 11 months ago (2009-12-31 15:58:34 UTC) #3
cevans
On Thu, Dec 31, 2009 at 7:58 AM, <jschuh@chromium.org> wrote: > On 2009/12/31 09:42:33, Chris ...
10 years, 11 months ago (2009-12-31 20:59:52 UTC) #4
Chris Evans
Ok, Linux situation resolved. There was a spurious UTF8 -> Unicode -> UTF8 conversion on ...
10 years, 11 months ago (2009-12-31 23:23:23 UTC) #5
jschuh
10 years, 11 months ago (2010-01-01 00:34:24 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698