[issue17610] Qsort function misuse in typeobject.c

2013-04-06 Thread Zbigniew Halas
Zbigniew Halas added the comment: Thank you for the fix, attaching a patch for 2.7. -- keywords: +patch Added file: http://bugs.python.org/file29701/python_2.7_fix_slot_sorting_v1.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17610] Qsort function misuse in typeobject.c

2013-04-01 Thread Zbigniew Halas
New submission from Zbigniew Halas: Comparison function slotdef_cmp in Objects/typeobject.c is based on the assumption that qsort may be stabilised by taking memory addresses of compared objects into consideration. This assumption is not guaranteed by the C standard and may not always be