[Twisted-Python] Passing number -2147483648 crash twisted

Andrew Bennetts andrew-twisted at puzzling.org
Fri Jun 25 03:46:50 MDT 2004


On Fri, Jun 25, 2004 at 11:04:33AM +0200, aalted at arsystel.com wrote:
>    I am using twisted spread to pass large numbers between client and server.
> 
>     
> 
>    Everything works ok, except when I try to pass the following number:
>    -2147483648. This causes to crash twisted, and the task administrator in
>    windows xp, shows the use of virtual memory increases to the maximum. No
>    exceptions nor error messages, simply frozes.

This appears to be a bug in the cBanana module, which can be easily
triggered by:

    python -c "from twisted.spread.banana import encode; print repr(encode(-2147483648))"

Good catch.

-Andrew.





More information about the Twisted-Python mailing list