coverity warning 15746 fixed
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 15 May 2011 20:50:00 +0000 (20:50 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 15 May 2011 20:50:00 +0000 (20:50 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCAPerformance.cxx

index 2c16a66..f8a6c78 100644 (file)
@@ -2105,6 +2105,7 @@ void AliHLTTPCCAPerformance::ReadMCEvent( istream &in )
   fNMCPoints = 0;
 
   in >> fNMCTracks;
+  if( fNMCTracks<0 || fNMCTracks>1000000 ) fNMCTracks = 0;
   fMCTracks = new AliHLTTPCCAMCTrack[fNMCTracks];
   for ( int it = 0; it < fNMCTracks; it++ ) {
     AliHLTTPCCAMCTrack &t = fMCTracks[it];