Author: rabe
Description:
make ulimit4.sh /bin/sh aware
$wgMaxShellMemory isn't respected on POSIX aware Operating Systems other than Linux.
In includes/GlobalFunctions.php around line 2785 we have <code>if ( php_uname( 's' ) == 'Linux' ) {</code> around the handling of using "ulimit4.sh"
Calling "convert" without any limits set will kill your server.
also see: http://www.mediawiki.org/wiki/Manual_talk:$wgMaxShellMemory#Caution:_This_is_LINUX_only.21_Won.27t_work_with_POSIX_like_systems_e.g._FreeBSD
I patched this on my MW-1.20.3 and it seems fine:
- https://wiki.uugrn.org/patches/ulimit4.sh.patch
- https://wiki.uugrn.org/patches/GlobalFunctions.php.patch
Please review this patches.
I set severity to "major" as this will kill wikis running on FreeBSD by just uploading one complex/broken SVG.
Regards
Raphael
Version: 1.20.x
Severity: enhancement
OS: FreeBSD
Attached: