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 22, 6:00 AM
Unknown Object (File)
Mon, Apr 21, 10:08 PM
Unknown Object (File)
Mon, Apr 21, 1:16 PM
Unknown Object (File)
Sun, Apr 20, 10:54 PM
Unknown Object (File)
Sun, Apr 20, 10:40 PM
Unknown Object (File)
Sun, Apr 20, 10:03 PM
Unknown Object (File)
Sun, Apr 6, 9:12 AM
Unknown Object (File)
Feb 8 2025, 1:28 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