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
ctypes.util.find_library() searches the current working directory on macOS #162432
On macOS, find_library("ssl") returns /usr/lib/libssl.dylib. However, if the current working directory contains a file named libssl.dylib it'd return it.
I find this behaviour surprising. If an application changes into an untrusted directory and passes the result of find_library("ssl") to ctypes.CDLL(), as in #162362, it loads the local copy.
I think find_library() should stop looking in the working directory. I'm more than happy to provide the PR.
Activity