-
Notifications
You must be signed in to change notification settings - Fork 10
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
Arrays::getLength: include 'from' in exception message #1
base: master
Are you sure you want to change the base?
Conversation
Use append to add 'from' value to the ByteBuffer. This avoids accidentally interpreting it as initial buffer capacity in the constructor. Signed-off-by: Josua Mayer <[email protected]>
Throw IllegalArgumentException if from > to (newLength < 0). Signed-off-by: Josua Mayer <[email protected]>
careful about the second commit, it would be better off in its own pr. I don't know how much error handling you want to include in Arrays class. The check I added here could go into all copyOfRange methods! |
@Artox Are you sure that you wanted to do this PR against our bouncy castle fork? The main repo is here: https://github.com/bcgit/bc-java |
I just saw your comment here: open-keychain/open-keychain#1936 (comment) Is this PR related? Please explain what you are trying to fix. |
Added new constructor to ASN1EncodableVector that takes array of ASN1Encodables. Updated ExtensionGenerator to match C# equivalent. Added method to extract extensions from PKCS10CertificationRequest Added tests
moved [] constructor to addAll method in ASN1EncodableVector
PGP{Public|Secret}KeyRingCollection: Ignore marker packets when reading. open-keychain#1 Merged PR from GitHub, updated contributors, fixed formatting.
Explicitly pass 'from' as String to the constructor of ByteBuffer
to avoid interpreting it as initial buffer capacity.