Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #30291

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>
@nickvergessen nickvergessen added the 3. to review Waiting for reviews label Jan 11, 2022
@nickvergessen nickvergessen merged commit 6c9fa27 into stable21 Jan 12, 2022
@nickvergessen nickvergessen deleted the backport/30291/stable21 branch January 12, 2022 12:50
@blizzz blizzz mentioned this pull request Jan 14, 2022
This was referenced Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants