From f03f542c843af36b1e1a466717d8aa923d3f2eb8 Mon Sep 17 00:00:00 2001 From: masera Date: Tue, 8 Feb 2011 17:16:08 +0000 Subject: [PATCH] Coverity fix --- ITS/AliITSgeomMatrix.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ITS/AliITSgeomMatrix.cxx b/ITS/AliITSgeomMatrix.cxx index 1f73ef96e1e..51346150581 100644 --- a/ITS/AliITSgeomMatrix.cxx +++ b/ITS/AliITSgeomMatrix.cxx @@ -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 - if(j>kMxVal){ + if(j>kMxVal || j<0){ AliError(Form("j> %d",kMxVal)); return; } -- 2.31.1