aboutsummaryrefslogtreecommitdiffstats
path: root/.tx
diff options
context:
space:
mode:
authorJoachim Bauch <bauch@struktur.de>2021-12-16 09:17:11 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-01-11 14:49:08 +0000
commitcebac86ecdd4fb5220225b5625d3b6132dbe7a68 (patch)
tree7192d8268c1d6c0efbc6a002fc8ce19c145d0637 /.tx
parent4846f5d33eb8e2379d9a24cd9a68bfb65b15c11f (diff)
downloadnextcloud-server-cebac86ecdd4fb5220225b5625d3b6132dbe7a68.tar.gz
nextcloud-server-cebac86ecdd4fb5220225b5625d3b6132dbe7a68.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 '.tx')
0 files changed, 0 insertions, 0 deletions