Closed
Bug 525099
Opened 16 years ago
Closed 16 years ago
Crash (null deref) when attempting pure "by" SMIL animation of non-interpolatable properties
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
(Keywords: crash)
Attachments
(2 files)
|
212 bytes,
image/svg+xml
|
Details | |
|
4.21 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Invalid animations of the form
<animate attributeName="display" by="inline" ...>
currently crash mozilla-central -- e.g.
http://crash-stats.mozilla.com/report/index/bp-16e6e11d-549a-41f2-bb3d-056ea2091028
This happens because nsSMILCSSValueType calls GetZeroTypeForProperty, and assumes that it returns something useable. In the case of an enumerated-value property, though, there's no "zero" value, so it returns null.
Patch coming up.
| Assignee | ||
Comment 1•16 years ago
|
||
Attachment #408961 -
Flags: review?(roc)
| Assignee | ||
Comment 2•16 years ago
|
||
The fix corrects this by making Add / Interpolate / ComputeValue all handle null return values from GetZeroValueForUnit.
Note that in the case where neither of our inputs is "implicitly zero" (and we don't call GetZeroValueForUnit), the nsStyleAnimation method-call will correctly recognize that we can't interpolate/add/compute-distance, and we'll still end up returning NS_ERROR_FAILURE.
The problem here was that we were failing when *setting up* a zero argument to use for the nsStyleAnimation method-call.
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #408961 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 3•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•