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

Issue 2619493002: Let the canonical name of invalid encoding be an empty string (Closed)

Created:
3 years, 11 months ago by Jinsuk Kim
Modified:
3 years, 11 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let the canonical name of invalid encoding be an empty string Returning nullptr caused crash in fuzz testing when the call sites attempts to create a string object out of it. Previously it was returning an empty string(std::string()). This change makes it work as it used to by changing the return type back to std::string. BUG=678359 Review-Url: https://codereview.chromium.org/2619493002 Cr-Commit-Position: refs/heads/master@{#441904} Committed: https://chromium.googlesource.com/chromium/src/+/8e9a8aabbde296324fa081995177dd5aac5622e4

Patch Set 1 #

Patch Set 2 : std::string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -12 lines) Patch
M base/i18n/character_encoding.h View 1 1 chunk +1 line, -1 line 0 comments Download
M base/i18n/character_encoding.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M base/i18n/character_encoding_unittest.cc View 1 1 chunk +7 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Jinsuk Kim
3 years, 11 months ago (2017-01-06 01:55:32 UTC) #4
dcheng
LGTM Another alternative is to just return std::string() like the original CL, since I guess ...
3 years, 11 months ago (2017-01-06 03:33:11 UTC) #5
Jinsuk Kim
On 2017/01/06 03:33:11, dcheng wrote: > LGTM > > Another alternative is to just return ...
3 years, 11 months ago (2017-01-06 06:12:48 UTC) #9
dcheng
still lgtm. sorry for the bad advice in the original CL
3 years, 11 months ago (2017-01-06 06:27:42 UTC) #10
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/2619493002/20001
3 years, 11 months ago (2017-01-06 07:10:33 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 08:17:22 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8e9a8aabbde296324fa081995177...

Powered by Google App Engine
This is Rietveld 408576698