wiki.techinc.nl/includes
Tim Starling 2e507003ca Ignore invalid chunks in PNG files, instead of aborting metadata extraction
* Factor out file read errors and unexpected EOF errors.
* For errors relating to chunk content, instead of throwing an
  exception which is silently discarded, just log an error and continue
  to the next chunk. This allows the dimensions to be extracted even if
  other metadata is mangled.
* As an additional sanity check, verify the CRC of each chunk.

Bug: T286273
Change-Id: I11d0186496324e0bb1bb0a143f438e0368a8e902
2021-07-13 11:11:03 +10:00
..
actions Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
api Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
auth Merge "Handle null usernames in ThrottlePreAuthenticationProvider" 2021-06-28 20:14:42 +00:00
block Authority: expose user block info 2021-06-30 13:42:21 +02:00
cache Improve logging in LinkCache. 2021-07-01 19:21:19 +02:00
changes EnhancedChangesList: Use parent::beginRecentChangesList() 2021-07-03 20:51:33 +00:00
changetags Clean up conversions to User objects in ChangeTags 2021-07-02 09:03:22 +00:00
collation Use static closures where safe to use 2021-02-11 00:13:52 +00:00
compat
composer Update Legoktm's email address 2021-05-02 05:39:37 +00:00
config Remove unused default values from class properties 2021-05-12 13:44:28 +02:00
content Remove exception on TextContent::getHighlightHtml 2021-07-05 19:25:15 +00:00
context Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
dao DBAccessBase: do not document as both stable and deprecated 2021-06-02 14:11:35 +00:00
db Remove unused PatchFileLocation trait 2021-06-02 06:56:33 +00:00
debug Use IEC prefixes instead of SI prefixes for byte sizes (docs+backend) 2021-06-28 11:59:09 +01:00
deferred Merge "DeferredUpdates: Log execution time for updates" 2021-06-29 20:24:20 +00:00
diff Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
edit
editpage Use IEC prefixes instead of SI prefixes for byte sizes (docs+backend) 2021-06-28 11:59:09 +01:00
exception Handle INormalizedException in MWExceptionHandler 2021-07-07 22:01:27 +02:00
export Deprecate File::getUser in favor of File::getUploader 2021-06-02 09:06:09 -07:00
externalstore Silence transaction profiler warnings in ExternalStoreDB::fetchBlob() 2021-05-16 18:25:57 +02:00
filebackend Hard deprecate FileBackendGroup::singleton() and ::destroySingletons() 2021-05-04 21:03:41 +02:00
filerepo Merge "filerepo: Make $wgUploadThumbnailRenderMap work with multipage files" 2021-07-01 00:21:57 +00:00
gallery Emit media structure as piloted in Parsoid 2021-06-24 23:32:40 +00:00
historyblob Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
Hook Merge "Add warning to MediaWikiServicesHook interface." 2021-07-12 18:15:16 +00:00
HookContainer Merge "Add warning to MediaWikiServicesHook interface." 2021-07-12 18:15:16 +00:00
htmlform Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
http build: Swap deprecated @codingStandardsIgnore to phpcs:ignore 2021-04-04 21:18:22 +02:00
import Merge "Remove the fallback for create rights (covered in PM edit rights check). Remove key to i18n message, no longer being used." 2021-06-30 15:16:39 +00:00
installer Merge "Authority: expose user block info" 2021-06-30 15:12:06 +00:00
interwiki Use @deprecated annotation on hook interfaces, not functions 2021-05-17 23:00:40 +02:00
jobqueue Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
json JsonCodec: verify expected class before attempting to unserialize it 2021-06-08 21:20:05 -07:00
language Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
libs Merge "rdbms: improve caching logic for "rdbms-server-readonly" keys" 2021-07-01 00:01:21 +00:00
linkeddata Document HttpError to help taint-check 2020-12-12 00:06:00 +01:00
linker Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
logging Deprecate LogFormatter::styleRestricedElement 2021-07-12 01:23:42 +02:00
mail Use ::class for class name 2021-04-08 21:17:42 +02:00
media Ignore invalid chunks in PNG files, instead of aborting metadata extraction 2021-07-13 11:11:03 +10:00
Message
Navigation Use Message::page instead of Message::title 2021-06-09 13:18:22 +00:00
objectcache Merge "objectcache: Remove internal 'numServerShards' field in SqlBagOStuff" 2021-07-02 20:22:45 +00:00
page Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
pager Use some more neutral language 2021-04-18 16:49:36 +01:00
ParamValidator/TypeDef UserDef: use UserIdentityValue in a few places 2021-06-13 08:48:53 +00:00
parser Emit media structure as piloted in Parsoid 2021-06-24 23:32:40 +00:00
password Remove User from password policy check interfaces 2021-06-11 10:21:14 -07:00
Permissions Merge "Authority: expose user block info" 2021-06-30 15:12:06 +00:00
poolcounter Add comment to fall-through cases in switch 2021-04-15 17:31:12 +00:00
preferences preferences: Explicit call User::getName on exception message 2021-07-02 14:24:20 +02:00
profiler Use more neutral or alternative language 2021-03-20 19:47:18 +00:00
rcfeed Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
registration Fix array order for array_replace_recursive merge strategy 2021-05-23 13:29:35 -04:00
resourceloader Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
Rest Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
Revision Remove hard-deprecated methods from RevisionStore 2021-06-24 12:42:49 -07:00
revisiondelete Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
revisionlist Using RevisionListBase::getPage instead of calling $title directly 2021-05-13 20:59:27 +00:00
search Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
session Merge "Move CRSF token generation to CsrfTokenSet" 2021-06-21 15:03:30 +00:00
shell Add support for multiple shellbox URLs through a mapping configuration 2021-06-21 14:14:44 +02:00
site Remove some more comments that literally repeat the code 2021-06-18 21:23:56 +00:00
skins Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
sparql
specialpage SpecialBlock: replace User with UserIdentity 2021-06-30 13:55:11 -07:00
specials Merge "SpecialWhatLinksHere: Conditionally hide the namespace invert checkbox" 2021-07-12 23:47:50 +00:00
Storage Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
templates Don't use classes error, success and warning outside parser 2021-04-27 17:11:14 +02:00
tidy docs: Fix @var comments to use doc comment syntax 2021-04-29 22:48:52 +00:00
title Add and fix various type hints in PHPDocs 2021-06-18 08:19:23 +00:00
upload Merge "Remove the fallback for create rights (covered in PM edit rights check). Remove key to i18n message, no longer being used." 2021-06-30 15:16:39 +00:00
user CentralIdLookup: accept Authority for audiences checks instead of User 2021-06-30 11:55:18 -07:00
utils Use the unserialized form of image metadata internally 2021-06-08 17:04:01 +10:00
watcheditem Remove WatchedItem::getUser, deprecated and unused 2021-06-17 14:04:00 -07:00
watchlist Use null coalecing operators everywhere consistenctly. 2021-06-03 21:42:06 -07:00
widget Remove comments that repeat the code 2021-06-02 08:03:09 +00:00
xml ProtectionForm: Use XmlSelect::parseOptionsMessage where appropriate 2021-05-25 18:44:51 +00:00
.htaccess
ActorMigration.php Deprecate legacy actor migration keys 2021-05-03 15:14:06 +10:00
ActorMigrationBase.php Remove hard-deprecated ActorMigrationBase methods. 2021-06-04 07:53:32 -07:00
AjaxDispatcher.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
AjaxResponse.php
AutoLoader.php Add a JobQueueGroupFactory service 2021-05-07 06:50:29 +00:00
BadFileLookup.php build: Update mediawiki/mediawiki-codesniffer to 35.0.0 2021-01-31 13:34:38 +00:00
CategoriesRdf.php
Category.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
CategoryViewer.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
CommentStore.php Turn CommentStore::$tempTables into a constant 2021-02-16 09:42:30 +01:00
CommentStoreComment.php
ConfiguredReadOnlyMode.php
ContentSecurityPolicy.php Remove comments that repeat the code 2021-06-02 08:03:09 +00:00
DefaultSettings.php Provide preference to make skins responsive 2021-07-01 22:18:27 +01:00
Defines.php Defines.php: Drop obsolete Anti-lock flags 2021-06-03 07:14:03 +01:00
DeprecatedGlobal.php DeprecatedGlobal: remove unneeded phpcs suppression 2021-02-16 16:30:43 +00:00
DerivativeRequest.php Create FauxRequestUpload to fake uploads in tests 2021-04-06 23:10:43 +02:00
DevelopmentSettings.php DevelopmentSettings: Don't disable rate limits but use very high ones 2021-06-14 15:27:22 +00:00
DummyLinker.php Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
EditPage.php Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
Emptiable.php Creating an interface to check for emptiness of an object 2021-02-19 21:56:21 +00:00
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php Remove backward compatibility $_FILES from FauxRequest::getUpload 2021-05-16 18:27:35 +00:00
FauxRequestUpload.php Create FauxRequestUpload to fake uploads in tests 2021-04-06 23:10:43 +02:00
FauxResponse.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
FeedUtils.php Merge "FeedUtils: Update regex to match classes appropriately, and test" 2020-12-16 18:15:42 +00:00
FileDeleteForm.php Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
ForeignResourceManager.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
ForkController.php ForkController: Throw more meaningful error for missing PHP extensions 2021-04-17 22:21:15 +01:00
FormOptions.php Improve custom folding and grouping 2020-12-23 12:41:47 +11:00
GitInfo.php
GlobalFunctions.php Merge "Remove comments that repeat the code" 2021-06-02 10:06:20 +00:00
HeaderCallback.php HeaderCallback: Remove pre-caching of WebRequest::getRequestId 2021-03-10 18:29:55 +00:00
Hooks.php Hooks: Map dash character to underscore when generating hook names 2021-01-26 15:37:29 +00:00
Html.php Remove deprecated HTML:infoBox 2021-06-21 14:06:10 -05:00
Linker.php Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
LinkFilter.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
ListToggle.php
MagicWord.php
MagicWordArray.php
MagicWordFactory.php
MediaWiki.php Add statsd timing for actions 2021-06-29 03:34:21 +00:00
MediaWikiServices.php Fix a bunch of random typos 2021-06-29 11:32:04 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php MergeHistory: Avoid potential DB query for trivial message variation 2021-06-08 15:38:07 +00:00
MovePage.php Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
MWGrants.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
MWNamespace.php Hard-deprecate some MWNamespace methods 2021-06-30 17:05:04 +02:00
MWTimestamp.php Split TimeCorrection parser into separate class 2021-05-07 10:43:09 -07:00
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php Reapply Content-Length deferred updates patches 2021-04-08 09:25:56 +00:00
OutputPage.php Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
PageProps.php PageProps: be prepared that PageIdentity is not proper title 2021-05-19 12:50:26 -07:00
PathRouter.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
PHPVersionCheck.php Restore PHP 4.0 compatibility to PHPVersionCheck 2021-06-07 08:24:11 -07:00
Pingback.php Replace uses of DB_MASTER with DB_PRIMARY in documentation and local variables 2021-05-14 12:40:34 -07:00
ProtectionForm.php Use CsrfTokenSet as CSRF token source 2021-07-12 14:19:15 -07:00
ProxyLookup.php ProxyLookup: inject hook container 2021-03-30 18:46:53 +00:00
RawMessage.php
ReadOnlyMode.php
ServiceWiring.php Merge "Authority: expose user block info" 2021-06-30 15:12:06 +00:00
Setup.php fix couple typos in the module docstring 2021-07-06 18:42:13 +03:00
SiteConfiguration.php Use array_fill_keys() instead of array_flip() if that reflects the developer's intention 2021-06-15 00:11:10 +00:00
SiteStats.php Replace uses of DB_MASTER with DB_PRIMARY 2021-04-29 09:24:31 -07:00
SiteStatsInit.php Use null coalecing operators everywhere consistenctly. 2021-06-03 21:42:06 -07:00
Status.php Convert WikiPage to authority. 2021-02-27 00:50:07 +00:00
StreamFile.php Use more neutral or alternative language 2021-03-20 19:47:18 +00:00
StubObject.php
StubUserLang.php Remove StubUserLang::findVariantLink 2021-05-15 12:51:26 -07:00
TemplateParser.php
TemplatesOnThisPageFormatter.php Replace some usages of User with Authority/UserIdentity 2021-03-04 17:20:40 -07:00
Title.php Consistently normalize Title::mFragment before setting 2021-07-01 11:20:05 -07:00
TitleArray.php Remove the TitleArrayFromResult hook 2021-06-02 13:48:30 +00:00
TitleArrayFromResult.php
TitleFactory.php Introduce PageReference 2021-04-13 23:32:20 +02:00
TrackingCategories.php Use Message::page instead of Message::title 2021-06-09 13:18:22 +00:00
WebRequest.php Merge "Create FauxRequestUpload to fake uploads in tests" 2021-05-15 12:20:38 +00:00
WebRequestUpload.php Create FauxRequestUpload to fake uploads in tests 2021-04-06 23:10:43 +02:00
WebResponse.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
WebStart.php Merge "WebStart: Avoid conditionally declared functions in this file" 2021-03-12 03:00:18 +00:00
WikiMap.php WikiMap: typo fix in comment 2020-12-21 13:15:48 -05:00
WikiReference.php