-
Notifications
You must be signed in to change notification settings - Fork 21
0.5.0 regression - OverflowError: cannot fit 'int' into an index-sized integer #54
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
Comments
I think that this change was introduced at 93e11a2 |
I see this code which seems that it does not validation for the length I am not sure at which level this should be fixed pyasn1/pyasn1/codec/ber/decoder.py Lines 1625 to 1637 in 8dd64ac
|
@adiroiban, could you please provide more context about the "random" input data you try to decode?
|
Hi. The data is just random. Is a private key for which the wrong decryption secret was used...so ended up with data without any meaning. |
Okay, the issue is minor then, and I'll check it later when time allows. Thank you for the report! Or, as usual, PRs are welcome! :) |
Thanks for this great library :)
I am upgrading from 0.4.8 to 0.5.1.
While executing my tests I can see that with 0.5.0 (and 0.5.1) the
pyasn1.error.SubstrateUnderrunError
is no longer raised and instead anOverflowError
is raised.To reproduce, I have this code.
Data is just some random input.
The error is
Note that if you try a smaller input you get
The text was updated successfully, but these errors were encountered: