Page MenuHomeFreeBSD

Remove unneeded checks for prelen.
ClosedPublic

Authored by delphij on Mar 11 2020, 9:04 PM.
Tags
None
Referenced Files
F149685289: D24034.id69494.diff
Thu, Mar 26, 6:24 AM
F149681410: D24034.id69405.diff
Thu, Mar 26, 5:43 AM
Unknown Object (File)
Tue, Mar 24, 8:43 AM
Unknown Object (File)
Tue, Mar 17, 3:45 AM
Unknown Object (File)
Tue, Mar 17, 3:41 AM
Unknown Object (File)
Tue, Mar 10, 7:49 PM
Unknown Object (File)
Fri, Mar 6, 3:02 AM
Unknown Object (File)
Feb 14 2026, 8:36 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