DetachAttachmentsWOPrompts crashes with empty string

NEW
Unassigned

Status

MailNews Core
Attachments
--
critical
5 years ago
4 years ago

People

(Reporter: rkent, Unassigned)

Tracking

({crash})

Trunk
x86_64
All
crash

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
While debugging at attachment that calls DetachAttachmentsWOPrompts, TB crashes if this is called with non-zero count, but an empty aDisplayNameArray

Call stack in crash (from VS 2008):

 	msvcr90d.dll!strlen(unsigned char * buf=0x0026a098)  Line 81	Asm
 	xul.dll!nsCharTraits<char>::length(const char * s=0x00000000)  Line 590 + 0x9 bytes	C++
 	xul.dll!nsDependentCString::nsDependentCString(const char * data=0x00000000)  Line 57 + 0x12 bytes	C++
 	xul.dll!ConvertAndSanitizeFileName(const char * displayName=0x00000000, nsString & aResult={...})  Line 127 + 0x12 bytes	C++
>	xul.dll!nsMessenger::DetachAttachmentsWOPrompts(nsIFile * aDestFolder=0x09d9ee80, unsigned int aCount=0x00000001, const char * * aContentTypeArray=0x099aa0bc, const char * * aUrlArray=0x099aa0c0, const char * * aDisplayNameArray=0x099aa0c4, const char * * aMessageUriArray=0x099aa0dc, nsIUrlListener * aListener=0x0703b760)  Line 614 + 0x12 bytes	C++

Comment 1

5 years ago
/me not finding anything related on crash-stats

Updated

4 years ago
Severity: normal → critical
Keywords: crash
You need to log in before you can comment on or make changes to this bug.