Skip to content

Commit

Permalink
tidb_query_vec_executors: Fixed stack-borrowing undefined-behavior (#…
Browse files Browse the repository at this point in the history
…7709) (#7714)

Signed-off-by: Brian Anderson <[email protected]>

Co-authored-by: Brian Anderson <[email protected]>
  • Loading branch information
sre-bot and brson committed May 11, 2020
1 parent 8919c97 commit 19690cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ impl<Src: BatchExecutor> AggregationExecutorImpl<Src> for SlowHashAggregationImp
)?;
}

let buffer_ptr = (&*self.group_key_buffer).into();
for logical_row_idx in 0..logical_rows_len {
let offset_begin = self.group_key_buffer.len();

Expand Down Expand Up @@ -363,6 +362,7 @@ impl<Src: BatchExecutor> AggregationExecutorImpl<Src> for SlowHashAggregationImp
}
}

let buffer_ptr = (&*self.group_key_buffer).into();
// Extra column is not included in `GroupKeyRefUnsafe` to avoid being aggr on.
let group_key_ref_unsafe = GroupKeyRefUnsafe {
buffer_ptr,
Expand Down

0 comments on commit 19690cb

Please sign in to comment.