Control: tags -1 + confirmed upstream fixed-upstream

On 2014-04-27 19:34:24, Stefanos Harhalakis wrote:
> Package: python-crypto
> Version: 2.6.1-4
> Severity: normal
> Tags: patch
> 
> Hi,
> 
> /usr/lib/python2.7/dist-packages/Crypto/Util/asn1.py has the following
> bug twice:
> 
> this:
>       p = DerObject.decode(derEle, noLeftOvers)
> should be:
>       p = DerObject.decode(self, derEle, noLeftOvers)
> 
> Right now you end up with the following every type one tries to use
> DerObjectId or DerOctetString:
> 
>   File "/usr/lib/python2.7/dist-packages/Crypto/Util/asn1.py", line 274,
>   in decode
>       p = DerObject.decode(derEle, noLeftOvers)
>       TypeError: unbound method decode() must be called with DerObject
>       instance as first argument (got str instance instead)
> 
> The attached patch should be fixing this problem

Indeed. Thanks for the patch. It looks like this has been fixed upstream for 2.7
by refactoring asn1.py altogether. I'll include the patch in the next upload if
2.7 doesn't get released before that.

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: Digital signature

Reply via email to