Revision: 15190
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15190
Author:   briggs
Date:     2008-06-10 18:18:45 +0200 (Tue, 10 Jun 2008)

Log Message:
-----------
-> Stack corruption in viewline in viw.c

viewline() would write past the end of an array
allocated on the stack causing crashes. Fixed this.

Martin, could you take a look at this?

Modified Paths:
--------------
    trunk/blender/source/blender/src/view.c

Modified: trunk/blender/source/blender/src/view.c
===================================================================
--- trunk/blender/source/blender/src/view.c     2008-06-10 15:25:05 UTC (rev 
15189)
+++ trunk/blender/source/blender/src/view.c     2008-06-10 16:18:45 UTC (rev 
15190)
@@ -156,7 +156,7 @@
 /* create intersection coordinates in view Z direction at mouse coordinates */
 void viewline(short mval[2], float ray_start[3], float ray_end[3])
 {
-       float vec[3];
+       float vec[4];
        
        if(G.vd->persp != V3D_ORTHO){
                vec[0]= 2.0f * mval[0] / curarea->winx - 1;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to