Coverity fix
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Feb 2011 17:16:08 +0000 (17:16 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Feb 2011 17:16:08 +0000 (17:16 +0000)
ITS/AliITSgeomMatrix.cxx

index 1f73ef96e1e527076f7d13598ab305c1422e3fd9..5134615058182f9f4d0c5eed43f0c9b59eb992e1 100644 (file)
@@ -925,7 +925,7 @@ void AliITSgeomMatrix::Read(istream *is){
     while(is->peek()==' ')is->get(); // skip white spaces
     if(isprint(is->peek())){ // old format did not have path.
        *is >> j; // string length
     while(is->peek()==' ')is->get(); // skip white spaces
     if(isprint(is->peek())){ // old format did not have path.
        *is >> j; // string length
-       if(j>kMxVal){
+       if(j>kMxVal || j<0){
          AliError(Form("j> %d",kMxVal));
          return;
        }
          AliError(Form("j> %d",kMxVal));
          return;
        }