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)
Nov 11 2024, 2:58 AM
Unknown Object (File)
Oct 18 2024, 9:47 AM
Unknown Object (File)
Oct 5 2024, 7:39 AM
Unknown Object (File)
Oct 3 2024, 11:00 PM
Unknown Object (File)
Oct 1 2024, 1:47 PM
Unknown Object (File)
Sep 27 2024, 6:57 AM
Unknown Object (File)
Sep 20 2024, 7:51 PM
Unknown Object (File)
Sep 17 2024, 4:50 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