Page MenuHomePhabricator

Bad <imagemap> input appears to cause PHP memory limit exhaustion.
Closed, ResolvedPublic

Description

Author: nickpj

Description:
Bad imagemap input appears to cause PHP memory limit exhaustion.

The input wiki text is:

<imagemap>
Image:Barnstar3.png | right | picture of a [[foo]]

poly rect 0 0 50 50 [[Foo type A]]
circle 50 50 20 [[Foo type B]]

</imagemap>

What's bad about it is this line:

poly rect 0 0 50 50 [[Foo type A]]

(Specifically, the "poly " should not be there).

Leads to this in the /var/log/apache2/error.log file:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 205 bytes)

(i.e. I have increased the PHP memory limit to 128 Meg, and that limit is being
exceeded).


Version: unspecified
Severity: normal

Details

Reference
bz7821

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:23 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz7821.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Fixed by Tim Starling in r17948.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:11 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:20 AM