Invalid size count
Status: Beta
Brought to you by:
akira_ag
Problem:
ASN.1 notation
TestModule DEFINITIONS EXPLICIT TAGS::=
BEGIN
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= PrintableString
Attribute ::= SEQUENCE {
type AttributeType,
values SET OF AttributeValue
}
SubjectDirectoryAttributes ::= SEQUENCE SIZE (1..MAX) OF Attribute
END
gives error "size is incorrect".
I inspected code and found problems in size tracking of tags, for example BERDecoder.java line 449
in my opinion must look like
return new DecodedObject<Object>((new ObjectIdentifier(dottedDecimal)), len.getValue());
an in source without len
return new DecodedObject<Object>((new ObjectIdentifier(dottedDecimal)));
But this fix dosen't fixed framework.
Hi,
I have a similar problem when decoding a asn file: "size is incorrect!".
If necessary, I can add the ASN.1 notation and the asn file.
Thank you,