diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-12-23 21:16:20 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-12-23 21:16:20 +0300 |
commit | a4a031e4345ed8f6773b99dd3be0b2f54585c816 (patch) | |
tree | 74f8a765dd6e074331f2b914f5f774e4e04e00c6 /source/blender/python/api2_2x/Ipo.c | |
parent | bef18061ec87ece6d1fec88e9fdffcb854eefb13 (diff) |
Python API
----------
Bugfix submitted through bf-committers: Ipo.getNBezPoints() could cause
segfault due to incorrect check for end-of-list.
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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" ); |