Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Unified Diff: net/spdy/hpack_decoder.cc

Issue 284643002: Hpack fuzzing tweaks to address CHECK failures on ClusterFuzz (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/spdy/fuzzing/hpack_fuzz_util.cc ('K') | « net/spdy/fuzzing/hpack_fuzz_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_decoder.cc
diff --git a/net/spdy/hpack_decoder.cc b/net/spdy/hpack_decoder.cc
index 6aa4f59a4352196cd04654c7b14908ce0a24ec42..bb19c917a89ec2659ff543b988dd2fc65f37e6dd 100644
--- a/net/spdy/hpack_decoder.cc
+++ b/net/spdy/hpack_decoder.cc
@@ -48,8 +48,10 @@ bool HpackDecoder::HandleControlFrameHeadersComplete(SpdyStreamId id) {
HpackInputStream input_stream(max_string_literal_size_,
headers_block_buffer_);
while (input_stream.HasMoreData()) {
- if (!DecodeNextOpcode(&input_stream))
+ if (!DecodeNextOpcode(&input_stream)) {
+ headers_block_buffer_.clear();
return false;
+ }
}
headers_block_buffer_.clear();
« net/spdy/fuzzing/hpack_fuzz_util.cc ('K') | « net/spdy/fuzzing/hpack_fuzz_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698