Technical fix: index out of arrays boundary. Should be checked carefully, the ifx...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Dec 2009 21:22:23 +0000 (21:22 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Dec 2009 21:22:23 +0000 (21:22 +0000)
STEER/AliCorrQADataMakerRec.cxx

index 87fedc1..ab574ef 100644 (file)
@@ -175,6 +175,10 @@ void AliCorrQADataMakerRec::MakeRaws(AliRawReader *)
       TIter next(list) ; 
       TParameter<double> * p ; 
       while ( (p = static_cast<TParameter<double>*>(next()) ) ) {
+       if (index >= kSize) {
+         AliError(Form("Variables list size exceeded (%d) !",index));
+         break;
+       }
         varvalue[index++] = p->GetVal() ; 
       }
     }