[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15190] trunk/blender/source/blender/src/ view.c: -> Stack corruption in viewline in viw.c

Geoffrey Bantle hairbat at yahoo.com
Tue Jun 10 18:19:49 CEST 2008


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;





More information about the Bf-blender-cvs mailing list