[Bf-blender-cvs] [47c55c5] master: Fix for reading past allocated bounds when calculating paths
Campbell Barton
noreply at git.blender.org
Thu Feb 20 10:29:33 CET 2014
Commit: 47c55c5d437c6ad628512f50fa53b7477c42938b
Author: Campbell Barton
Date: Thu Feb 20 20:28:30 2014 +1100
https://developer.blender.org/rB47c55c5d437c6ad628512f50fa53b7477c42938b
Fix for reading past allocated bounds when calculating paths
===================================================================
M source/blender/blenkernel/intern/anim.c
===================================================================
diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c
index 761c923..31e388e 100644
--- a/source/blender/blenkernel/intern/anim.c
+++ b/source/blender/blenkernel/intern/anim.c
@@ -545,7 +545,7 @@ void calc_curvepath(Object *ob, ListBase *nurbs)
d = ((float)a) * fac;
/* we're looking for location (distance) 'd' in the array */
- while ((d >= *fp) && fp < maxdist) {
+ while ((fp < maxdist) && (d >= *fp)) {
fp++;
if (bevp < bevplast) bevp++;
bevpn = bevp + 1;
More information about the Bf-blender-cvs
mailing list