Skip to content

Commit

Permalink
Fix read out of bounds in string concatenate
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Aug 9, 2023
1 parent da6ac73 commit 9e4b456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/strings/copying/concatenate.cu
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ __global__ void fused_concatenate_string_offset_kernel(column_device_view const*
bitmask_type* output_mask,
size_type* out_valid_count)
{
size_type output_index = threadIdx.x + blockIdx.x * blockDim.x;
int64_t output_index = threadIdx.x + blockIdx.x * blockDim.x;
size_type warp_valid_count = 0;

unsigned active_mask;
Expand Down Expand Up @@ -175,7 +175,7 @@ __global__ void fused_concatenate_string_chars_kernel(column_device_view const*
size_type const output_size,
char* output_data)
{
size_type output_index = threadIdx.x + blockIdx.x * blockDim.x;
int64_t output_index = threadIdx.x + blockIdx.x * blockDim.x;

while (output_index < output_size) {
// Lookup input index by searching for output index in offsets
Expand Down

0 comments on commit 9e4b456

Please sign in to comment.