Skip to content

Conversation

@cjee21
Copy link

@cjee21 cjee21 commented Dec 15, 2025

zlib upstream develop branch has been updated to v1.3.1.2. This PR rebases MediaArea's patches on it to be more in-sync with upstream.

All patches are just copied as is during rebase except the following:

  • CI fixes patches are removed as they have been fixed upstream with slightly different method
  • MSVC2026 patch is edited as the updated readme conflicts with an upsteam readme update. The updated patch is identical to that submitted to upstream (Visual Studio 2026 projects madler/zlib#1109).

A compiler warning was re-introduced upstream and has been reported madler#1132

madler and others added 30 commits February 21, 2025 13:53
This also simplifies seek processing in general.
Also elaborate on the inflatePrime() error return in zlib.h, and
assure that data_type is correct after initialization and a
Z_NEED_DICT return.
If the input is not a gzip stream with this option, an error will
be returned.
This proceeds to try to decode whatever follows the last gzip
member, and concludes that it is acceptable trailing garbage only
if it results in a data error without decompressing any data. This
commit also reduces the probability of a false-positive gzip header
detection.
Before this, a gzflush() with Z_FINISH and no data to write would
do nothing. Now it will write an empty gzip member.
Also clean out the point list contents when freed, even though the
structure itself is freed, in case someone tries to free it again.
The error is recorded, and will be detected by the application
after all of the uncompressed data has been consumed and then one
more call is made to read data. The error is available immediately
from gzerror() if the application would like to know earlier.
Interim version for an audit.
Since Visual Studio 2010, default changed from IA32 to SSE2.
We keep same behavior everywhere (IA32 for all versions of Visual Studio)
Since Visual Studio 2010, default changed from IA32 to SSE2.
We keep same behavior everywhere (IA32 for all versions of Visual Studio)
@cjee21
Copy link
Author

cjee21 commented Dec 15, 2025

Maybe hold this PR until the compiler warning is resolved and v1.3.2 (madler#1128) is released.

@JeromeMartinez
Copy link
Member

Maybe hold this PR until the compiler warning is resolved and v1.3.2 (madler#1128) is released.

Fine, but also because "This branch has conflicts that must be resolved" ;-).

@cjee21
Copy link
Author

cjee21 commented Dec 15, 2025

but also because "This branch has conflicts that must be resolved" ;-)

That's because the current develop branch is not reset to the current upstream one which this PR is based on 😉

@JeromeMartinez
Copy link
Member

That's because the current develop branch is not reset to the current upstream one which this PR is based on 😉

OK, I'll reset when you say OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants