Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Bantle <hairbat@yahoo.com>2008-06-10 20:18:45 +0400
committerGeoffrey Bantle <hairbat@yahoo.com>2008-06-10 20:18:45 +0400
commitd086126616fce3be0899369f21e1117b1d8d865a (patch)
treefad0b95e02224da21c0bf61f78da1c382d38b5bb /source/blender/src/view.c
parent70453c9e809eb92c6dfbd40949daa5dd792d8e28 (diff)
-> 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?
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 835aeb9bb30..008387d5a70 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -156,7 +156,7 @@ void viewray(short mval[2], float ray_start[3], float ray_normal[3])
/* 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;