From bf99c8637f94695a802ff80eb4f630e7c4a4f136 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 24 Jan 2014 19:30:26 +0100 Subject: GLRendererQuirks.addQuirks(..): Fix array bounds check --- src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl') diff --git a/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java b/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java index 0ac0c0f03..57c5446f1 100644 --- a/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java +++ b/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java @@ -398,7 +398,7 @@ public class GLRendererQuirks { */ public final void addQuirks(int[] quirks, int offset, int len) throws IllegalArgumentException { int bitmask = 0; - if( !( 0 <= offset + len && offset + len < quirks.length ) ) { + if( !( 0 <= offset + len && offset + len <= quirks.length ) ) { throw new IllegalArgumentException("offset and len out of bounds: offset "+offset+", len "+len+", array-len "+quirks.length); } for(int i=offset; i