Message284895
PyUnicode_Compare() and PyUnicode_RichCompare() can raise an exception if one of arguments is not ready unicode object. The result is not always checked for error. Proposed patch gets rid of possible bugs. PyUnicode_Compare() and PyUnicode_RichCompare() in Modules/_pickle.c are replaced with _PyUnicode_EqualToASCIIString() and _PyUnicode_EqualToASCIIId() which never fail. Additional check is added in Modules/_decimal/_decimal.c to ensure that the string which is came from a user code is ready.
All other occurrences of PyUnicode_Compare() seems are called only with ready unicode objects. |
|
Date |
User |
Action |
Args |
2017-01-07 07:10:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2017-01-07 07:10:06 | serhiy.storchaka | set | messageid: <1483773006.32.0.276673146687.issue29190@psf.upfronthosting.co.za> |
2017-01-07 07:10:06 | serhiy.storchaka | link | issue29190 messages |
2017-01-07 07:10:06 | serhiy.storchaka | create | |
|