nextcloud/lib/private/legacy
Joachim Bauch d7d47169e4 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:49:15 +00:00
..
template Update php licenses 2021-06-04 22:02:41 +02:00
OC_API.php Remove deprecated \OCP\API 2021-03-03 20:54:32 +01:00
OC_App.php Merge pull request #29183 from nextcloud/backport/29028/stable22 2021-10-19 11:11:26 +02:00
OC_DB.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_DB_StatementWrapper.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Defaults.php Fix default product name for old themes 2021-06-16 15:52:49 +02:00
OC_EventSource.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_FileChunking.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Files.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Helper.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Hook.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Image.php Prevent loading images that would require too much memory. 2022-01-11 14:49:15 +00:00
OC_JSON.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Response.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_Template.php Update php licenses 2021-06-04 22:02:41 +02:00
OC_User.php Don't further setup disabled users when logging in with apache 2021-10-04 11:03:04 +00:00
OC_Util.php [stable22] Remove iconv from dependencies and tests 2022-01-06 23:56:28 +01:00