diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-14 21:07:36 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2011-05-14 21:07:36 (GMT) |
commit | 154bdf92fce957f331a57a54e3cdcaeefeba25ff (patch) | |
tree | 743646fd1a216a15f9ee9e40d977f1c074a773a9 /Lib | |
parent | d8eab60c00a32a3d7838d58f9028bfddd09375f7 (diff) | |
download | cpython-154bdf92fce957f331a57a54e3cdcaeefeba25ff.zip cpython-154bdf92fce957f331a57a54e3cdcaeefeba25ff.tar.gz cpython-154bdf92fce957f331a57a54e3cdcaeefeba25ff.tar.bz2 |
Fix memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_zlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 852857b..48d9f58 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -193,6 +193,7 @@ class CompressTestCase(BaseCompressTestCase, unittest.TestCase): data = b'x' * size try: self.assertRaises(OverflowError, zlib.compress, data, 1) + self.assertRaises(OverflowError, zlib.decompress, data) finally: data = None |