Closed Bug 410444 Opened 18 years ago Closed 16 years ago

nsTDependentString_CharT crash in NS_ASSERTION

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: WeirdAl, Assigned: WeirdAl)

References

()

Details

(Keywords: crash)

Attachments

(1 file)

NS_ASSERTION(mData, "nsTDependentString must wrap a non-NULL buffer"); NS_ASSERTION(mLength != size_type(-1), "nsTDependentString has bogus length"); NS_ASSERTION(mData[mLength] == 0, "nsTDependentString must wrap only null-terminated strings"); If either the first or the second assertion fails, we crash.
Is that a problem? If the first or second assertion fails, isn't something already very wrong?
Attached patch patchSplinter Review
I agree the assertion failure in the first place is a Very Bad Thing, and it should be investigated. (The case I hit, and I've yet to try reproducing on trunk, involved Microsoft Silverlight.) But when I hit this crash, I was trying to debug something else, and this proved a distraction.
Assignee: nobody → ajvincent
Status: NEW → ASSIGNED
Attachment #295067 - Flags: review?
Attachment #295067 - Flags: review? → review?(benjamin)
Comment on attachment 295067 [details] [diff] [review] patch The assertions are correct, and it's better to crash at this point than wallpaper over it.
Attachment #295067 - Flags: review?(benjamin) → review-
Is this bug a WONTFIX then?
(In reply to comment #3) > (From update of attachment 295067 [details] [diff] [review]) > The assertions are correct, and it's better to crash at this point than > wallpaper over it. bsmedberg, WONTFIX?
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: