python-pkcs11
python-pkcs11 copied to clipboard
Python int too large to convert to C ssize_t
ESC[36msigning_web |ESC[0m for public_obj in session.get_objects(PUBLIC_KEY_OBJECTS_FILTER):
ESC[36msigning_web |ESC[0m File "pkcs11/_pkcs11.pyx", line 282, in pkcs11._pkcs11.SearchIter.__next__
ESC[36msigning_web |ESC[0m File "pkcs11/_pkcs11.pyx", line 599, in pkcs11._pkcs11.Object._make
ESC[36msigning_web |ESC[0m File "pkcs11/_pkcs11.pyx", line 629, in pkcs11._pkcs11.Object.__getitem__
ESC[36msigning_web |ESC[0m File "pkcs11/_utils.pyx", line 11, in pkcs11._pkcs11.CK_BYTE_buffer
ESC[36msigning_web |ESC[0m File "stringsource", line 151, in View.MemoryView.array.__cinit__
ESC[36msigning_web |ESC[0m OverflowError: Python int too large to convert to C ssize_t
Version: ref 1bab4197f1098b6933dda2a12c5100f6d92cd706
Tell me more about your setup. Is this building the released version or master?
From our Pipfile
python-pkcs11 = { git = 'https://github.com/danni/python-pkcs11.git', ref = '1bab4197f1098b6933dda2a12c5100f6d92cd706' }
And what platform/architecture?
Docker image: python:3.7.3-stretch
https://github.com/docker-library/python/blob/34c9df35e9a69e9f0edde88e861b543edb8bc07a/3.7/stretch/Dockerfile
The pkcs11 library is CloudHSM
I think I've messed up a signed/vs unsigned integer somewhere here. Does it work without the filter?
I have not seen the issue without the filter.
I also get this, and I get with or without a filter.