Closed Bug 43079 Opened 26 years ago Closed 26 years ago

nsImapSearchResultSequence::Clear() crashes when the imap connection was cancled

Categories

(MailNews Core :: Networking: IMAP, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: pavlov, Assigned: pavlov)

Details

(Keywords: crash, Whiteboard: [dogfood-][nsbeta2+])

nsImapSearchResultSequence::Clear() crashes when the imap connection was cancled. mImpl is null. patch (without whitespace changes): Index: nsImapSearchResults.cpp =================================================================== RCS file: /cvsroot/mozilla/mailnews/imap/src/nsImapSearchResults.cpp,v retrieving revision 1.5 diff -u -b -w -r1.5 nsImapSearchResults.cpp --- nsImapSearchResults.cpp 2000/06/13 08:33:19 1.5 +++ nsImapSearchResults.cpp 2000/06/19 21:06:42 @@ -44,12 +44,14 @@ void nsImapSearchResultSequence::Clear(void) { + if (mImpl) { PRInt32 i = mImpl->mCount; while (0 <= --i) { char* string = (char*)mImpl->mArray[i]; delete string; } nsVoidArray::Clear(); + } } nsImapSearchResultSequence::~nsImapSearchResultSequence()
this happens when you don't login to the default server and you try and change to a different server.
Keywords: crash, dogfood, patch
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Putting on [dogfood-][nsbeta2+] radar.
Whiteboard: [dogfood-][nsbeta2+]
checked in fix
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
We can test this in the UI by: 1. 2 IMAP accounts 2. When prompted to log into the first account, cancel the password dialog 3. Select the second IMAP account and login Right?
QA Contact: lchiang → huang
yes, that should do it.
By using Linux 07-26-08-M17 Commercial build Verified that there are no crashes for the second IMAP connection when canceling the first IMAP connection. Marking as verified!!
Status: RESOLVED → VERIFIED
Adding keyword to bugs which already show a nsbeta2 triage value in the status whiteboard so the queries don't get screwed up.
Keywords: nsbeta2
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.