[Bug 213460] New: KMail crash when reply-all hit on SOME emails. (null dereference)

Daniel Kulp dan at kulp.com
Fri Nov 6 18:59:59 GMT 2009


https://bugs.kde.org/show_bug.cgi?id=213460

           Summary: KMail crash when reply-all hit on SOME emails.  (null
                    dereference)
           Product: kmail
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: dan at kulp.com


Version:            (using KDE 4.3.3)
Compiler:          gcc version 4.3.4 
OS:                Linux
Installed from:    Gentoo Packages


In objecttreeparser.cpp at line 1314, the current code looks like:

      if ( !dataHtml && mReader->htmlMail() ) {

However, in SOME cases, when I hit reply-all, the mReader field is null.   If I
change the code to:
if ( !dataHtml && mReader && mReader->htmlMail() ) {

to make sure the null is not dereferenced, then everything seems to work fine
for me.  I'm NOT sure why mReader is null, but there ARE checks later in the
same method for mReader being null so I assume that it's allowed.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list