Skip to content

tests: fix an assert failure in codec_impl_fuzz_test#7734

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
ipuustin:oss-fuzz-13814
Jul 26, 2019
Merged

tests: fix an assert failure in codec_impl_fuzz_test#7734
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
ipuustin:oss-fuzz-13814

Conversation

@ipuustin
Copy link
Copy Markdown
Member

@ipuustin ipuustin commented Jul 26, 2019

Description: Encoding the headers may lead to stream reset, which will cause an assert when callbacks are added. Put the callbacks before encoding to prevent this.
Risk Level: low
Testing: fuzz
Docs Changes: N/A
Release Notes: N/A
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13814

Encoding the headers may lead to stream reset, which leads to an assert
when callbacks are added. Add the callbacks before encoding to prevent
this.

Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
@ipuustin
Copy link
Copy Markdown
Member Author

Forgot to mention that this PR fixes oss-fuzz issue 13814.

@asraa
Copy link
Copy Markdown
Contributor

asraa commented Jul 26, 2019

Thanks for catching this! LGTM.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit ca41855 into envoyproxy:master Jul 26, 2019
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