]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
check range (10 bits) of filled words
authortkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jul 2004 10:52:42 +0000 (10:52 +0000)
committertkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jul 2004 10:52:42 +0000 (10:52 +0000)
RAW/AliAltroBuffer.cxx

index 274bc6be3df3eb620cd47aaa462b63f4573838b7..093cc20ecbaba7c711b5b54a1283e1f8dec7a5b7 100644 (file)
@@ -231,6 +231,10 @@ void AliAltroBuffer::FillBuffer(Int_t val)
 {
 //Fills the Buffer with 16 ten bits words and write into a file 
 
+  if ((val > 0x3FF) || (val < 0)) {
+    Error("FillBuffer", "Value out of range (10 bits): %d", val);
+    val = 0x3FF;
+  }
   fFreeCellBuffer--;
   if (fShift < 10) {
     Int_t temp = val;