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

List:       dovecot-cvs
Subject:    dovecot-2.2: lib-compression: Fixed LZ4 maximum output buffer size
From:       dovecot () dovecot ! org (dovecot at dovecot ! org)
Date:       2014-01-30 2:39:39
Message-ID: hg.d9d2d04bb320.1391049579.6920021320469856403 () localhost ! localdomain
[Download RAW message or body]

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;
 };
 

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

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