diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2008-06-10 20:18:45 +0400 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2008-06-10 20:18:45 +0400 |
commit | d086126616fce3be0899369f21e1117b1d8d865a (patch) | |
tree | fad0b95e02224da21c0bf61f78da1c382d38b5bb /source/blender/src/view.c | |
parent | 70453c9e809eb92c6dfbd40949daa5dd792d8e28 (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.c | 2 |
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; |