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 d00b11b..2423630 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];