[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.31, 1.32

cras at dovecot.org cras at dovecot.org
Tue Dec 7 02:56:07 EET 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv15068

Modified Files:
	mail-cache-compress.c 
Log Message:
mail_cache_merge_bitmask() was broken, cache compression could have crashed
or produced broken results.



Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- mail-cache-compress.c	7 Dec 2004 00:43:51 -0000	1.31
+++ mail-cache-compress.c	7 Dec 2004 00:56:05 -0000	1.32
@@ -47,7 +47,7 @@
 				dest[i] |= ((const unsigned char*)data)[i];
 			break;
 		}
-		pos += (data_size + 3) & ~3;
+		pos += (buf_data_size + 3) & ~3;
 		i_assert(pos <= buf_size);
 	}
 }



More information about the dovecot-cvs mailing list