Closed Bug 443529 Opened 16 years ago Closed 16 years ago

Turn "running past end" assertions in nsLineBox.h into aborts

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: jruderman)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
The "running past end" assertion is usually followed by random crashes due to heap corruption.  These crashes distract me, and I imagine they confuse developers into trying to debug the wrong part of the code.  Making debug builds abort instead of assert will get rid of those distractions and make it more likely for the bugs to get noticed and fixed.

This change only affects debug builds, and takes advantage of the recent change to make NS_ABORT_IF_FALSE work correctly (bug 429930).  I have been surfing the Web for several months with debug builds that include this change, and it hasn't caused any problems for me.

Bugs that have triggered the assertion include:

https://bugzilla.mozilla.org/buglist.cgi?bug_id=310879,355426,376419,386812,395450,397007,400057,404146,411870,423098,443528
Attachment #328081 - Flags: superreview?(dbaron)
Attachment #328081 - Flags: review?(dbaron)
Comment on attachment 328081 [details] [diff] [review]
patch

r+sr=dbaron
Attachment #328081 - Flags: superreview?(dbaron)
Attachment #328081 - Flags: superreview+
Attachment #328081 - Flags: review?(dbaron)
Attachment #328081 - Flags: review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: