From a4a031e4345ed8f6773b99dd3be0b2f54585c816 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Sat, 23 Dec 2006 18:16:20 +0000 Subject: Python API ---------- Bugfix submitted through bf-committers: Ipo.getNBezPoints() could cause segfault due to incorrect check for end-of-list. --- source/blender/python/api2_2x/Ipo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/api2_2x/Ipo.c') diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index 69faf742f5a..ef9dbc804b7 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -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" ); -- cgit v1.2.3