Skip to content
Commit 3ad763cf authored by Joachim Bauch's avatar Joachim Bauch Committed by backportbot[bot]
Browse files

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: default avatarJoachim Bauch <bauch@struktur.de>
parent 2e61727e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment