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:
authorCampbell Barton <ideasman42@gmail.com>2014-02-20 13:28:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-20 13:28:30 +0400
commit47c55c5d437c6ad628512f50fa53b7477c42938b (patch)
treecc86cc337180167296ce6fb9823a50b1a8f605b2
parent572a199a245a6f780bf658fda499bb8e9c7a65dd (diff)
Fix for reading past allocated bounds when calculating paths
-rw-r--r--source/blender/blenkernel/intern/anim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c
index 761c923cec5..31e388e6b6b 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;