We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue was migrated from Pagure Issue #3079. Originally filed by ftweedal (@frasertweedale) on 2018-11-11 21:03:50:
When reading a DerValue as an OCTET STRING via getOctetString(), if the length of the OCTET STRING is zero an exception is thrown:
DerValue
getOctetString()
java.io.IOException: short read on DerValue buffer
The following program reproduces the issue:
import java.io.IOException; import netscape.security.util.DerValue; class DerTest { public static void main(String[] args) { byte[] bytes = { 0x04, 0x00 }; try { DerValue derVal = new DerValue(bytes); System.out.println(derVal.getOctetString()); } catch (IOException e) { e.printStackTrace(); } } }
The text was updated successfully, but these errors were encountered:
Comment from ftweedal (@frasertweedale) at 2018-11-11 22:10:36
PR: #103
Sorry, something went wrong.
Comment from ftweedal (@frasertweedale) at 2018-11-11 22:10:38
Metadata Update from @frasertweedale:
No branches or pull requests
This issue was migrated from Pagure Issue #3079. Originally filed by ftweedal (@frasertweedale) on 2018-11-11 21:03:50:
When reading a
DerValue
as an OCTET STRING viagetOctetString()
,if the length of the OCTET STRING is zero an exception is thrown:
The following program reproduces the issue:
The text was updated successfully, but these errors were encountered: