|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
When creating a DerValue with 04 00 and then try to read the content, an NPE is thrown.
The reason is that buffer is not assigned a non-null value if length == 0:
private DerInputStream init(boolean fullyBuffered, InputStream in)
throws IOException {
....
if (length == 0)
return null;
....
buffer = new DerInputBuffer(bytes);
....
}
public byte[] getOctetString() throws IOException {
byte[] bytes;
....
if (buffer.read(bytes) != length)
....
}
|