Enforce upper limit on invocations of wfShellExec()
authorDarian Anthony Patrick <dpatrick@wikimedia.org>
Tue, 19 Apr 2016 17:53:39 +0000 (10:53 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 20 May 2016 16:49:02 +0000 (09:49 -0700)
commit43f70b84b3a78baf46d519fefefe0e7b32c89f3b
tree96c1a9c8339052d9dfbea452fb77a142cab67328
parentf91e47ce9e0d115016ed51e33356134260c5dc92
Enforce upper limit on invocations of wfShellExec()

Enforce an upper limit of 100,000 bytes on commands executed via
wfShellExec() to avoid HHVM crash resulting from process spawned with
argument exceeding MAX_ARG_STRLEN, as defined in binfmts.h

Bug: T129506

Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
includes/Defines.php
includes/GlobalFunctions.php