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

           Summary: Regex in JavascriptDistiller causes stack overflow on
                    windows
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Resource Loader
        AssignedTo: tpars...@wikimedia.org
        ReportedBy: paul.copper...@gmail.com
                CC: roan.katt...@gmail.com


MW 1.18 causes apache to crash on windows on every load.php request. This is
due to a regex in JavascriptDistiller with bad backtracking behavior:

'/\\/\\*(.|[\\r\\n])*?\\*\\//'

Replacing the  (.|[\\r\\n]) part with \\C solves the problem

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to