Xiang Zhang added the comment: Compressing large data is born to be slow and it's highly possible to cause the kernel halt then due to resource limit.
> 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. This is the responsibility of application code not library code. ---------- nosy: +xiang.zhang _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27560> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com