Blender Git Commit Log

Git Commits -> Revision b1492b7

Revision b1492b7 by Sergey Sharybin (master)
May 18, 2020, 09:50 (GMT)
Alembic: Fix bad allocation with invalid knots data

It is not impossible that the number of knots is stored wrong in the
file (for example, it will be 1 knot only).

This change fixes bad memory allocation and bad memory access in such
cases. It also fixes strict compiler warning which was mentioning that
the allocation size is wrong),

There isn't really the correct way of dealing with such situation, so
simply fall back to Blender's knots calculation.

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

Commit Details:

Full Hash: b1492b76bafd490ff6c9c9c6efdede9a756a16be
Parent Commit: 9796cb1
Lines Changed: +1, -1

1 Modified Path:

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