nextcloud/lib/private
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
..
Accounts Guard against null phone number value 2021-07-02 14:27:23 +02:00
Activity Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
App [stable22] Remove iconv from dependencies and tests 2022-01-07 10:19:13 +01:00
AppFramework Make the route name error more helpful 2021-10-22 20:38:58 +00:00
Archive Fix return types for Archive::getStream 2021-01-07 12:38:41 +01:00
Authentication Merge pull request #29130 from nextcloud/backport/27886/stable21 2021-10-13 08:39:27 +02:00
Avatar Fix resource usages in OC_Image 2021-11-02 11:49:13 +01:00
BackgroundJob Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Broadcast/Events Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Cache Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Calendar Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Collaboration Make psalm more happy 2021-12-13 14:26:22 +00:00
Command Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Comments Use legacy execute method 2021-09-23 12:45:23 +02:00
Console Update license headers for 19 2020-04-29 11:57:22 +02:00
Contacts/ContactsMenu Fix backport 2021-12-13 15:36:45 +01:00
Dashboard Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
DB Merge pull request #29325 from nextcloud/backport/28541/stable21 2022-01-07 08:46:22 +01:00
Diagnostics Update license headers for 19 2020-04-29 11:57:22 +02:00
DirectEditing Get the parent directory before creating a file from a template 2021-04-01 13:31:55 +00:00
Encryption Fix phpcs issues in encryption update 2021-04-01 07:56:41 +00:00
EventDispatcher Log deprecation notice of GenericEventWrapper just once 2021-02-05 10:14:48 +00:00
Federation Limit more contact searches 2021-12-13 14:26:22 +00:00
Files Fix fail when keys/files folder already exists 2022-01-11 10:15:40 +00:00
FullTextSearch private cannot be final 2021-04-26 07:06:08 +00:00
GlobalScale Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Group Fix indentation error 2021-09-10 10:47:34 +00:00
Hooks Merge pull request #23766 from nextcloud/techdebt/noid/remove-unused-private-emitters 2020-10-29 10:03:36 +01:00
Http Use RFC-compliant URL encoding for cookies 2021-01-24 14:18:28 +01:00
IntegrityCheck Also load CA properly in integrity check 2021-01-20 10:57:41 +01:00
KnownUser Add known user check in avatar when v2-private scope 2021-03-29 07:03:37 +00:00
L10N Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
LDAP make ILDAPProviderFactory usable when there is no ldap setup 2021-04-01 13:08:23 +02:00
legacy Prevent loading images that would require too much memory. 2022-01-11 14:48:27 +00:00
Lock Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
Lockdown also implement for FailedCache and NullCache 2021-03-16 16:17:58 +00:00
Log Sanitize more functions from the encryption app 2021-07-21 22:00:32 +02:00
Mail Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Memcache Fix in locking cache check 2021-07-06 17:08:42 +00:00
Migration Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Notification Remove unneeded casts that were found by Psalm 2021-01-11 13:14:41 +01:00
OCS Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Preview Fix resource usages in OC_Image 2021-11-02 11:49:13 +01:00
Remote Update license headers for 19 2020-04-29 11:57:22 +02:00
Repair Apply changes from master's update to 3.1.3 2021-11-15 19:07:11 +01:00
RichObjectStrings Use exactly one empty line after the namespace declaration 2020-04-09 11:48:10 +02:00
Route backport of #28263 2021-10-02 13:51:42 +02:00
Search use node search api for legacy file search endpoint 2021-03-23 13:41:22 +00:00
Security Type hint in IpAddress 2021-11-23 10:28:20 +00:00
Session Only trap E_ERROR in session handling 2021-08-17 10:12:58 +00:00
Settings Remove ISection in favor of IIconSection 2020-10-28 23:05:00 +01:00
Setup Only use alphanumeric chars for mysql password 2021-01-18 12:03:52 +01:00
Share Limit more contact searches 2021-12-13 14:26:22 +00:00
Share20 Add proper message to created share not found 2021-10-13 09:44:51 +00:00
Support Unshift crash reports when they are loaded, to break the recusion 2021-06-25 06:37:07 +00:00
SystemTag The objectid is a string 2021-01-28 22:09:55 +01:00
Tagging Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Template backport of #28263 2021-10-02 13:51:42 +02:00
Updater Update license headers for 19 2020-04-29 11:57:22 +02:00
User Merge pull request #28495 from nextcloud/backport/28481/stable21 2021-08-18 12:49:51 -07:00
UserStatus Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
AllConfig.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
AppConfig.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
CapabilitiesManager.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Color.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Config.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
ContactsManager.php Convert strict_search to wildcard property and add psalm docs 2021-12-13 14:26:22 +00:00
DatabaseException.php Update license headers 2019-12-05 15:38:45 +01:00
DatabaseSetupException.php Update license headers 2019-12-05 15:38:45 +01:00
DateTimeFormatter.php Use elseif instead of else if 2020-04-10 10:35:09 +02:00
DateTimeZone.php Update license headers for 19 2020-04-29 11:57:22 +02:00
ForbiddenException.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
HintException.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
InitialStateService.php Fix default missing initial state for templates 2021-03-17 09:20:38 +00:00
Installer.php Run migrations fully when reenabling an app 2022-01-07 08:50:31 +01:00
LargeFileHelper.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Log.php Interpolate the log message also for logged exceptions 2021-11-29 15:55:00 +00:00
MemoryInfo.php Update license headers for 19 2020-04-29 11:57:22 +02:00
NaturalSort.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
NaturalSort_DefaultCollator.php Update license headers 2019-12-05 15:38:45 +01:00
NavigationManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
NeedsUpdateException.php Update license headers 2019-12-05 15:38:45 +01:00
NotSquareException.php Update license headers 2019-12-05 15:38:45 +01:00
PreviewManager.php Disable HEIC image preview provider for performance concerns 2021-07-21 08:33:43 +00:00
PreviewNotAvailableException.php Update license headers 2019-12-05 15:38:45 +01:00
RedisFactory.php Update license headers for 19 2020-04-29 11:57:22 +02:00
Repair.php Include previous execption for repair steps that don't exist 2021-11-30 12:03:51 +00:00
RepairException.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Search.php Fix "misplaced variables" warning of Psalm in PHPDoc statements 2020-08-17 17:46:57 +02:00
Server.php Fix log_query config flag 2021-12-02 09:41:33 +00:00
ServerContainer.php First query the server container 2020-11-07 17:51:41 +01:00
ServerNotAvailableException.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ServiceUnavailableException.php Update license headers 2019-12-05 15:38:45 +01:00
Setup.php Print an exception trace for setup exceptions 2021-01-07 20:11:25 +01:00
Streamer.php Only disable zip64 if the size is known 2020-09-01 15:01:12 +02:00
SubAdmin.php Fix typo in @deprecated PHPDoc tag 2020-11-24 00:13:09 +01:00
SystemConfig.php consider some config keys under 'objectstore_multibucket' as sensitive 2021-10-06 07:52:40 +00:00
TagManager.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Tags.php Bump doctrine/dbal from 2.12.0 to 3.0.0 2021-01-08 11:45:19 +01:00
TemplateLayout.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
TempManager.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Updater.php Do not print verbose info about app updates if there are none 2021-11-22 20:54:58 +01:00
URLGenerator.php Prevent empty base URL during installation 2021-09-29 15:40:57 +00:00