From c745b9abedfc8402ce16cd8999eb59f12be6868d Mon Sep 17 00:00:00 2001 From: hugovk Date: Fri, 4 Jul 2014 16:53:26 +0300 Subject: [PATCH 1/2] Change hyperlinks to rst format [CI skip] --- docs/reference/Image.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index 6dcb73638..f212ba7a6 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -49,7 +49,8 @@ Functions .. autofunction:: open - .. warning:: > To protect against potential DOS attacks caused by "[decompression bombs](https://en.wikipedia.org/wiki/Zip_bomb)" (i.e. malicious files which decompress into a huge amount of data and are designed to crash or cause disruption by using up a lot of memory), Pillow will issue a `DecompressionBombWarning` if the image is over a certain limit. If desired, the warning can be turned into an error with `warnings.simplefilter('error', Image.DecompressionBombWarning)` or suppressed entirely with `warnings.simplefilter('ignore', Image.DecompressionBombWarning)`. See also [the logging documentation](https://docs.python.org/2/library/logging.html?highlight=logging#integration-with-the-warnings-module) to have warnings output to the logging facility instead of stderr. + .. warning:: > To protect against potential DOS attacks caused by " +`decompression bombs`_" (i.e. malicious files which decompress into a huge amount of data and are designed to crash or cause disruption by using up a lot of memory), Pillow will issue a `DecompressionBombWarning` if the image is over a certain limit. If desired, the warning can be turned into an error with `warnings.simplefilter('error', Image.DecompressionBombWarning)` or suppressed entirely with `warnings.simplefilter('ignore', Image.DecompressionBombWarning)`. See also `the logging documentation`_ to have warnings output to the logging facility instead of stderr. Image processing ^^^^^^^^^^^^^^^^ From 44c4eaebc861342c7b89230f8f04079b7c5eb759 Mon Sep 17 00:00:00 2001 From: hugovk Date: Fri, 4 Jul 2014 17:01:52 +0300 Subject: [PATCH 2/2] Change hyperlinks to rst format [CI skip] --- docs/reference/Image.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index f212ba7a6..bf64c835d 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -49,8 +49,7 @@ Functions .. autofunction:: open - .. warning:: > To protect against potential DOS attacks caused by " -`decompression bombs`_" (i.e. malicious files which decompress into a huge amount of data and are designed to crash or cause disruption by using up a lot of memory), Pillow will issue a `DecompressionBombWarning` if the image is over a certain limit. If desired, the warning can be turned into an error with `warnings.simplefilter('error', Image.DecompressionBombWarning)` or suppressed entirely with `warnings.simplefilter('ignore', Image.DecompressionBombWarning)`. See also `the logging documentation`_ to have warnings output to the logging facility instead of stderr. + .. warning:: > To protect against potential DOS attacks caused by "`decompression bombs`_" (i.e. malicious files which decompress into a huge amount of data and are designed to crash or cause disruption by using up a lot of memory), Pillow will issue a `DecompressionBombWarning` if the image is over a certain limit. If desired, the warning can be turned into an error with `warnings.simplefilter('error', Image.DecompressionBombWarning)` or suppressed entirely with `warnings.simplefilter('ignore', Image.DecompressionBombWarning)`. See also `the logging documentation`_ to have warnings output to the logging facility instead of stderr. Image processing ^^^^^^^^^^^^^^^^