]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity 21630 Out-of-bounds read
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 May 2013 13:44:31 +0000 (13:44 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 May 2013 13:44:31 +0000 (13:44 +0000)
corrected

THijing/THijing.cxx

index 954867806896bb3624e08db9355abd767e68c6be..257649efef76a731afd13ccc5689c39deedf45ec 100644 (file)
@@ -1177,7 +1177,7 @@ void  THijing::SetMDME(Int_t key1, Int_t key2, Int_t   parm)
   if ( key1 < 1 || key1 > 2000) {
     printf("ERROR in THijing::SetMDME(key1, key2, parm):\n");
     printf("      key1=%i is out of range [1..2000]\n", key1);
-  } else if ( key2 < 1 || key2 > 3) {
+  } else if ( key2 < 1 || key2 > 2) {
     printf("ERROR in THijing::SetMDME(key1, key2, parm):\n");
     printf("      key2=%i is out of range [1..3]\n", key2);
   } else {