Closed
Bug 417384
Opened 17 years ago
Closed 17 years ago
"ASSERTION: Span level will be negative"
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: smaug)
References
Details
(Keywords: assertion, testcase)
Attachments
(3 files, 2 obsolete files)
(deleted),
application/xhtml+xml
|
Details | |
(deleted),
patch
|
peterv
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
Smaug, remember those assertions you added for in bug 409990? :)
###!!! ASSERTION: Span level will be negative!: 'mSpanLevel', file /Users/jruderman/trunk/mozilla/content/base/src/nsPlainTextSerializer.cpp, line 948
Cautiously filing as security-sensitive because the last time this kind of thing happened (bug 409990), it caused memory corruption.
Flags: blocking1.9?
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → Olli.Pettay
Assignee | ||
Comment 1•17 years ago
|
||
This isn't critical, since mSpanLevel isn't used for array indexing or anything.
But I'll look at this.
Assignee | ||
Comment 2•17 years ago
|
||
Ok, this is bad after all. mInHead doesn't take account nested head elements.
So changing from bool to a counter.
But have to make nsPlainTextSerializer::OpenHead() no-op, though as far as I see
that isn't really used in serializer. It is just something coming from
nsIHTMLContentSink and is used only by
http://lxr.mozilla.org/seamonkey/source/parser/htmlparser/src/CNavDTD.cpp#3023
In nsHTMLContentSink OpenHead does open head context, but serializer
doesn't really have such concept.
Attachment #303269 -
Flags: superreview?(peterv)
Attachment #303269 -
Flags: review?(peterv)
Reporter | ||
Comment 3•17 years ago
|
||
Would it make sense to change the variable name from mInHead to mHeadNestingLevel now that it's not a boolean?
Comment 4•17 years ago
|
||
Comment on attachment 303269 [details] [diff] [review]
proposed patch
Let's name it mHeadLevel or something and we should add this to the testsuite.
Attachment #303269 -
Flags: superreview?(peterv)
Attachment #303269 -
Flags: superreview+
Attachment #303269 -
Flags: review?(peterv)
Attachment #303269 -
Flags: review+
Assignee | ||
Comment 5•17 years ago
|
||
I don't know how to write a (mochitest or similar) testcase for this, because
the interfaces nsPlainTextSerializer implements aren't scriptable.
Attachment #303515 -
Flags: approval1.9?
Comment 6•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Attachment #303515 -
Flags: approval1.9?
Assignee | ||
Comment 7•17 years ago
|
||
Thanks Jeff!
Attachment #303515 -
Attachment is obsolete: true
Attachment #303531 -
Flags: approval1.9?
Assignee | ||
Comment 8•17 years ago
|
||
And the right file
Attachment #303531 -
Attachment is obsolete: true
Attachment #303531 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
Attachment #303532 -
Flags: approval1.9?
Comment 9•17 years ago
|
||
Credit where credit's due, I think -- philor, see comments 5-8.
Updated•17 years ago
|
Attachment #303532 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite+
Updated•12 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•