mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.
Needs backport.
This commit is contained in:
parent
e7214a130b
commit
db83eb3170
5 changed files with 19 additions and 2 deletions
|
@ -1439,8 +1439,8 @@ err_input(perrdetail *err)
|
|||
}
|
||||
if (msg == NULL)
|
||||
msg = "unknown decode error";
|
||||
Py_DECREF(type);
|
||||
Py_DECREF(value);
|
||||
Py_XDECREF(type);
|
||||
Py_XDECREF(value);
|
||||
Py_XDECREF(tb);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue