Skip to content

golang: avoid setting invalid pointer in Golang side when header value is empty#35930

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
mosn:fix-empty-header
Sep 2, 2024
Merged

golang: avoid setting invalid pointer in Golang side when header value is empty#35930
phlax merged 1 commit into
envoyproxy:mainfrom
mosn:fix-empty-header

Conversation

@doujiang24

Copy link
Copy Markdown
Member

Otherwise, Golang may panic when it found this invalid pointer.
It's not easy to add a test case for it, since Golang only panic during GC.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

…e is empty

Signed-off-by: doujiang24 <doujiang24@gmail.com>
@doujiang24

Copy link
Copy Markdown
Member Author

It's ready to merge, thanks cc @phlax

@phlax
phlax merged commit 499f831 into envoyproxy:main Sep 2, 2024
spacewander pushed a commit to mosn/envoy that referenced this pull request Sep 6, 2024
…e is empty (envoyproxy#35930)

Otherwise, Golang may panic when it found this invalid pointer.
It's not easy to add a test case for it, since Golang only panic during
GC.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: doujiang24 <doujiang24@gmail.com>
johnlanni pushed a commit to johnlanni/envoy that referenced this pull request Mar 25, 2025
…e is empty (envoyproxy#35930)

Otherwise, Golang may panic when it found this invalid pointer.
It's not easy to add a test case for it, since Golang only panic during
GC.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: doujiang24 <doujiang24@gmail.com>
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.

3 participants