[issue9834] PySequence_GetSlice() lacks a NULL check

2010-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84714 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9834] PySequence_GetSlice() lacks a NULL check

2010-09-11 Thread Stefan Behnel
New submission from Stefan Behnel : PySequence_GetSlice() in Objects/abstract.c contains the following code: mp = s->ob_type->tp_as_mapping; if (mp->mp_subscript) { This crashes when the type's "tp_as_mapping" is NULL. The obvious fix is to simply write if (mp && mp->mp_subscript)