Blender Git Commit Log

Git Commits -> Revision 4cbcfd2

Revision 4cbcfd2 by Hans Goudey (master)
December 28, 2021, 18:22 (GMT)
Fix T94442: Trim curve node can crash with duplicate point

The calculation to find the factor between two evaluated points assumed
that the points were not at the same location. This assumption is some-
what reasonable, since we might expect `lower_bound` to skip those
point anyway. However, the report found a case where the first two
evaluated points were coincident, and there is no strong reason not
to make this safe, so add a check for 0 length before the division.

Commit Details:

Full Hash: 4cbcfd22f5d26e3cb520fa0ee0d85eedf018bab9
Parent Commit: d7c556d
Lines Changed: +3, -1

1 Modified Path:

/source/blender/blenkernel/intern/spline_base.cc (+3, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021