[Bug 144303] KMail/Kontact crashes when cancelling GnuPG signing a new message

Will Stephenson wstephenson at kde.org
Tue Aug 14 16:48:56 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=144303         
wstephenson kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From wstephenson kde org  2007-08-14 17:48 -------
SVN commit 700035 by wstephens:

When sending an encrypted message, with an empty body, and the
encryption key selection or encryption prefs selection dialogs were
cancelled, mNewBodyPart was deleted without ever having been
initialised.

Also init some other vars ASAP.  I've looked for cases of things being
used uninitialised and this should be safe.

BUG:144303



 M  +18 -1     messagecomposer.cpp  


--- branches/kdepim/enterprise/kdepim/kmail/messagecomposer.cpp #700034:700035
 @ -287,7 +287,24  @
 
 MessageComposer::MessageComposer( KMComposeWin* win, const char* name )
   : QObject( win, name ), mComposeWin( win ), mCurrentJob( 0 ),
-    mKeyResolver( 0 ), mIdentityUid( 0 ), mPerformingSignOperation( false )
+    mReferenceMessage( 0 ), mKeyResolver( 0 ), 
+    mUseOpportunisticEncryption( false ),
+    mSignBody( false ), mEncryptBody( false ),
+    mSigningRequested(  false ), mEncryptionRequested( false ),
+    mDoSign( false ), mDoEncrypt( false ),
+    mAllowedCryptoMessageFormats( 0 ),
+    mDisableCrypto( false ),
+    mDisableBreaking( false ),
+    mDebugComposerCrypto( false ),
+    mAutoCharset( true ),
+    mIsRichText( false ),
+    mIdentityUid( 0 ), mRc( true ),
+    mHoldJobs( false ),
+    mNewBodyPart( 0 ),
+    mEarlyAddAttachments( false ), mAllAttachmentsAreInBody( false ),
+    mPreviousBoundaryLevel( 0 ),
+    mEncryptWithChiasmus( false ),
+    mPerformingSignOperation( false )
 {
 }



More information about the Kdepim-bugs mailing list