commit | 5557a9c73fc52276c3fb382491b3f9fe5999a042 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Tue Sep 11 17:30:53 2012 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Tue Sep 11 17:30:53 2012 +0200 |
tree | ee81750e352588c2180ea3910e494638ac136241 | |
parent | 2fd8bdbc9d904a7cb9f7cd676322eee03d92ee0c [diff] |
Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815