Skip to content

Commit 6e2d7b9

Browse files
authored
[chttp2] Fix use-after-free (grpc#29916)
1 parent 98dcba2 commit 6e2d7b9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/core/ext/transport/chttp2/transport/frame_data.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ grpc_core::Poll<grpc_error_handle> grpc_deframe_unprocessed_incoming_frames(
127127
s->stats.incoming.framing_bytes += 5;
128128
s->stats.incoming.data_bytes += length;
129129
grpc_slice_buffer_move_first_into_buffer(slices, 5, header);
130-
grpc_slice_buffer_move_first_no_ref(slices, length,
131-
stream_out->c_slice_buffer());
130+
grpc_slice_buffer_move_first(slices, length, stream_out->c_slice_buffer());
132131
}
133132

134133
return GRPC_ERROR_NONE;

0 commit comments

Comments
 (0)