tags 411240 +patch
thanks
The attached patch changes the quota_read function from imap/quota_db.c
to check for a null data pointer (caused by zero length files) before
trying to work with it. Thanks to Ulrich P. Klein for the detailed BR.
--
David Härdeman
diff -ur ./kolab-cyrus-imapd-2.2.13.orig/imap/quota_db.c ./kolab-cyrus-imapd-2.2.13/imap/quota_db.c
--- ./kolab-cyrus-imapd-2.2.13.orig/imap/quota_db.c 2004-05-22 05:45:52.000000000 +0200
+++ ./kolab-cyrus-imapd-2.2.13/imap/quota_db.c 2007-02-20 23:21:38.000000000 +0100
@@ -89,6 +89,8 @@
switch (r) {
case CYRUSDB_OK:
+ if (!data)
+ return IMAP_IOERROR;
sscanf(data, "%lu %d", "a->used, "a->limit);
break;