Closed Bug 601131 Opened 14 years ago Closed 11 years ago

Firefox hangs with feTurbulence which has huge numOctaves

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: takenspc, Assigned: longsonr)

References

(Depends on 1 open bug)

Details

(Keywords: hang, perf)

Attachments

(2 files)

SVG 1.1 allows content authors to specify loop count in |turblence| by numOctaves attribute.
http://www.w3.org/TR/SVG11/filters.html#feTurbulenceNumOctavesAttribute

And we use its value without any limitations.
http://mxr.mozilla.org/mozilla-central/source/content/svg/content/src/nsSVGFilters.cpp#3470

As a result, firefox hangs when loading an SVG file which contains feTurbulence which has huge numOctaves value.

We may be able to limit the loop count to some value.
Keywords: perf
Keywords: hang
Depends on: 869496
Attached patch patchSplinter Review
octaves changes have a smaller and smaller effect as they grow larger. 10 was the largest value I found out in the wild.
Assignee: nobody → longsonr
Attachment #766406 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/7edda78eca8b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
This landed on mozilla-central whilst it was still mozilla24, however mcMerge references the bugzilla target milestone field ordering, which was updated pre-emptively before the merge had occurred.
Target Milestone: mozilla25 → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: