Fix buffer-overflow in lattice deform evaluation

Caused Victor.blend from the cloud to crash with ASan. Four floats are
fetched from the stack, but the buffer was only three wide.

Caused by 042143440d. Issue was probably harmless since the fourth
element wasn't actually touched.
This commit is contained in:
Julian Eisel 2020-10-30 14:56:32 +01:00
parent bcb612e361
commit c0beeeb5de
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ void BKE_lattice_deform_data_eval_co(LatticeDeformData *lattice_deform_data,
int ui, vi, wi, uu, vv, ww;
/* vgroup influence */
float co_prev[3], weight_blend = 0.0f;
float co_prev[4] = {0}, weight_blend = 0.0f;
copy_v3_v3(co_prev, co);
#ifdef __SSE2__
__m128 co_vec = _mm_loadu_ps(co_prev);