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

Issue 2555813002: Don't consider '\0' as whitespace when parsing HTTP headers. (Closed)

Created:
4 years ago by eroman
Modified:
4 years ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't consider '\0' as whitespace when parsing HTTP headers. BUG=669932 Committed: https://crrev.com/acf834a5675c89f8b4c3b44a4dfeed3fb4be4375 Cr-Commit-Position: refs/heads/master@{#436724}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address Matt's comments #

Patch Set 3 : EmbeddedNull --> Blah (and update comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M net/http/http_util.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_util_unittest.cc View 1 2 3 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
eroman
4 years ago (2016-12-06 18:54:15 UTC) #2
mmenke
https://codereview.chromium.org/2555813002/diff/1/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/2555813002/diff/1/net/http/http_util.cc#newcode429 net/http/http_util.cc:429: base::StringPiece kLws(HTTP_LWS); Needs a const. Also, LWS is one ...
4 years ago (2016-12-06 19:08:24 UTC) #3
eroman
Thanks for the speedy review! https://codereview.chromium.org/2555813002/diff/1/net/http/http_util.cc File net/http/http_util.cc (right): https://codereview.chromium.org/2555813002/diff/1/net/http/http_util.cc#newcode429 net/http/http_util.cc:429: base::StringPiece kLws(HTTP_LWS); On 2016/12/06 ...
4 years ago (2016-12-06 19:19:34 UTC) #6
mmenke
LGTM https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc File net/http/http_util_unittest.cc (right): https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc#newcode1433 net/http/http_util_unittest.cc:1433: EXPECT_TRUE(HttpUtil::IsLWS(' ')); On 2016/12/06 19:19:34, eroman (slow) wrote: ...
4 years ago (2016-12-06 19:25:29 UTC) #7
eroman
https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc File net/http/http_util_unittest.cc (right): https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc#newcode691 net/http/http_util_unittest.cc:691: "HTTP/1.0 200 OK|Foo: 1|EmbeddedNull: 3|Bar: 2||" On 2016/12/06 19:19:34, ...
4 years ago (2016-12-06 19:25:33 UTC) #8
mmenke
On 2016/12/06 19:25:33, eroman (slow) wrote: > https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc > File net/http/http_util_unittest.cc (right): > > https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc#newcode691 ...
4 years ago (2016-12-06 19:25:58 UTC) #9
eroman
https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc File net/http/http_util_unittest.cc (right): https://codereview.chromium.org/2555813002/diff/1/net/http/http_util_unittest.cc#newcode691 net/http/http_util_unittest.cc:691: "HTTP/1.0 200 OK|Foo: 1|EmbeddedNull: 3|Bar: 2||" On 2016/12/06 19:25:33, ...
4 years ago (2016-12-06 19:29:00 UTC) #12
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/2555813002/40001
4 years ago (2016-12-06 21:04:49 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-06 21:14:03 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-06 21:16:13 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/acf834a5675c89f8b4c3b44a4dfeed3fb4be4375
Cr-Commit-Position: refs/heads/master@{#436724}

Powered by Google App Engine
This is Rietveld 408576698