Page MenuHomeFreeBSD

Remove unneeded checks for prelen.
ClosedPublic

Authored by delphij on Mar 11 2020, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 4:50 AM
Unknown Object (File)
Fri, Oct 3, 10:10 PM
Unknown Object (File)
Sep 4 2025, 5:56 PM
Unknown Object (File)
Aug 8 2025, 12:35 PM
Unknown Object (File)
Aug 2 2025, 4:36 AM
Unknown Object (File)
Aug 2 2025, 2:24 AM
Unknown Object (File)
Jul 22 2025, 12:38 PM
Unknown Object (File)
Jul 10 2025, 9:00 PM
Subscribers

Details

Summary

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.

Test Plan

test decompression of different compressed files with and
without pipe.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable