Message339827
Currently some exceptions can be swallowed in the _ssl module. The proposed PR fixes this. Some examples:
* Use PyDict_GetItemWithError() instead of PyDict_GetItem(). The latter swallows any exceptions. Although it is very unlikely that an exception be raised here, it may be possible.
* Do not overwrite arbitrary exceptions in PyUnicode_FSConverter(), PyUnicode_AsASCIIString() and PyObject_GetBuffer(). MemoryError most likely can be raised in the first two cases. Only expected exceptions (TypeError or UnicodeEncodeError) will now be replaced with a TypeError, and cadata type will be checked before trying to get a buffer or encode. |
|
Date |
User |
Action |
Args |
2019-04-10 07:22:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, janssen, christian.heimes, alex, dstufft |
2019-04-10 07:22:39 | serhiy.storchaka | set | messageid: <1554880959.84.0.895759680892.issue36583@roundup.psfhosted.org> |
2019-04-10 07:22:39 | serhiy.storchaka | link | issue36583 messages |
2019-04-10 07:22:39 | serhiy.storchaka | create | |
|