Wireshark-bugs: [Wireshark-bugs] [Bug 5802] Rewrite&cleanup wiretap/file_wrappers

Date: Fri, 8 Apr 2011 00:44:56 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5802

--- Comment #27 from Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx> 2011-04-08 00:44:52 PDT ---
(In reply to comment #26)
>     2) it gets an uncompression error.

Sorry, I forgot to reinit strm->adler in file_seek().

if (here->compression == GZIP_AFTER_HEADER) {
    z_stream *strm = &file->strm;
    inflateReset(strm);
+    strm->adler = crc32(0L,Z_NULL,0);
    file->compression = ZLIB;
}

>     1) it appears to read the file twice - the progress dialog runs to the end
> of the file, and then rereads it;

First thought was about file.c:calc_progbar_val(), when it switch from
uncompressed-position to real-file-position, but it should work the same with
this patch and without...

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.