Summary: | KMail/Kontact crashes when cancelling GnuPG signing a new message | ||
---|---|---|---|
Product: | [Applications] kmail | Reporter: | Elias Probst <mail> |
Component: | encryption | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | cow.2001, felix, kde, quazgar |
Priority: | NOR | ||
Version: | 1.9.6 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Elias Probst
2007-04-16 16:04:49 UTC
*** Bug 148706 has been marked as a duplicate of this bug. *** I can confirm this, with kmail 1.9.7, also on gentoo (gcc 4.1.2). Steps to reproduce: * Try to send an email with encryption, click on "Send email" * in the key approval dialog, click "Cancel" * click on "Send email" again * in the key approval dialog, click "Cancel" Actual result: Kmail crashes. Expected result: Kmail does not crash. This could also be reproduced by people in #kontact on irc.freenode.net 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 ) { } SVN commit 700038 by wstephens: Backport r700035 to 3.5 branch. (fix #144303 - Kmail/Kontact crashes when cancelling GnuPG singing a new (empty) message. CCBUG:144303 M +18 -1 messagecomposer.cpp --- branches/KDE/3.5/kdepim/kmail/messagecomposer.cpp #700037:700038 @@ -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 ) { } SVN commit 700042 by wstephens: Forward port r700035 - (#144303 KMail/Kontact crash on cancelling signing an new (empty) message ) CCBUG:144303 M +18 -1 messagecomposer.cpp --- trunk/KDE/kdepim/kmail/messagecomposer.cpp #700041:700042 @@ -314,7 +314,24 @@ MessageComposer::MessageComposer( KMComposeWin *win ) : QObject( win ), 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 ) { } Thank you for fixing this! *** Bug 149561 has been marked as a duplicate of this bug. *** |