Closed Bug 569463 Opened 14 years ago Closed 14 years ago

[@ SVGMotionSMILAnimationFunction::RebuildPathAndVerticesFromMpathElem]

Categories

(Core :: SVG, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: longsonr)

References

(Blocks 1 open bug, )

Details

(Keywords: coverity, crash)

Crash Data

Attachments

(1 file)

248 SVGMotionSMILAnimationFunction::
249   RebuildPathAndVerticesFromMpathElem(nsSVGMpathElement* aMpathElem)

257       const nsAString& pathSpec =
258         pathElem->GetParsedAttr(nsGkAtoms::d)->GetStringValue();

according to coverity, there is only one other caller in the tree which doesn't null check the result form GetParsedAttr.
Note that we do check "HasAttr" before calling GetParsedAttr -- so I don't think it's possible for this particular call to return null.  Maybe there's a cleaner way to do things here, though.

You added the keyword "crash" -- do you have a testcase that crashes on this line?
Crashing is what would happen, I use it so that when someone does hit a crash and searches for it, they will find this bug recognize it's their crash and cc/comment/offer incident id's.
Attached patch patchSplinter Review
Assignee: nobody → longsonr
Attachment #448998 - Flags: review?(jwatt)
Attachment #448998 - Flags: review?(jwatt) → review+
pushed http://hg.mozilla.org/mozilla-central/rev/18c728e4b4c6
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Crash Signature: [@ SVGMotionSMILAnimationFunction::RebuildPathAndVerticesFromMpathElem]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: