Skip to content

Commit 000732b

Browse files
committed
GPU: Silence sanitizer warning
1 parent 34386c9 commit 000732b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GPU/GPUTracking/DataCompression/GPUTPCCompressionKernels.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ GPUdii() void GPUTPCCompressionKernels::Thread<GPUTPCCompressionKernels::step1un
188188
const int iRow = iSliceRow % GPUCA_ROW_COUNT;
189189
const int idOffset = clusters->clusterOffset[iSlice][iRow];
190190
const int idOffsetOut = clusters->clusterOffset[iSlice][iRow] * compressor.mMaxClusterFactorBase1024 / 1024;
191-
const int idOffsetOutMax = clusters->clusterOffset[iSlice][iRow + 1] * compressor.mMaxClusterFactorBase1024 / 1024;
191+
const int idOffsetOutMax = ((const unsigned int*)clusters->clusterOffset[iSlice])[iRow + 1] * compressor.mMaxClusterFactorBase1024 / 1024; // Array out of bounds access is ok, since it goes to the correct nClustersTotal
192192
if (iThread == nThreads - 1) {
193193
smem.nCount = 0;
194194
}

0 commit comments

Comments
 (0)