I've attached a patch, but note that it doesn't
completely solve the problem. I have tried the
__has_fixed_length method in isolation, but not
integrated into the rest of the module.
I believe trying to solve this bug exposes another
problem. The object I'm trying to encode is an OCTET
STRING, but it meets the condition
and I don't think it should.
A little bit of background:
RFC 2578 indicates, in section 3.2, that the BITS
construct is not a reference to the ASN.1 type 'BIT
STRING'. Section 7.1.4 ties BITS to ASN.1's OCTET STRING.
I see that Bits, in Pysnmp, is a sub-type of
univ.OctetString. I have yet to dig into why
(apparently all) octet string objects are being treated