2007-01-05 [paul] 2.6.1cvs110
authorColin Leroy <colin@colino.net>
Fri, 5 Jan 2007 13:16:32 +0000 (13:16 +0000)
committerColin Leroy <colin@colino.net>
Fri, 5 Jan 2007 13:16:32 +0000 (13:16 +0000)
* src/imap.c
Fix bug 934, 'sylpheed claws 2.1
doesn't show Exchanges Public Folders'
Thanks to Hoa and Colin
* src/msgcache.c
Refuse to allocate more than 2 MB for a
single field, it's a good indication of
cache corruption.

ChangeLog
PATCHSETS
configure.ac
src/imap.c
src/msgcache.c

index 7d8740e769a17ad83a8bd97b452b79484e1985c6..07ebe54fbef7bcba567344198cfc64d73e159cd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-01-05 [paul]      2.6.1cvs110
+
+       * src/imap.c
+               Fix bug 934, 'sylpheed claws 2.1 
+               doesn't show Exchanges Public Folders'
+               Thanks to Hoa and Colin
+       * src/msgcache.c
+               Refuse to allocate more than 2 MB for a 
+               single field, it's a good indication of
+               cache corruption.
+
 2007-01-05 [colin]     2.6.1cvs109
 
        * src/mainwindow.c
index 717f5c212348803b885e163bb7baf0f698bcaa91..9d6a76efecb714dbd240d0dbbb8110886cb829a8 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.3.2.10 -r 1.3.2.11 src/common/quoted-printable.c;  ) > 2.6.1cvs107.patchset
 ( cvs diff -u -r 1.3.2.11 -r 1.3.2.12 src/common/quoted-printable.c;  ) > 2.6.1cvs108.patchset
 ( cvs diff -u -r 1.274.2.159 -r 1.274.2.160 src/mainwindow.c;  ) > 2.6.1cvs109.patchset
+( cvs diff -u -r 1.179.2.145 -r 1.179.2.146 src/imap.c;  cvs diff -u -r 1.16.2.48 -r 1.16.2.49 src/msgcache.c;  ) > 2.6.1cvs110.patchset
index 1ba3d0b820edf78f5ecdad9e3893c5032ec51ccc..a179d4e9a2c0e7d33249d50b8cb7809a385dd2c8 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=6
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=109
+EXTRA_VERSION=110
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 509250aeafd26755260cfd8fd03e15e32f9b4861..e160aea53f088f8aae07800500584fddd0254b98 100644 (file)
@@ -4105,9 +4105,7 @@ static GSList * imap_list_from_lep(IMAPFolder * folder,
                }
 
                if (!all && dup_name[strlen(dup_name)-1] == '/') {
-                       g_free(base);
-                       free(dup_name);
-                       continue;
+                       dup_name[strlen(dup_name)-1] = '\0';
                }
                
                loc_name = imap_modified_utf7_to_utf8(base);
index 5186770545c133a035a9cfc2e9ca4c69ff36b46b..24556d03d561e012cd23f367f0d27bb72d3a1f07 100644 (file)
@@ -504,6 +504,11 @@ static gint msgcache_get_cache_data_str(gchar *src, gchar **str, gint len,
        if (len == 0)
                return 0;
 
+       if(len > 2*1024*1024) {
+               g_warning("read_data_str: refusing to allocate %d bytes.\n", len);
+               return -1;
+       }
+
        tmpstr = g_try_malloc(len + 1);
 
        if(tmpstr == NULL) {