From 405abc4e95d876d1d077cef43dc2a3a00dfc351f Mon Sep 17 00:00:00 2001 From: John Reiser Date: Wed, 14 Oct 2009 17:47:02 -0700 Subject: [PATCH] ::packExtent updates ph.u_adler to satisfy verifyOverlappingDecompression() even when 0==hdr_u_len --- src/p_unix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_unix.cpp b/src/p_unix.cpp index 7a6b56db..b9d80a4f 100644 --- a/src/p_unix.cpp +++ b/src/p_unix.cpp @@ -412,6 +412,9 @@ void PackUnix::packExtent( fo->write(&tmp, sizeof(tmp)); b_len += sizeof(b_info); + if (ft) { + ph.u_adler = end_u_adler; + } // write compressed data if (ph.c_len < ph.u_len) { fo->write(obuf, ph.c_len); @@ -422,9 +425,6 @@ void PackUnix::packExtent( fo->write(ibuf, ph.u_len); } - if (ft) { - ph.u_adler = end_u_adler; - } total_in += ph.u_len; total_out += ph.c_len; }