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

Issue 453483002: Escape non-ASCII response headers. (Closed)

Created:
6 years, 4 months ago by Elly Fong-Jones
Modified:
6 years, 4 months ago
Reviewers:
davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Escape non-ASCII response headers. Response headers that are not valid UTF-8 can't be stored in a base::StringValue, which is always a UTF-8 string, so escape any non-ASCII values to be safe. This prevents a DCHECK when dev tools' network request inspector is open and we receive these headers. BUG=299880 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288357

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M net/http/http_response_headers.cc View 1 chunk +4 lines, -1 line 2 comments Download

Messages

Total messages: 12 (0 generated)
Elly Fong-Jones
PTAL?
6 years, 4 months ago (2014-08-07 17:09:30 UTC) #1
davidben
https://codereview.chromium.org/453483002/diff/1/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/453483002/diff/1/net/http/http_response_headers.cc#newcode1362 net/http/http_response_headers.cc:1362: base::StringPrintf("%s: %s", escaped_name.c_str(), Header names and values are "supposed ...
6 years, 4 months ago (2014-08-07 17:36:36 UTC) #2
Elly Fong-Jones
https://codereview.chromium.org/453483002/diff/1/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/453483002/diff/1/net/http/http_response_headers.cc#newcode1362 net/http/http_response_headers.cc:1362: base::StringPrintf("%s: %s", escaped_name.c_str(), On 2014/08/07 17:36:36, David Benjamin wrote: ...
6 years, 4 months ago (2014-08-07 19:41:37 UTC) #3
davidben
(Per in-person conversation, escaping lgtm too. I have a minor preference for latin-1 for this ...
6 years, 4 months ago (2014-08-07 19:42:42 UTC) #4
Elly Fong-Jones
The CQ bit was checked by ellyjones@chromium.org
6 years, 4 months ago (2014-08-07 19:42:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ellyjones@chromium.org/453483002/1
6 years, 4 months ago (2014-08-07 19:46:52 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-08 01:09:00 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 01:31:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_triggered_tests/builds/3545)
6 years, 4 months ago (2014-08-08 01:31:29 UTC) #9
Elly Fong-Jones
The CQ bit was checked by ellyjones@chromium.org
6 years, 4 months ago (2014-08-08 14:29:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ellyjones@chromium.org/453483002/1
6 years, 4 months ago (2014-08-08 14:30:21 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 14:37:21 UTC) #12
Message was sent while issue was closed.
Change committed as 288357

Powered by Google App Engine
This is Rietveld 408576698