Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-01-01 16:49:22 +0300
committerTon Roosendaal <ton@blender.org>2011-01-01 16:49:22 +0300
commitd7c51aa3eb50fd173664b724c1d289f3faf989cd (patch)
treeea31f25bf99ffd8fad0be0cf70dfba515980fe64 /source/blender/makesrna/intern/rna_internal.h
parent7040c89af052e4983e2d71b00ff11c1d0b9cd8cf (diff)
Bugfix #25437
Crash in Bezier animation (inserting keys on control points in curve object). The animation rna paths were not fixed after an editmode session, which got fixed 2 weeks ago, but for all older binaries the issue can still pop up. The crash happened because the RNA array-itterator was not doing a boundary check, even whilst the array size was passed on to the itterator callbacks. With rna then writing far outside of valid memory, very bad and unpredictable corruptions happen. I've added a range check now, and a decent print to denote the issue. An assert quit is useless, since a tab-tab on curve objects will fix the channels nicely. Example of warning print: Array itterator out of range: Spline_bezier_points_lookup_int (index 30 range 2)
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal.h')
-rw-r--r--source/blender/makesrna/intern/rna_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h
index cc1771adf8d..90c5a555221 100644
--- a/source/blender/makesrna/intern/rna_internal.h
+++ b/source/blender/makesrna/intern/rna_internal.h
@@ -324,6 +324,7 @@ typedef struct ArrayIterator {
char *endptr;
void *free_ptr; /* will be free'd if set */
int itemsize;
+ int length;
IteratorSkipFunc skip;
} ArrayIterator;