Closed
Description
Bug report
Bug description:
Pointer left is dereferenced here, but null-pointer check is done later. Correct code should look like this:
int result;
if (left == NULL || right == NULL) {
PyErr_BadInternalCall();
return NULL;
}
PyTypeObject *sesstype = ((PySSLSession*)left)->ctx->state->PySSLSession_Type;
CPython versions tested on:
3.11
Operating systems tested on:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
only security fixesonly security fixesbugs and security fixesbugs and security fixesbugs and security fixesbugs and security fixesC modules in the Modules dirC modules in the Modules dirAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error