Closed
Bug 429458
Opened 17 years ago
Closed 16 years ago
"ASSERTION: Bad offset" in nsTextFrameThebes.cpp with XBL
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Assigned: roc)
References
Details
(Keywords: assertion, testcase, Whiteboard: [sg:critical?])
Attachments
(1 file)
(deleted),
application/xhtml+xml
|
Details |
Gary Kwong found this bug and I helped make a reduced testcase.
Firefox displays the text in the testcase incorrectly (e.g. the first two letters of "apples" are missing) and asserts:
###!!! ASSERTION: Range out of bounds: 'IsInBounds(mStart, mLength, aStart, aLength)', file /Users/jruderman/trunk/mozilla/layout/generic/nsTextFrameThebes.cpp, line 2189
###!!! ASSERTION: No text for IsSpace!: 'aPos < aFrag->GetLength()', file /Users/jruderman/trunk/mozilla/layout/generic/nsTextFrameThebes.cpp, line 476
###!!! ASSERTION: bad index: 'PRUint32(aIndex) < mState.mLength', file /Users/jruderman/trunk/mozilla/layout/base/../../content/base/src/nsTextFragment.h, line 184
###!!! ASSERTION: Bad offset: 'aPos <= aFrag->GetLength()', file /Users/jruderman/trunk/mozilla/layout/generic/nsTextFrameThebes.cpp, line 466
Bug 426272 triggers many of the same assertions, but not the last one, and has a very different testcase.
Filing as security-sensitive because I get scared when nsTextFrameThebes.cpp complains about bad indices and offsets.
Reporter | ||
Comment 1•16 years ago
|
||
I think these assertions are scary enough to warrant "[sg:critical?]". If this bug isn't exploitable, it can be downgraded to [sg:want P2] (on the grounds that it interferes with fuzz-testing to look for other testcases that trigger similar problems).
Whiteboard: [sg:critical?]
Comment 2•16 years ago
|
||
This bug has been placed on the "Top Security Bugs" list. Vlad, can you find someone to assign this to and please treat it as a top priority.
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → roc
Reporter | ||
Comment 3•16 years ago
|
||
Bug 471594 might be related.
(-> Layout)
Component: GFX: Thebes → Layout: Text
QA Contact: thebes → layout.fonts-and-text
Updated•16 years ago
|
Whiteboard: [sg:critical?] → [sg:critical?] common fuzz blocker
Comment 5•16 years ago
|
||
In a Linux mozilla-central build (with my patch queue) I don't see any assertions on this testcase. Is this somehow platform-specific, or is it fixed?
Keywords: qawanted
Reporter | ||
Comment 6•16 years ago
|
||
I'm not seeing the assertions or mis-rendering any more. WFM.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Updated•16 years ago
|
Keywords: qawanted
Whiteboard: [sg:critical?] common fuzz blocker → [sg:critical?]
Updated•16 years ago
|
Flags: in-testsuite?
Comment 7•10 years ago
|
||
Landed a crashtest:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0c4ed86ff0dd
Group: core-security
Flags: in-testsuite? → in-testsuite+
Comment 8•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•