Closed Bug 812332 Opened 12 years ago Closed 4 years ago

DetachAttachmentsWOPrompts crashes with empty string

Categories

(MailNews Core :: Attachments, defect)

x86_64
All
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rkent, Unassigned)

Details

(Keywords: crash)

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++
/me not finding anything related on crash-stats
Severity: normal → critical
Keywords: crash

perhaps bp-79f91a96-644a-414c-8624-4e5e70190528 is an example?
xul.dll | nsMessenger::DetachAttachments

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.