Closed Bug 318886 Opened 19 years ago Closed 18 years ago

###!!! ASSERTION: nsTDependentString must wrap only null-terminated strings: 'mData[mLength] == 0' nsTDependentString.h line 67

Categories

(MailNews Core :: MIME, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mcsmurf, Unassigned)

References

Details

(Keywords: assertion)

Attachments

(1 file)

When looking at a certain posting in Usenet (de.*, Message-ID: <
op.s067hwgp5o8bn8@dialin.t-online.de>), i got this assertion:
###!!! ASSERTION: nsTDependentString must wrap only null-terminated strings: 'mD
ata[mLength] == 0', file ../../../dist/include/string\nsTDependentString.h, line
 67

Stacktrace:
NTDLL! 7789193c()
nsDebugImpl::Assertion(nsDebugImpl * const 0x00268220, const char * 0x0262bc5c `string', const char * 0x0262bc98 `string', const char * 0x0262bd24 `string', int 67) line 266
NSGlue_Assertion(const char * 0x0262bd24 `string', int 67) line 111
nsDependentCString::AssertValid() line 67 + 43 bytes
nsDependentCString::nsDependentCString(const char * 0x06eba050, unsigned int 76) line 85
MimeInlineTextPlainFlowed_parse_line(char * 0x06eba050, int 76, MimeObject * 0x06be1e60) line 384
MimeInlineText_convert_and_parse_line(char * 0x06eba050, int 77, MimeObject * 0x06be1e60) line 432 + 20 bytes
MimeInlineText_rotate_convert_and_parse_line(char * 0x090988c8, int 77, MimeObject * 0x06be1e60) line 560 + 17 bytes
convert_and_send_buffer(char * 0x090988c8, int 77, int 1, int (char *, unsigned int, void *)* 0x025ff670 MimeInlineText_rotate_convert_and_parse_line(char *, int, MimeObject *), void * 0x06be1e60) line 185 + 15 bytes
mime_LineBuffer(const char * 0x072b34d0, int 77, char * * 0x06be1e88, int * 0x06be1e90, unsigned int * 0x06be1e98, int 1, int (char *, unsigned int, void *)* 0x025ff670 MimeInlineText_rotate_convert_and_parse_line(char *, int, MimeObject *), void * 0x06be1e60) line 273 + 29 bytes
MimeInlineText_parse_decoded_buffer(const char * 0x072b34d0, int 77, MimeObject * 0x06be1e60) line 348 + 45 bytes
MimeLeaf_parse_buffer(const char * 0x072b34d0, int 77, MimeObject * 0x06be1e60) line 175 + 20 bytes
MimeMessage_parse_line(char * 0x072b34d0, int 77, MimeObject * 0x07fea510) line 240 + 20 bytes
convert_and_send_buffer(char * 0x072b34d0, int 77, int 1, int (char *, unsigned int, void *)* 0x02608bb0 MimeMessage_parse_line(char *, int, MimeObject *), void * 0x07fea510) line 185 + 15 bytes
mime_LineBuffer(const char * 0x04fdbbef, int 428, char * * 0x07fea538, int * 0x07fea540, unsigned int * 0x07fea548, int 1, int (char *, unsigned int, void *)* 0x02608bb0 MimeMessage_parse_line(char *, int, MimeObject *), void * 0x07fea510) line 273 + 29 bytes
MimeObject_parse_buffer(const char * 0x04fdb870, int 1323, MimeObject * 0x07fea510) line 284 + 49 bytes
mime_display_stream_write(_nsMIMESession * 0x073532e8, const char * 0x04fdb870, int 1323) line 946 + 20 bytes
nsStreamConverter::OnDataAvailable(nsStreamConverter * const 0x06eeede0, nsIRequest * 0x081cca90, nsISupports * 0x00000000, nsIInputStream * 0x083dc228, unsigned int 0, unsigned int 1323) line 911 + 24 bytes
nsDocumentOpenInfo::OnDataAvailable(nsDocumentOpenInfo * const 0x0533ee98, nsIRequest * 0x081cca90, nsISupports * 0x00000000, nsIInputStream * 0x083dc228, unsigned int 0, unsigned int 1323) line 372 + 46 bytes
nsNntpCacheStreamListener::OnDataAvailable(nsNntpCacheStreamListener * const 0x0711f9b0, nsIRequest * 0x06f21e48, nsISupports * 0x00000000, nsIInputStream * 0x083dc228, unsigned int 0, unsigned int 1323) line 689 + 51 bytes
nsInputStreamPump::OnStateTransfer() line 437 + 70 bytes
nsInputStreamPump::OnInputStreamReady(nsInputStreamPump * const 0x06f21e4c, nsIAsyncInputStream * 0x083dc228) line 340 + 11 bytes
nsInputStreamReadyEvent::EventHandler(PLEvent * 0x0501b28c) line 120
PL_HandleEvent(PLEvent * 0x0501b28c) line 688 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x00f34f90) line 623 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x000501d6, unsigned int 49505, unsigned int 0, long 15945616) line 1408 + 9 bytes
USER32! 77e3158f()
USER32! 77e31dc9()
USER32! 77e31e7e()
nsAppStartup::Run(nsAppStartup * const 0x03aea850) line 208
main1(int 1, char * * 0x00262638, nsISupports * 0x03a718a0) line 1248 + 32 bytes
main(int 1, char * * 0x00262638) line 1737 + 37 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77e98989()

The problem seems to be related to the "delsp=yes" in this line:
Content-Type:
text/plain; format=flowed; delsp=yes; charset=iso-8859-15

If i remove the "delsp=yes" i get no assertion. I'll attach a testcase.
Attached file Testcase
I don't know what is causing the assertion, but the code has changed since this bug was filed--please check to see whether this still happens.
I cannot trigger this assertion anymore.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Depends on: 332632
Resolution: --- → FIXED
No specific bug / patch referenced as the fix.

-> WORKSFORME
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → WORKSFORME
You could check the Depends on: field next time :).
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: