diff options
author | Joachim Bauch <bauch@struktur.de> | 2021-12-16 09:17:11 +0100 |
---|---|---|
committer | Joachim Bauch <bauch@struktur.de> | 2022-01-11 11:44:38 +0100 |
commit | d3d65e5c889fc3922efc7a8c764027763bc4764f (patch) | |
tree | 4f7532e41f445c18759dafccd6f22d71d04bf4ea /tests/data | |
parent | 55219acb4e964863b301028d47a496fa5d235456 (diff) | |
download | nextcloud-server-d3d65e5c889fc3922efc7a8c764027763bc4764f.tar.gz nextcloud-server-d3d65e5c889fc3922efc7a8c764027763bc4764f.zip |
Prevent loading images that would require too much memory.
For most image formats, the header specifies the width/height.
PHP allocates an image object from that size, even if the actual
image data is much smaller. This image object size is not limited
by the limit configured in PHP.
The memory limit can be configured through "config.php" setting
"preview_max_memory" and defaults to 128 MBytes which should be
enough for most images without filling up all memory.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/testimage-badheader.jpg | bin | 0 -> 103 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/data/testimage-badheader.jpg b/tests/data/testimage-badheader.jpg Binary files differnew file mode 100644 index 00000000000..b876804eb4e --- /dev/null +++ b/tests/data/testimage-badheader.jpg |