Importing _scrypt crashes Python3

Issue #17 resolved
Former user created an issue

Importing the module "_scrypt" causes a segfault on Python 3. This causes tools that try to enumerate all installed modules, such as "pydoc -k" or PyCharm, to segfault whenever scrypt is installed.

If PyInit__scrypt function in scrypt.c returned NULL instead of uninitialized data, import should raise a Python exception instead; tools should be able to handle that:

PyMODINIT_FUNC PyInit__scrypt(void) { return NULL; }

Comments (1)

  1. Log in to comment