bug in asn1rt_ber_bin.erl

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


I have the following ASN.1 declaration:

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

This gives me a badarith crash:


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-

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