MAPILogon causes crash if a profile name is supplied but password is set to NULL [@ nsMAPISession::nsMAPISession]

NEW
Unassigned

Status

MailNews Core
Simple MAPI
--
critical
8 years ago
2 years ago

People

(Reporter: jon, Unassigned)

Tracking

({crash})

Firefox Tracking Flags

(Not tracked)

Details

(crash signature)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Build Identifier: Thunderbird/3.0.4

Calling MAPILogon with the profile parameter set to non-NULL ie. a valid profile and the password set to NULL causes a program crash.

Reproducible: Always

Steps to Reproduce:
1. Call MAPILogon ( 0L, "jon", NULL, MAPI_LOGON_UI, 0L, &hSession ) ;
2.
3.
Actual Results:  
Program crash (access violation at 0)

Expected Results:  
Logon returns valid error code.

At a guess, suspect it's probably in msgMapiMain.cpp:

nsMAPISession::nsMAPISession(PRUint32 aHwnd, const PRUnichar *aUserName,
                             const PRUnichar *aPassword, 
                             PRBool aForceDownLoad, const char *aKey)
: m_bIsForcedDownLoad(aForceDownLoad),
  m_hAppHandle(aHwnd),
  m_nShared(1),
  m_pIdKey(aKey)
{
  m_listContext = NULL;
  m_pProfileName.Assign(aUserName);
  m_pPassword.Assign(aPassword);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Status: UNCONFIRMED → NEW
Component: General → Simple MAPI
Ever confirmed: true
Keywords: crash
Product: Thunderbird → MailNews Core
QA Contact: general → simple-mapi

Comment 1

8 years ago
(severity)
Severity: minor → critical

Updated

8 years ago
Summary: MAPILogon causes crash if a profile name is supplied but password is set to NULL → MAPILogon causes crash if a profile name is supplied but password is set to NULL [@ nsMAPISession::nsMAPISession]
(Assignee)

Updated

7 years ago
Crash Signature: [@ nsMAPISession::nsMAPISession]
You need to log in before you can comment on or make changes to this bug.