Fixing TAINTED_SCALAR defect reported by Coverity
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 20:07:44 +0000 (20:07 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 20:07:44 +0000 (20:07 +0000)
MUON/mapping/AliMpSectorReader.cxx

index 0c958a7..3514014 100755 (executable)
@@ -433,7 +433,7 @@ void AliMpSectorReader::ReadRowSegmentSpecialData(istream& in,
   
   AliDebugStream(2) << nofPadRows << endl;
   
-  if ( nofPadRows < 0 ) {
+  if ( nofPadRows < 0 || nofPadRows >= std::numeric_limits<Int_t>::max()) {
     AliErrorStream() << "Wrong nofPadRows value." << endl;
     return;
   }