https://bugzilla.wikimedia.org/show_bug.cgi?id=57985

       Web browser: ---
            Bug ID: 57985
           Summary: rsvg large stderr cause a PHP memory exhaustion
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: File management
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I have spotted on the Wikimedia cluster a SVG image that cause RSVG to generate
roughly 125MB of stderr output.

In includes/media/SVG.php we log that error using something like:

 wfDebugLog( 'thumbnails', trim($stderr) );

trim() thus returns a copy of $stderr (aka roughly 125MB) which can't be
allocated by PHP under its max memory constraint. That result in a fatal error
and no log at all.


Which should probably substr() the $stderr before handling it. No point in
logging the full error IMHO.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to