svn commit: r358988 - head/usr.bin/gzip

Conrad Meyer cem at freebsd.org
Sat Mar 14 17:40:22 UTC 2020


For additional context, this quiesces (false positive) Coverity CID 1383554.

On Fri, Mar 13, 2020 at 10:57 PM Xin LI <delphij at freebsd.org> wrote:
>
> Author: delphij
> Date: Sat Mar 14 05:57:22 2020
> New Revision: 358988
> URL: https://svnweb.freebsd.org/changeset/base/358988
>
> Log:
>   Remove unneeded checks for prelen.
>
>   In order to determine the type of a compressed file, we have to read
>   in the first four bytes which may also be important for decompression
>   purposes, to do that we would pass the buffer that we have already
>   read in, along with the size of it.
>
>   Rename header1 to fourbytes to make that explicit, and remove all
>   checks for prelen.


More information about the svn-src-all mailing list