diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-20 13:28:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-20 13:28:30 +0400 |
commit | 47c55c5d437c6ad628512f50fa53b7477c42938b (patch) | |
tree | cc86cc337180167296ce6fb9823a50b1a8f605b2 | |
parent | 572a199a245a6f780bf658fda499bb8e9c7a65dd (diff) |
Fix for reading past allocated bounds when calculating paths
-rw-r--r-- | source/blender/blenkernel/intern/anim.c | 2 |
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; |