Closed
Bug 631946
Opened 13 years ago
Closed 13 years ago
SVG DOM lists should limit the number of items to the number they can index
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: jwatt, Assigned: jwatt)
Details
(Whiteboard: [patch from bug 631939 must come first])
Attachments
(1 file, 2 obsolete files)
21.05 KB,
patch
|
Details | Diff | Splinter Review |
Followup from bug 631939. SVG DOM lists should limit the number of items to the number of items that they can index.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → jwatt
Status: NEW → ASSIGNED
Attachment #510193 -
Flags: review?(roc)
Attachment #510193 -
Flags: approval2.0?
Attachment #510193 -
Flags: review?(roc)
Attachment #510193 -
Flags: review+
Attachment #510193 -
Flags: approval2.0?
Attachment #510193 -
Flags: approval2.0+
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #510193 -
Attachment is obsolete: true
Assignee | ||
Comment 3•13 years ago
|
||
This patch depends on the patch in bug 631939 (also ready to push), so land import that one first.
Whiteboard: [patch from bug 631939 must come first]
Assignee | ||
Comment 4•13 years ago
|
||
Pushed to try: http://tbpl.mozilla.org/?tree=MozillaTry&rev=a360688c9ea0
Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 510194 [details] [diff] [review] patch for checkin >@@ -170,16 +170,21 @@ DOMSVGPathSegList::InternalListWillChang > // Only now may we truncate mItems > mItems.SetLength(newLength); > > } else if (dataIndex < dataLength) { > // aNewValue has more items than our previous internal counterpart > > // Sync mItems: > while (dataIndex < dataLength) { >+ if (mItems.Length() - 1 > DOMSVGPathSeg::MaxListIndex()) { >+ // It's safe to get out of sync with our internal list as long as we >+ // have FEWER items than it does. >+ return; >+ } This caused the orange on the try push, because mItems.Length() returns a unsigned value, and so subtracting 1 causes us to return here, which gets us out of sync.
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #510194 -
Attachment is obsolete: true
Assignee | ||
Comment 7•13 years ago
|
||
Pushed to try with fix: http://tbpl.mozilla.org/?tree=MozillaTry&rev=bd7c865af7fa
Updated•13 years ago
|
Version: unspecified → Trunk
Comment 8•13 years ago
|
||
Comment 7 passed try-server (after some RelEng woes were resolved in bug 632211). --> Adding checkin-needed flag, at jwatt's request. (For anyone checking this in, note whiteboard contents: patch from bug 631939 must come first.)
Keywords: checkin-needed
Comment 9•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/5268e56c2b26
You need to log in
before you can comment on or make changes to this bug.
Description
•