bug in asn1rt_ber_bin.erl

Bertil Karlsson <>
Fri Feb 3 09:41:39 CET 2006


Hi,

thank you, I will fix this into next patch. I'll also check the other 
asn1rt_ modules.

/Bertil

Torbjorn Tornkvist wrote:

> 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
>



More information about the erlang-questions mailing list