[Bf-blender-cvs] [cc5392b4d93] blender-v2.93-release: Fix buffer overrun in paint_line_strokes_spacing

Campbell Barton noreply at git.blender.org
Wed Jun 9 08:54:45 CEST 2021


Commit: cc5392b4d93d289b538ec9d3fd7860c5bca8514b
Author: Campbell Barton
Date:   Tue Jun 1 12:49:20 2021 +1000
Branches: blender-v2.93-release
https://developer.blender.org/rBcc5392b4d93d289b538ec9d3fd7860c5bca8514b

Fix buffer overrun in paint_line_strokes_spacing

Error in 87cafe92ce2f99d8da620b80e1c26f8078554f93

===================================================================

M	source/blender/editors/sculpt_paint/paint_stroke.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 49ddf2f82d8..992a0aeadfe 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -1191,7 +1191,7 @@ static void paint_line_strokes_spacing(bContext *C,
 
   const bool use_scene_spacing = paint_stroke_use_scene_spacing(brush, mode);
 
-  float mouse[2], dmouse[2];
+  float mouse[3], dmouse[2];
   float length;
   float d_world_space_position[3] = {0.0f};
   float world_space_position_old[3], world_space_position_new[3];



More information about the Bf-blender-cvs mailing list