[New-bugs-announce] [issue27560] zlib.compress() crash and keyboard interrupt stops working

pablo sacristan report at bugs.python.org
Mon Jul 18 05:08:54 EDT 2016


New submission from pablo sacristan:

zlib.compress crashes when you put a lot of stuff into it and even when you try keyboard interrupts it doesn't work for some reason, and Python gets killed because trying to compress so much data gets the Python process get killed by the kernel. If you put a large amount of data in it will get killed quicker. A problem is that keyboard interrupts stop working while the program is running, which is usually around 5 - 15 seconds during which python stops working (including interrupts) until it gets killed by the kernel. This may be used to crash python remotely if a server takes user input and runs it through zlib.compress(b'variable' * 2**32) which is not very likely. You probably should set a limit for what you compress and how much it is.
The output is:
Killed: 9
Even though you try doing keyboard interrupt it doesn't work.

----------
files: crash.py
messages: 270732
nosy: pabstersac
priority: normal
severity: normal
status: open
title: zlib.compress() crash and keyboard interrupt stops working
Added file: http://bugs.python.org/file43774/crash.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27560>
_______________________________________


More information about the New-bugs-announce mailing list