diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-14 01:26:17 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-14 01:26:17 +0100 |
commit | 804e05e800163e6982b036b025b6333b17d9b3a0 (patch) | |
tree | b055212625bb7d1181699e1e4a8a3cdd182c552e /Python/getcompiler.c | |
parent | c82729e44f2935f72b5cd0e7eb36a87558459663 (diff) | |
download | cpython-git-804e05e800163e6982b036b025b6333b17d9b3a0.tar.gz |
Issue #19437: Use an identifier for "__name__" string in pickle to improve
error handling
The following code didn't handle correctly the failure of
PyUnicode_InternFromString("__name__").
if (newobj_str == NULL) {
newobj_str = PyUnicode_InternFromString("__newobj__");
name_str = PyUnicode_InternFromString("__name__");
if (newobj_str == NULL || name_str == NULL)
return -1;
}
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions