dovecot-2.2: lib-compression: Fixed LZ4 maximum output buffer size

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 30 04:39:39 EET 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/d9d2d04bb320
changeset: 17119:d9d2d04bb320
user:      Teemu Huovila <teemu.huovila at dovecot.fi>
date:      Thu Jan 30 03:38:57 2014 +0100
description:
lib-compression: Fixed LZ4 maximum output buffer size

diffstat:

 src/lib-compression/ostream-lz4.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9376bf098692 -r d9d2d04bb320 src/lib-compression/ostream-lz4.c
--- a/src/lib-compression/ostream-lz4.c	Mon Jan 27 16:35:46 2014 +0200
+++ b/src/lib-compression/ostream-lz4.c	Thu Jan 30 03:38:57 2014 +0100
@@ -18,7 +18,7 @@
 	unsigned int compressbuf_offset;
 
 	/* chunk size, followed by compressed data */
-	unsigned char outbuf[IOSTREAM_LZ4_CHUNK_PREFIX_LEN + CHUNK_SIZE];
+	unsigned char outbuf[IOSTREAM_LZ4_CHUNK_PREFIX_LEN + LZ4_COMPRESSBOUND(CHUNK_SIZE)];
 	unsigned int outbuf_offset, outbuf_used;
 };
 


More information about the dovecot-cvs mailing list