Skip to content

Null check filterManagerConnection to prevent segfaults#46018

Open
michalkielan wants to merge 1 commit into
envoyproxy:mainfrom
michalkielan:fix-quic-null-crash
Open

Null check filterManagerConnection to prevent segfaults#46018
michalkielan wants to merge 1 commit into
envoyproxy:mainfrom
michalkielan:fix-quic-null-crash

Conversation

@michalkielan

Copy link
Copy Markdown
Contributor

Commit Message: Null check filterManagerConnection to prevent segfaults
Additional Description: Test cleanup could cause filterManagerConnection() to return nullptr leads to a segmentation fault.
Risk Level: none
Testing: quic_protocol_integration_test
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

Signed-off-by: Michal Kielan <michalkielan@protonmail.com>
stats_.tx_reset_.inc();
filterManagerConnection()->incrementSentQuicResetStreamErrorStats(error, /*from_self*/ true,
/*is_upstream*/ true);
if (filterManagerConnection() != nullptr) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This can't be null. Which test are you seeing the flakiness?

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