summaryrefslogtreecommitdiff
path: root/sys/lib/libz
AgeCommit message (Collapse)Author
2024-11-09libz: sync with baseTheo Buehler
2024-09-05sync with baseTheo Buehler
2024-08-05sync with baseTheo Buehler
2024-08-01Remove a comment that was committed by accidentTheo Buehler
2024-08-01sync with srcTheo Buehler
2024-07-09sync with userland: let z_off_t fall back to long long instead of longTheo Buehler
In the boot blocks, this would result in various 64-bit instruction being used, which might result in undesirable bloat in legacy boot loaders, so add a workaround for the _STANDALONE case to still fall back to long instead of long long. with/ok deraadt, ok millert
2024-06-30we don't need the NOBYFOUR space-savings option anymore, that codepathTheo de Raadt
was replaced a while ago. ok tb
2024-06-30sync with baseTheo Buehler
2024-03-27zlib: sync with baseTheo Buehler
2024-03-15zlib: sync with srcTheo Buehler
2024-02-13zlib: sync with baseTheo Buehler
2024-02-11sync with srcTheo Buehler
2024-02-10libz: sync with baseTheo Buehler
2024-02-07sync with base (comment-only change)Theo Buehler
2024-01-28sync with userlandTheo Buehler
2024-01-23Sync with userlandTheo Buehler
2024-01-21sync with userlandTheo Buehler
2024-01-21sync with userlandTheo Buehler
2023-11-18sync zlib with userlandTheo Buehler
2023-08-20Sync zlib 1.3 with userlandTheo Buehler
2023-08-18sync with userlandTheo Buehler
2023-08-13sync with userlandTheo Buehler
2023-08-04Sync with userland libzTheo Buehler
2023-07-30sync with userland's zlib.hTheo Buehler
2023-05-02sync with userlandTheo Buehler
2023-04-25zlib: sync with srcTheo Buehler
2022-10-23Drop RCS ids in upstream zlib sourceTheo Buehler
We're not maintaining a this as a fork, it's upstream source with a handful of patches. Thus, the RCS ids aren't particularly useful or important. They are a bit of a maintenance burden and generate noise in diffs. ok kn, no objection millert, "kill" guess who
2022-10-20Sync sys libz with baseTheo Buehler
2022-08-15Fix a doc comment to match upstreamTheo Buehler
2022-08-15Adjust whitespace (tabs vs spaces) on one line to reduce diff with upstreamTheo Buehler
2022-08-11Revert uLong -> z_off_t change in the kernelTheo Buehler
The kernel source assumes the original zlib ABI. There is no reason to stick to this local change. Pull in a fix matching ctfdump.c -r1.26. This is hopefully the last change necessary to undo a painful hack that was committed 19 years ago without ok. Someone owes me a lot of beer... ok millert
2022-08-09Sync inflateGetHeader() fix from userlandTheo Buehler
2022-05-08Backport an upstream fix for CRC calculation. This fixes Java applicationsTheo Buehler
on some older hardware, see https://github.com/madler/zlib/issues/613 Pointed out by tj and sthen commit ec3df00224d4b396e2ac6586ab5d25f673caa4c2 Author: Mark Adler <madler@alumni.caltech.edu> Date: Wed Mar 30 11:14:53 2022 -0700 Correct incorrect inputs provided to the CRC functions. The previous releases of zlib were not sensitive to incorrect CRC inputs with bits set above the low 32. This commit restores that behavior, so that applications with such bugs will continue to operate as before.
2022-05-08Update to zlib 1.2.12Theo Buehler
Build tests by myself for amd64 and arm64, sthen and inoguchi for i386 and gkoehler for macppc and powerpc64, thanks! Detailed changelog is part of the committed diff.
2022-03-25Sync with userland libz (memory-corruption + followup).Theo Buehler
ok mbuhl millert
2022-03-25Sync zlib with userlandTheo Buehler
Backport zlib fix for the multi line CLEAR_HASH macro. There is an else branch where only half of the macro is executed conditionally. Acording to upstream comment this has only little impact. https://github.com/madler/zlib/commit/38e8ce32afbaa82f67d992b9f3056f281fe69259 ok bluhm (who had the same diff)
2021-07-28Fix previous: In one spot I incorrectly used Pos (unsigned short) whereTheo Buehler
I should have used Byte (unsigned char) which led to passing twice the correct size to free. Found & tested by bluhm with the sys/netinet/ipsec tests on i386.
2021-07-22Add sizes for free() in zlibTheo Buehler
Rebased version of a diff from miod who described it as follows: This tries to keep diffability against upstream, hence a questionable choice of the size type for zcfree() - but all sizes should fit in 32 bits anyway. Since all zcfree routines used in the tree cope with NULL arguments (including the various alloc.c used by the boot blocks), I have simplified TRY_FREE to compensate for the growth. Reminded by and ok mpi
2021-07-08In recent libz update, tb@ overzealously attempted codesize reduction withTheo de Raadt
option BUILDFIXED -- which is incompatible with kernel hibernate unpack since it places side-effects into BSS, rather than inside z_streamp or using the private allocator. While here DYNAMIC_CRC_TABLE could cause similar problems, so disable this also. Space savings for the media is best done with bootblock-specific libz compile options, coming in the following commit. ok tb mlarkin
2021-07-04tb notices i did not add a copyright in 2011Theo de Raadt
2021-07-04Add missing RCS tagsTheo Buehler
2021-07-04Update libz to zlib 1.2.11 and reapply local patches as far as thisTheo Buehler
made sense. Tested in snaps for a few days. deraadt helped with fitting things on floppies and jmatthew found a bug I introduced. ok deraadt
2021-05-16ansiJonathan Gray
2019-06-01Fix warnings when building zlib with ZLIB_CONST definedJeremie Courreges-Anglas
Probably not very useful (given the lack of feedback) but feels more correct. Kernel part tested with option ZLIB_CONST.
2019-05-12Add ZLIB_CONSTJeremie Courreges-Anglas
Introduced in zlib-1.2.5.2, used by a few ports. ok deraadt@
2016-03-23remove vax handlingnatano
ok millert
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-01-20Revert some $OpenBSD$ additions about which there are doubts.Kenneth R Westerback
Suggested by deraadt@
2015-01-20Missing $OpenBSD$'s.Kenneth R Westerback
ok deraadt@