diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-14 10:15:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-14 10:15:46 +0400 |
commit | 3957efdd38d0d5136f8d106de3a79e07b7b0b15f (patch) | |
tree | 70b49c3ca3c1b4c9f0977575dbc083d22d068b82 /source/blender/editors | |
parent | f6c7a69565153f65e49a0f6421ad04d23cdd946a (diff) |
fix for out-of-bounds checks for fcurve modifier and poselib, also check for NULL members of avi structure (since they are checked for NULL later.)
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/armature/poselib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c index 23c987c3536..eea7424c59a 100644 --- a/source/blender/editors/armature/poselib.c +++ b/source/blender/editors/armature/poselib.c @@ -1006,7 +1006,7 @@ static void poselib_preview_apply(bContext *C, wmOperator *op) /* get search-string */ index = pld->search_cursor; - if (index >= 0 && index <= sizeof(tempstr) - 1) { + if (index >= 0 && index < sizeof(tempstr) - 1) { memcpy(&tempstr[0], &pld->searchstr[0], index); tempstr[index] = '|'; memcpy(&tempstr[index + 1], &pld->searchstr[index], (sizeof(tempstr) - 1) - index); |