Skip to content

http mutation filter: fix possbile illegal memory access when the req…#26112

Merged
htuch merged 3 commits intoenvoyproxy:mainfrom
wbpcode:dev-fix-header-mutation
Mar 17, 2023
Merged

http mutation filter: fix possbile illegal memory access when the req…#26112
htuch merged 3 commits intoenvoyproxy:mainfrom
wbpcode:dev-fix-header-mutation

Conversation

@wbpcode
Copy link
Copy Markdown
Member

@wbpcode wbpcode commented Mar 16, 2023

…uest is reset before request headers are completely received

Commit Message: http mutation filter: fix possbile illegal memory access when the request is reset before request headers are completely received
Additional Description:

See comments in the code.

Risk Level: low.
Testing: unit.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.

…uest is reset before request headers are completely received

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
@wbpcode wbpcode requested a review from htuch as a code owner March 16, 2023 02:47
@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Mar 16, 2023

I just get some new knowledge about the filter chain from #26045. It's possible to get a nullptr request headers in the encoding phase.

cc @botengyao

Signed-off-by: wbpcode <wangbaiping@corp.netease.com>
@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Mar 16, 2023

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #26112 (comment) was created by @wbpcode.

see: more, trace.

Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@htuch htuch enabled auto-merge (squash) March 17, 2023 03:09
@htuch htuch merged commit 2637023 into envoyproxy:main Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants