mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix potential NULL pointer dereferencing in ast module
CID 719690
This commit is contained in:
commit
6f08d30afe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue