From 81aa171cd79c10fde9ebd02af516eabbd7283e48 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Fri, 11 Apr 2014 11:02:37 -0700 Subject: jogl: avoid writing into an uninitialized array in nurbs code pspec is never initialized, this would have always crashed. Signed-off-by: Harvey Harrison --- src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/jogl/classes/jogamp/opengl/glu') diff --git a/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java b/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java index 8c2922565..240c905a2 100644 --- a/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java +++ b/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java @@ -63,6 +63,7 @@ public class Patchlist { for (Quilt q = quilts; q != null; q = q.next) patch = new Patch(q, pta, ptb, patch); + pspec = new Pspec[2]; pspec[0] = new Pspec(); pspec[0].range[0] = pta[0]; pspec[0].range[1] = ptb[0]; -- cgit v1.2.3