ironport / shrapnel

Shrapnel is a scalable, high-performance cooperative threading library for Python.
Other
219 stars 34 forks source link

asn1/ber: bitstring decode with zero-length string. #71

Closed samrushing closed 9 years ago

samrushing commented 9 years ago
>>> decode ('\x03\x00')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "coro/asn1/ber.pyx", line 698, in coro.asn1.ber.decode (coro/asn1/ber.c:8365)
  File "coro/asn1/ber.pyx", line 673, in coro.asn1.ber._decode (coro/asn1/ber.c:7844)
  File "coro/asn1/ber.pyx", line 502, in coro.asn1.ber.decode_bitstring (coro/asn1/ber.c:5937)
SystemError: Negative size passed to PyString_FromStringAndSize
>>>