summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-07-24 19:02:50 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-07-24 19:02:50 (GMT)
commit6f08d30afe7703e8f016b879cb66e697000bc239 (patch)
tree0dae7477bedecd5050a5db6a2adfc433e2cb22d7 /Python
parentaca61703fa00d056217a9091c7b166efa13e6c03 (diff)
parent72f562f719ee59b79e2fa0e2efe27591c75fde26 (diff)
downloadcpython-6f08d30afe7703e8f016b879cb66e697000bc239.zip
cpython-6f08d30afe7703e8f016b879cb66e697000bc239.tar.gz
cpython-6f08d30afe7703e8f016b879cb66e697000bc239.tar.bz2
Fix potential NULL pointer dereferencing in ast module
CID 719690
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index f1c2347..a72ba20 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -528,11 +528,11 @@ init_normalization(struct compiling *c)
if (!c->c_normalize)
return 0;
c->c_normalize_args = Py_BuildValue("(sN)", "NFKC", Py_None);
- PyTuple_SET_ITEM(c->c_normalize_args, 1, NULL);
if (!c->c_normalize_args) {
Py_CLEAR(c->c_normalize);
return 0;
}
+ PyTuple_SET_ITEM(c->c_normalize_args, 1, NULL);
return 1;
}