Skip to content

Commit 9db4f84

Browse files
committed
GPU TPC Clusterizer: Fix out of bounds access
1 parent 1120c99 commit 9db4f84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ GPUd() void GPUTPCCFCheckPadBaseline::CheckBaselineCPU(int32_t nBlocks, int32_t
108108
CfChargePos basePos(iBlock * PadsPerCacheline, 0);
109109

110110
constexpr GPUTPCGeometry geo;
111-
if (basePos.pad() >= geo.NPads(basePos.row())) {
111+
if (basePos.row() >= geo.NROWS || basePos.pad() >= geo.NPads(basePos.row())) {
112112
return;
113113
}
114114

0 commit comments

Comments
 (0)