Hi,
The BIT STRING BER coding according to ITU documentation is

<03>, <length>,<number of unused bits>, .... (bit string octets)

The octet <number of unused bits> is mentioned as 'unused' in the comments,
but is not implemented in asn_parse_bitstring(...) and asn_build_bitstring
(...).

I'm not sure if my BER documentation is the correct one for this coding.  (I
looked for another snmp tools to verify the correct behavior, but I didn't
found a tool with BIT STRING support)

If you agree that it's a bug, I can send a patch

Andreas
 

Reply via email to