Closed Bug 385426 Opened 17 years ago Closed 17 years ago

"ASSERTION: bad index" in nsTextFragment.h with right-to-left-override and soft-hyphen characters

Categories

(Core :: Layout: Text and Fonts, defect)

x86
macOS
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: assertion, testcase, Whiteboard: [sg:moderate?])

Attachments

(2 files)

Attached file testcase
###!!! ASSERTION: bad index: 'PRUint32(aIndex) < mState.mLength', file /Users/jruderman/trunk/mozilla/layout/base/../../content/base/src/nsTextFragment.h, line 184
Whiteboard: [sg:moderate?]
Flags: blocking1.9?
Assignee: nobody → roc
Flags: blocking1.9? → blocking1.9+
Attached patch fixSplinter Review
Just need to bounds-check this. When all characters in the text frame have been discarded, the nsSkipCharsRunIterator gets positioned off at the first non-discarded character (or the end of the string), so the first skipped character before that position may not belong to this frame.
Attachment #278526 - Flags: review?
Comment on attachment 278526 [details] [diff] [review]
fix

I assume this review request was intended for me :)
Attachment #278526 - Flags: review? → review+
Checked in
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
verified fixed using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3pre) Gecko/2008011009 Firefox/3.0b3pre ID:2008011009 with the testcase from jesse.
Status: RESOLVED → VERIFIED
I don't see any assertions on branch, so I'm making this bug report public.
Group: security
Flags: wanted1.8.1.x-
Crashtest checked in.
Flags: in-testsuite? → in-testsuite+
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: layout.bidi → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: