Issue is intermittent and may be difficult to reproduce.
Call win32cred.CredRead with a TargetName that does not exist. This will randomly cause Python to crash with an access violation.
I believe the root cause is that the variable "cred" in PyCredRead is not being initialized. If the call to CredRead fails it will not set cred to any value. Since cred is uninitialized there's a random chance the PyCredRead will call CredFree on an invalid address.
Initializing cred to NULL stopped the crash from occurring during my testing.
Log in to post a comment.