nextcloud/lib/private/legacy
Joachim Bauch 3ad763cf18 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>
2022-01-11 14:48:27 +00:00
..
template Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_API.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_App.php Merge pull request #29182 from nextcloud/backport/29028/stable21 2021-10-19 11:11:20 +02:00
OC_DB.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
OC_DB_StatementWrapper.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
OC_Defaults.php Update license headers for 19 2020-04-29 11:57:22 +02:00
OC_EventSource.php Update license headers for 19 2020-04-29 11:57:22 +02:00
OC_FileChunking.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_Files.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_Helper.php fix return value of getStorageInfo when 'quota_include_external_storage' is enabled 2021-05-25 19:59:14 +00:00
OC_Hook.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_Image.php Prevent loading images that would require too much memory. 2022-01-11 14:48:27 +00:00
OC_JSON.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_Response.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_Template.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
OC_User.php Don't further setup disabled users when logging in with apache 2021-10-11 13:11:45 +02:00
OC_Util.php [stable22] Remove iconv from dependencies and tests 2022-01-07 10:19:13 +01:00