From 9db4f84856c859432a746f0c29ab29fc237e92e6 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Thu, 23 Apr 2026 10:19:34 +0200 Subject: [PATCH] GPU TPC Clusterizer: Fix out of bounds access --- GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx b/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx index 204d9d6a8b81a..8ec09d9adba6b 100644 --- a/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx +++ b/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx @@ -108,7 +108,7 @@ GPUd() void GPUTPCCFCheckPadBaseline::CheckBaselineCPU(int32_t nBlocks, int32_t CfChargePos basePos(iBlock * PadsPerCacheline, 0); constexpr GPUTPCGeometry geo; - if (basePos.pad() >= geo.NPads(basePos.row())) { + if (basePos.row() >= geo.NROWS || basePos.pad() >= geo.NPads(basePos.row())) { return; }