]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
adding protection for negative array index
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Oct 2011 06:41:51 +0000 (06:41 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Oct 2011 06:41:51 +0000 (06:41 +0000)
HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.cxx

index d00b11bb2698ce278b0a39976eab2d5d99812c5c..2423630a4ea2425b46f49a7e8a41c938c5113a4f 100644 (file)
@@ -447,6 +447,7 @@ AliHLTUInt32_t AliHLTTPCDataCompressionMonitorComponent::AliDataContainer::GetCl
 {
   /// get the cluster id from the current cluster id block (optional)
   if (!fCurrentClusterIds ||
+      clusterNo<0 ||
       (int)fCurrentClusterIds->fSize<=clusterNo)
     return kAliHLTVoidDataSpec;
   return fCurrentClusterIds->fIds[clusterNo];