Fixing TAINTED_SCALAR defect reported by Coverity
[u/mrichter/AliRoot.git] / 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;
   }