[Bf-blender-cvs] [58e3d82108a] blender-v2.83-release: Fix buffer overrun in paint_line_strokes_spacing
Campbell Barton
noreply at git.blender.org
Tue Jun 1 14:13:20 CEST 2021
Commit: 58e3d82108a016f535fc3099be375c84aafd9167
Author: Campbell Barton
Date: Tue Jun 1 12:49:20 2021 +1000
Branches: blender-v2.83-release
https://developer.blender.org/rB58e3d82108a016f535fc3099be375c84aafd9167
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 463334720c5..b395eea03e5 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -1164,7 +1164,7 @@ static void paint_line_strokes_spacing(bContext *C,
{
UnifiedPaintSettings *ups = stroke->ups;
- float mouse[2], dmouse[2];
+ float mouse[3], dmouse[2];
float length;
sub_v2_v2v2(dmouse, new_pos, old_pos);
More information about the Bf-blender-cvs
mailing list