-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: support appending to predefined inline headers. (#4211)
Previously we just ASSERTed when performing an addReferenceKey() with a predefined header. This PR adds support for comma concatenation and adjusts docs to make clear the contract for value lifetime across the API surface. Fixes #3919. Also resolves ClusterFuzz issue https://oss-fuzz.com/v2/testcase-detail/5107723602493440?noredirect=1. Risk level: High. This affects header processing and wire representation of predefined headers when appending. Testing: Unit/integration tests, corpus entry added. Signed-off-by: Harvey Tuch <htuch@google.com>
- Loading branch information
Showing
6 changed files
with
143 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...router/header_parser_corpus/clusterfuzz-testcase-header_parser_fuzz_test-5107723602493440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
headers_to_add { | ||
} | ||
headers_to_add { | ||
header { | ||
key: "te" | ||
value: "l" | ||
} | ||
} | ||
headers_to_add { | ||
header { | ||
key: "te" | ||
value: "@" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters