Blender Git Commit Log

Git Commits -> Revision 7aa39b4

Revision 7aa39b4 by Martijn Versteegh (master)
November 11, 2021, 15:25 (GMT)
Fix: Prevent use of uninitialized memory when creating Bezier spline

When Constructing bezier splines from dna, the positions of the
left/right handles were set directly in the internal vectors, by
requesting a reference to them. The problem is that
BezierSpline::handle_positions_left() calls ensure_auto_handles()
before returning the reference. That function does some calculations on
uninitialized memory if the positions array is not yet filled.

Differential Revision: https://developer.blender.org/D13107

Commit Details:

Full Hash: 7aa39b40f40c2b037f97e009eabf8d4698c41ee4
Parent Commit: d26d3cf
Committed By: Hans Goudey
Lines Changed: +25, -8

3 Modified Paths:

/source/blender/blenkernel/BKE_spline.hh (+14, -2) (Diff)
/source/blender/blenkernel/intern/curve_eval.cc (+2, -2) (Diff)
/source/blender/blenkernel/intern/spline_bezier.cc (+9, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021