Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable23] Prevent loading images that would require too much memory. #30602

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

backportbot-nextcloud[bot]
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>
@blizzz blizzz merged commit 6d2b690 into stable23 Jan 12, 2022
@blizzz blizzz deleted the backport/30291/stable23 branch January 12, 2022 10:16
@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