From d599368cd4cfc373cacb671d2c9fca06cef356da Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 26 Sep 2018 10:14:25 +0200 Subject: Fix access past array boundaries Need to resize `have_functions` arrays when adding more functions. Not sure there is more reliable way which will prevent accidents like this. Was caused by c47be43674f5. --- source/blender/makesrna/intern/rna_wm_gizmo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_wm_gizmo.c') diff --git a/source/blender/makesrna/intern/rna_wm_gizmo.c b/source/blender/makesrna/intern/rna_wm_gizmo.c index ac579851944..494c988a467 100644 --- a/source/blender/makesrna/intern/rna_wm_gizmo.c +++ b/source/blender/makesrna/intern/rna_wm_gizmo.c @@ -755,7 +755,7 @@ static StructRNA *rna_GizmoGroup_register( PointerRNA wgptr; /* Two sets of functions. */ - int have_function[5]; + int have_function[6]; /* setup dummy gizmogroup & gizmogroup type to store static properties in */ dummywg.type = &dummywgt; -- cgit v1.2.3