[chttp2] Fix use-after-free (#29916)

pull/29946/head
Craig Tiller 3 years ago committed by GitHub
parent 98dcba2807
commit 6e2d7b984d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/ext/transport/chttp2/transport/frame_data.cc
  2. BIN
      test/core/end2end/fuzzers/client_fuzzer_corpus/clusterfuzz-testcase-minimized-client_fuzzer-6514364929933312.test

@ -127,8 +127,7 @@ grpc_core::Poll<grpc_error_handle> grpc_deframe_unprocessed_incoming_frames(
s->stats.incoming.framing_bytes += 5;
s->stats.incoming.data_bytes += length;
grpc_slice_buffer_move_first_into_buffer(slices, 5, header);
grpc_slice_buffer_move_first_no_ref(slices, length,
stream_out->c_slice_buffer());
grpc_slice_buffer_move_first(slices, length, stream_out->c_slice_buffer());
}
return GRPC_ERROR_NONE;

Loading…
Cancel
Save