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, Apr 2, 6:59 AM
Unknown Object (File)
Sep 19 2023, 12:30 PM
Unknown Object (File)
Jul 10 2023, 12:07 AM
Unknown Object (File)
Jun 26 2023, 11:21 PM
Unknown Object (File)
Jun 19 2023, 8:28 PM
Unknown Object (File)
Jun 16 2023, 3:28 AM
Unknown Object (File)
May 16 2023, 9:24 PM
Unknown Object (File)
Jan 17 2023, 2:15 AM
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