Python API
---------- Bugfix submitted through bf-committers: Ipo.getNBezPoints() could cause segfault due to incorrect check for end-of-list.
This commit is contained in:
@@ -1665,7 +1665,7 @@ static PyObject *Ipo_getNBezPoints( BPy_Ipo * self, PyObject * args )
|
||||
--num;
|
||||
}
|
||||
|
||||
if( num < 0 && !icu )
|
||||
if( num < 0 || !icu )
|
||||
return EXPP_ReturnPyObjError( PyExc_IndexError,
|
||||
"index out of range" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user