Skip to content

[pull] develop from madler:develop #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 394 commits into
base: develop
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 15, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Aug 15, 2023
madler and others added 29 commits August 17, 2023 17:34
It looked innocuous enough and worked on macOS, but failed on
Ubuntu.
Also avoid the use of the -C option for non-GNU make.
Also replaced Itanium with ARM and ARM64 configurations.
They were added in the VS2022 commit, but failed when run.
This checks the lengths of the file name, extra field, and comment
that would be put in the zip headers, and rejects them if they are
too long. They are each limited to 65535 bytes in length by the zip
format. This also avoids possible buffer overflows if the provided
fields are too long.
This makes it consistent with the other vstudio projects, which
use the version number.
To avoid warnings when building with -Wmissing-prototypes.
A bug fix in zlib 1.2.12 resulted in a slight slowdown (1-2%) of
deflate. This commit provides the option to #define LIT_MEM, which
uses more memory to reverse most of that slowdown. The memory for
the pending buffer and symbol buffers is increased by 25%, which
increases the total memory usage with the default parameters by
about 6%.
The appnote says that if the number of entries in the end record
is 0xffff, then the actual number of entries will be found in the
Zip64 end record. Therefore if the number of entries is equal to
0xffff, it can't be in the end record by itself, since that is an
instruction to get the number from the Zip64 end record. This code
would just store 0xffff in the end record in that case, not making
a Zip64 end record. This commit fixes that.
fdopen() is not used by zlib anymore. The #defines are vestigial.
Since each element in s->d_buf is 2 bytes, the sx index should be
multiplied by 2 in the assert.

Fixes #897
If it is negative, then the code will enter an infinite loop.
Vollstrecker and others added 30 commits January 31, 2025 20:02
Both were removed as zconf.h.cmakein is no longer needed, and
zconf.h is made from zconf.h.in.
The reported issue was due to an error in their test code, not in
inflate. This use of memcpy() in inflate is correct.
Temporary patch for cmake, but too violent. A better solution will
need to be found.
This restores the inclusion of the local zconf.h (double quoted)
in normal usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.