[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    [Bug 70406] kmail crash on startup in KMFolderMgr::readMsgDict
From:       Till Adam <adam () kde ! org>
Date:       2004-12-28 17:19:02
Message-ID: 20041228171902.23418.qmail () ktown ! kde ! org
[Download RAW message or body]

------- 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=70406        
adam kde org changed:

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



------- Additional Comments From adam kde org  2004-12-28 18:19 -------
CVS commit by tilladam: 

Be somewhat safer when reading the message serial number dict for a folder
from disk. The format is still not completely safe, but since we haven't
had any more reports of this problem it seems to have been intermittent
and there is not much more we can do. Folders can be very large, so any
kind of a maximum size would have to be so large as to be useless. If 
anyone has a patch to improve this further, send it my way.

BUG: 70406


  M +4 -3      kmfoldermgr.cpp   1.105


--- kdepim/kmail/kmfoldermgr.cpp  #1.104:1.105
 @ -510,5 +510,6  @ void KMFolderMgr::readMsgDict(KMMsgDict 
              {
                if (pass == 1) {
-                 dict->readFolderIds(folder);
+                 if ( !dict->readFolderIds(folder) )
+                   invalidateFolder(dict, folder);
                } else if (pass == 2) {
                  if (!dict->hasFolderIds(folder)) {
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic