[Bf-blender-cvs] [27bdc1a] master: Preemptive fix for search-buffer size issues

Joshua Leung noreply at git.blender.org
Tue Aug 25 16:32:55 CEST 2015


Commit: 27bdc1a984aca8b8dbe6f5390ca9e38ad2e58bfc
Author: Joshua Leung
Date:   Tue Aug 25 23:27:04 2015 +1200
Branches: master
https://developer.blender.org/rB27bdc1a984aca8b8dbe6f5390ca9e38ad2e58bfc

Preemptive fix for search-buffer size issues

Forgot to increase the size of the string buffer in b88d8916e44f998c4f0bc397b29b0d6ff0f011e9
While this wouldn't have caused problems in most cases (since most modifier names
are short), in the rare event that a long modifier name exists, the buffer may have
ended up being truncated prematurely, causing the wrong FCurves to get matched.

===================================================================

M	source/blender/blenkernel/intern/object.c

===================================================================

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 0af7a32..63a66de 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -4018,7 +4018,7 @@ bool BKE_object_modifier_use_time(Object *ob, ModifierData *md)
 		AnimData *adt = ob->adt;
 		FCurve *fcu;
 
-		char pattern[MAX_NAME + 10];
+		char pattern[MAX_NAME + 16];
 		BLI_snprintf(pattern, sizeof(pattern), "modifiers[\"%s\"]", md->name);
 
 		/* action - check for F-Curves with paths containing 'modifiers[' */




More information about the Bf-blender-cvs mailing list