diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-26 11:14:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-26 11:14:25 +0300 |
commit | d599368cd4cfc373cacb671d2c9fca06cef356da (patch) | |
tree | 718f471e6074e1803009e6795927c0e23c133f2c /source/blender/makesrna/intern/rna_wm_gizmo.c | |
parent | c67a51db42998b5d26a97e434896ce78c44f2320 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_gizmo.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm_gizmo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |