Closed Bug 669584 Opened 13 years ago Closed 13 years ago

The fix for bug 639728 forgot that items are created lazily

Categories

(Core :: SVG, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
firefox5 - wontfix
firefox6 + fixed
firefox7 + fixed
firefox8 + fixed
blocking2.0 --- -
status2.0 --- wontfix
status1.9.2 --- unaffected
status1.9.1 --- unaffected

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

(Whiteboard: [sg:critical?][qa-])

Attachments

(1 file)

The fix for bug 639728 forgot that items are created lazily. Checking that the list length is going to change to zero is not enough. The last remaining reference to the object may be a single item at an arbitrary index, so really we have to check whether the list length is decreasing.
Attached patch patch (deleted) — Splinter Review
Attachment #544186 - Flags: review?(dholbert)
Blocks: 639728
Comment on attachment 544186 [details] [diff] [review]
patch

Do you have a testcase for this?  (not that we'd want to check it in yet)

We probably should take this on aurora & beta, too.
Attachment #544186 - Flags: review?(dholbert) → review+
guessing sg:critical since the other one was and you marked this as a security bug? please correct if wrong.
blocking2.0: --- → -
status2.0: --- → wanted
Keywords: testcase-wanted
Whiteboard: [sg:critical?]
Yes -- this is indeed [sg:critical].  (could trigger early deletion of the |this| pointer, followed by more method-calls on |this|, in the affected code.)
Pushed http://hg.mozilla.org/integration/mozilla-inbound/rev/a3053d8e4090

I don't have the cycles to make a regression testcase today, but I'll leave this bug open for that. The testcase only needs to land on trunk anyway.
Comment on attachment 544186 [details] [diff] [review]
patch

Yeah, I agree with dholbert this should land on beta and aurora. Pretty much no risk as mentioned in bug 639728 comment 20.
Attachment #544186 - Flags: approval-mozilla-beta?
Attachment #544186 - Flags: approval-mozilla-aurora?
Comment on attachment 544186 [details] [diff] [review]
patch

Approved for releases/mozilla-aurora and releases/mozilla-beta
Attachment #544186 - Flags: approval-mozilla-beta?
Attachment #544186 - Flags: approval-mozilla-beta+
Attachment #544186 - Flags: approval-mozilla-aurora?
Attachment #544186 - Flags: approval-mozilla-aurora+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Blocks: 686044
qa- as no QA fix verification needed
Whiteboard: [sg:critical?] → [sg:critical?][qa-]
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: