ctf: Fix out of bounds positioning of the bitbuffer
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / types / Definition.java
index 8ecbe436c2284df14bf506bf85c2bb3f4ad65c0d..c8a3bc8828bb1fa679c78e15a832ced5ec6538a4 100644 (file)
@@ -138,9 +138,11 @@ public abstract class Definition {
      *            The bitbuffer that is being read
      * @param declaration
      *            The declaration which has an alignment
+     * @throws CTFReaderException
+     *            Happens when there is an out of bounds exception
      * @since 2.2
      */
-    protected static void alignRead(BitBuffer input, IDeclaration declaration){
+    protected static void alignRead(BitBuffer input, IDeclaration declaration) throws CTFReaderException{
         long mask = declaration.getAlignment() -1;
         /*
          * The alignment is a power of 2
This page took 0.025833 seconds and 5 git commands to generate.