Page MenuHomePhabricator

Add hard limit to SpecialElectronPdf::writeToTempFile
Closed, ResolvedPublic

Description

  • It would be nice if writeToTempFile kept track of how much data it was writing, and had some sort of hard limit as a defense in depth mechanism in case there's ever a bug where the user can generate a gb big pdf file.

Event Timeline

Change 320195 had a related patch set uploaded (by Tobias Gritschacher):
Introduce hard limit for document byte size

https://gerrit.wikimedia.org/r/320195

Change 320195 merged by jenkins-bot:
Introduce hard limit for document byte size

https://gerrit.wikimedia.org/r/320195