You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lua: fix a bug where setting a big response body in lua will result in crash (envoyproxy#41571)
Commit Message: lua: fix a bug where setting a big response body in lua
will result in crash
Additional Description:
At the response phase, when the lua script rewrite the response body to
a huge body, the wartermark callback will be triggered and result a
direct local response. The direct local response headers will override
the original response headers and result in all references of original
response headers be dangling.
But note, because the lua didn't aware the he wartermark callback and
will still try to update the content-length of the original response
headers, so, finally it result in a crash.
Risk Level: low.
Testing: unit, integration.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.
---------
Signed-off-by: WangBaiping <[email protected]>
Signed-off-by: code <[email protected]>
Co-authored-by: phlax <[email protected]>
0 commit comments