You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Coverity: CID 1426868/1426867: Null pointer dereferences in textio.c #76583
Activity
vstinner commentedon Dec 21, 2017
The following warning may have been introduced by the commit 507434f from bpo-15216.
New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)
** CID 1426868: Null pointer dereferences (NULL_RETURNS)
/Modules/_io/textio.c: 1251 in textiowrapper_change_encoding()
________________________________________________________________________________________________________ *** CID 1426868: Null pointer dereferences (NULL_RETURNS) /Modules/_io/textio.c: 1251 in textiowrapper_change_encoding() 1245 encoding = self->encoding; 1246 if (errors == Py_None) { 1247 errors = self->errors; 1248 } 1249 } 1250 else if (errors == Py_None) { >>> CID 1426868: Null pointer dereferences (NULL_RETURNS) >>> Assigning: "errors" = null return value from "_PyUnicode_FromId". 1251 errors = _PyUnicode_FromId(&PyId_strict); 1252 } 1253 1254 const char *c_errors = PyUnicode_AsUTF8(errors); 1255 if (c_errors == NULL) { 1256 return -1;** CID 1426867: Null pointer dereferences (NULL_RETURNS)
/Modules/_io/textio.c: 1153 in _io_TextIOWrapper___init___impl()
methane commentedon Dec 24, 2017
New changeset 4856b0f by INADA Naoki in branch 'master':
bpo-32402: io: Add missing NULL check. (GH-4971)
4856b0f