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

Attribute size goes unchecked. #5

Open
wouterl opened this issue Aug 5, 2013 · 0 comments
Open

Attribute size goes unchecked. #5

wouterl opened this issue Aug 5, 2013 · 0 comments

Comments

@wouterl
Copy link
Member

wouterl commented Aug 5, 2013

Bug reported by Ben Tels.

When the BigInteger representing the attribute contains more than 32 bytes an ArrayIndexOutOfBoundsException is thrown by fixLength(BigInteger, int). Supplying a too big value will result in a negative padding length. A more useful exception would be appreciated.

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

1 participant