Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 84809:0ac424c86a94 3.3
Fix potential NULL pointer dereferencing in ast module
CID 719690
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 24 Jul 2013 21:02:17 +0200 |
| parents | d5b731446a91 |
| children | 96d817f41c4c |
line wrap: on
line diff
--- a/Python/ast.c Wed Jul 24 17:52:01 2013 +0100 +++ b/Python/ast.c Wed Jul 24 21:02:17 2013 +0200 @@ -535,11 +535,11 @@ 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; }
