Skip to content

Fix header corruption in sendLocalResponse (#606)#253

Merged
istio-testing merged 1 commit intoistio:release-1.7from
PiotrSikora:deferred-fixup-istio-1.7
Aug 6, 2020
Merged

Fix header corruption in sendLocalResponse (#606)#253
istio-testing merged 1 commit intoistio:release-1.7from
PiotrSikora:deferred-fixup-istio-1.7

Conversation

@PiotrSikora
Copy link

Now that WASM calls sendLocalReply as a deferred call, the
collection of string_views that it uses to set headers on the
new response points to invalid data. We have to make a copy of all
the new headers before deferring the call.

Signed-off-by: Gregory Brail gregbrail@google.com

Now that WASM calls sendLocalReply as a deferred call, the
collection of string_views that it uses to set headers on the
new response points to invalid data. We have to make a copy of all
the new headers before deferring the call.

Signed-off-by: Gregory Brail <gregbrail@google.com>
@istio-testing istio-testing merged commit a66101f into istio:release-1.7 Aug 6, 2020
Monkeyanator pushed a commit to Monkeyanator/envoy that referenced this pull request Apr 19, 2021
Commit Message: Fixing a crash when the decoder receives an empty metadata map.

Additional Description:
Upon receiving an empty metadata map and trying to decode it an assertion is triggered in debug mode, and a seg-fault occurs in release mode.
The proposed fix ignores the empty metadata maps and updates a stats if one is received.

Risk Level: Medium for Envoy's running with Metadata support.
Testing: Added integration tests.
Docs Changes: Added a codec stats counter description.
Release Notes: Added bug fix description.
Platform Specific Features: N/A.
Fixes a fuzz bug: 25303

Signed-off-by: Tony Allen <tony@allen.gg>
Monkeyanator pushed a commit to Monkeyanator/envoy that referenced this pull request Apr 20, 2021
Commit Message: Fixing a crash when the decoder receives an empty metadata map.

Additional Description:
Upon receiving an empty metadata map and trying to decode it an assertion is triggered in debug mode, and a seg-fault occurs in release mode.
The proposed fix ignores the empty metadata maps and updates a stats if one is received.

Risk Level: Medium for Envoy's running with Metadata support.
Testing: Added integration tests.
Docs Changes: Added a codec stats counter description.
Release Notes: Added bug fix description.
Platform Specific Features: N/A.
Fixes a fuzz bug: 25303

Signed-off-by: Tony Allen <tony@allen.gg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants