Closed Bug 368860 Opened 18 years ago Closed 18 years ago

"ASSERTION: bad index" in nsTextFragment.h with ‏ and tables

Categories

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

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: assertion, testcase, Whiteboard: [sg:moderate?] post 1.8-branch)

Attachments

(2 files)

Loading the testcase triggers: ###!!! ASSERTION: bad index: 'PRUint32(aIndex) < mState.mLength', file /Users/admin/trunk/mozilla/layout/base/../../content/base/src/nsTextFragment.h, line 183 This looks like a "read past end of buffer" bug, so filing as security-sensitive.
Attached file testcase (deleted) —
Flags: blocking1.9?
This code was introduced in bug 343445.
Blocks: 343445
Whiteboard: [sg:moderate?]
Attached patch fix (deleted) — Splinter Review
Avoid the out-of-bounds access. This code is going away with the new textframe, anyway.
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #254258 - Flags: superreview?(dbaron)
Attachment #254258 - Flags: review?(dbaron)
I don't see this assertion on the trunk. Was it fixed elsewhere?
Same here. roc said "This code is going away with the new textframe, anyway", so the bug 370588 landing probably took care of it.
No, this code hasn't gone away yet, and won't until we turn on the new textframe. I don't know why the assertion has gone away.
Attachment #254258 - Flags: superreview?(dbaron)
Attachment #254258 - Flags: superreview+
Attachment #254258 - Flags: review?(dbaron)
Attachment #254258 - Flags: review+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: blocking1.9? → blocking1.9+
Flags: wanted1.8.1.x-
Whiteboard: [sg:moderate?] → [sg:moderate?] post 1.8-branch
Group: security
Crashtest checked in.
Flags: 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: