Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
Pointertstate is compared to a NULL valuehere, but above there is adereference. Stack trace:_PySys_AddWarnOptionWithError ->get_warnoptions ->_PySys_GetAttr. Correct code should look like this:
voidPySys_AddWarnOptionUnicode(PyObject*option){PyThreadState*tstate=_PyThreadState_GET();if (tstate&&_PySys_AddWarnOptionWithError(tstate,option)<0) {/* No return value, therefore clear error state if possible */_PyErr_Clear(tstate); }}
CPython versions tested on:
3.11
Operating systems tested on:
No response