bug in asn1rt_ber_bin.erl

Torbjorn Tornkvist <>
Thu Feb 2 23:40:50 CET 2006


Hi,

I have the following ASN.1 declaration:

  Flags   ::= BIT STRING (SIZE (32..MAX))

This gives me a badarith crash:

{error,{asn1,{badarith,[{asn1rt_ber_bin,encode_bit_string_bits,4},...

As far as I can understand, bit strings can have an arbitary 
length (?), thus I guess the above declaration means that 
the bitstring at least should contain 32 bits.

Anyway, I made a quick fix which I attach.

Btw: I'm running R10B-9 and asn1-1.4.4.9

Cheers, Tobbe

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: asn1rt_ber_bin.erl.diff
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060202/f7d46126/attachment.ksh>


More information about the erlang-questions mailing list