Closed
Bug 410444
Opened 18 years ago
Closed 16 years ago
nsTDependentString_CharT crash in NS_ASSERTION
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
INVALID
People
(Reporter: WeirdAl, Assigned: WeirdAl)
References
()
Details
(Keywords: crash)
Attachments
(1 file)
|
1.62 KB,
patch
|
benjamin
:
review-
|
Details | Diff | Splinter Review |
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.
Comment 1•18 years ago
|
||
Is that a problem? If the first or second assertion fails, isn't something already very wrong?
| Assignee | ||
Comment 2•18 years ago
|
||
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 | ||
Updated•18 years ago
|
Attachment #295067 -
Flags: review? → review?(benjamin)
Comment 3•18 years ago
|
||
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-
| Assignee | ||
Comment 4•18 years ago
|
||
Is this bug a WONTFIX then?
Comment 5•16 years ago
|
||
(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?
Updated•16 years ago
|
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.
Description
•