Closed Bug 404204 Opened 18 years ago Closed 18 years ago

"ASSERTION: lost track of line breaks somehow" with RLE, small-caps

Categories

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

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: smontagu)

References

Details

(Keywords: assertion, testcase, Whiteboard: [sg:low] OOB memory read, post 1.8-branch?)

Attachments

(2 files)

Attached file testcase
Loading the testcase triggers: ###!!! ASSERTION: lost track of line breaks somehow: 'nextLineBreak == aTextRun->mLineBreaks.Length()', file /Users/jruderman/trunk/mozilla/layout/generic/nsTextRunTransformations.cpp, line 380
These could become array bounds overflows (reads, probably, but still). Simon, can you take this?
Flags: blocking1.9?
Flags: blocking1.9? → blocking1.9+
Priority: -- → P4
Whiteboard: [sg:low] OOB memory read
Assignee: nobody → smontagu
This is similar to bug 386807 and even more to bug 385414. I believe it's caused by IsDiscardable() in nsTextFrameUtils.cpp stripping the bidi control character, rather than by the bidi resolver (which doesn't change the frame tree at all in this case). On entering nsFontVariantTextRunFactory::RebuildTextRun, aTextRun->mLineBreaks has 3 entries: 0, 0 and 1.
Attached patch patchSplinter Review
Attachment #290141 - Flags: superreview?(roc)
Attachment #290141 - Flags: review?(roc)
Blocks: 385414
OS: Mac OS X → All
Hardware: PC → All
Comment on attachment 290141 [details] [diff] [review] patch +DIRS += reftests I'm guessing this should not be here.
Attachment #290141 - Flags: superreview?(roc)
Attachment #290141 - Flags: superreview+
Attachment #290141 - Flags: review?(roc)
Attachment #290141 - Flags: review+
Checked in (without the irrelevant makefile change)
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Testcase checked in as a crashtest.
Flags: in-testsuite? → in-testsuite+
I'm not seeing the assertion on the 1.8 branch, assuming this is related to post-1.8 work since I see Thebes as part of the patch.
Flags: wanted1.8.1.x-
Whiteboard: [sg:low] OOB memory read → [sg:low] OOB memory read, post 1.8-branch?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: