Page MenuHomePhabricator

Imagemap does not check for even number of data values
Closed, ResolvedPublic

Description

Author: michael.daly

Description:
When a polygonal area is defined, ImageMap does not check that there is an even number of data values entered. If an odd number of values is entered, the error is ignored and the resulting map is potentially unusable.

Example:

poly 0 0 100 100 100 0 666 [some link]]

Since the values define vertices for the polygon, they should be in pairs - in this case (0,0), (100,100) and (100,0). The extra value of 666 may generate a map that is not usable.

This does not occur for circle and rect values, only for poly.


Version: unspecified
Severity: normal

Details

Reference
bz15675

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:19 PM
bzimport added a project: ImageMap.
bzimport set Reference to bz15675.

michael.daly wrote:

A fix for this is contained in the patch submitted for bug 9126.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:12 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:21 AM