Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python int too large to convert to C ssize_t #60

Open
wjmelements opened this issue Jun 20, 2019 · 8 comments
Open

Python int too large to convert to C ssize_t #60

wjmelements opened this issue Jun 20, 2019 · 8 comments

Comments

@wjmelements
Copy link
Contributor

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

@danni
Copy link
Collaborator

danni commented Jun 21, 2019

Tell me more about your setup. Is this building the released version or master?

@wjmelements
Copy link
Contributor Author

From our Pipfile

python-pkcs11 = { git = 'https://github.com/danni/python-pkcs11.git', ref = '1bab4197f1098b6933dda2a12c5100f6d92cd706' }

@danni
Copy link
Collaborator

danni commented Jun 23, 2019

And what platform/architecture?

@wjmelements
Copy link
Contributor Author

@wjmelements
Copy link
Contributor Author

The pkcs11 library is CloudHSM

@danni
Copy link
Collaborator

danni commented Jun 28, 2019

I think I've messed up a signed/vs unsigned integer somewhere here. Does it work without the filter?

@wjmelements
Copy link
Contributor Author

I have not seen the issue without the filter.

@cormallen
Copy link

I also get this, and I get with or without a filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants