Bug 1203977 - Thunderbird crashes in nsImapMailFolder::ParseMsgHdrs. r=rkent, a=mkmelin
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Fri, 01 Jan 2016 23:06:31 +0200
changeset 26616 1c78970960b21148c148a05637066f788b3e5ec3
parent 26615 7b974b565a71995d379c5df79ca57ead4359c70f
child 26617 90416ee7dce21db37f2d403faa8b115a11b74ac5
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrkent, mkmelin
bugs1203977
Bug 1203977 - Thunderbird crashes in nsImapMailFolder::ParseMsgHdrs. r=rkent, a=mkmelin
mailnews/imap/src/nsImapMailFolder.cpp
--- a/mailnews/imap/src/nsImapMailFolder.cpp
+++ b/mailnews/imap/src/nsImapMailFolder.cpp
@@ -2911,16 +2911,17 @@ NS_IMETHODIMP nsImapMailFolder::UpdateIm
   if (summaryChanged)
     SummaryChanged();
 
   return NS_OK;
 }
 
 NS_IMETHODIMP nsImapMailFolder::ParseMsgHdrs(nsIImapProtocol *aProtocol, nsIImapHeaderXferInfo *aHdrXferInfo)
 {
+  NS_ENSURE_ARG_POINTER(aHdrXferInfo);
   int32_t numHdrs;
   nsCOMPtr <nsIImapHeaderInfo> headerInfo;
   nsCOMPtr <nsIImapUrl> aImapUrl;
   nsImapAction imapAction = nsIImapUrl::nsImapTest; // unused value.
   if (!mDatabase)
     GetDatabase();
 
   nsresult rv = aHdrXferInfo->GetNumHeaders(&numHdrs);