Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 43a1b0bafb0c4d47208338c97756cfcb9304fa1f
https://github.com/WebKit/WebKit/commit/43a1b0bafb0c4d47208338c97756cfcb9304fa1f
Author: Brandon Stewart <[email protected]>
Date: 2026-03-17 (Tue, 17 Mar 2026)
Changed paths:
M Source/WebCore/Modules/compression/ZStream.cpp
M Source/WebCore/Modules/compression/ZStream.h
Log Message:
-----------
ZStream: deflateEnd() called after inflateInit2() via DecompressionStream →
invalid free (UB/crash)
https://bugs.webkit.org/show_bug.cgi?id=302216
rdar://164363410
Reviewed by Chris Dumez.
Ensure that we properly select inflateEnd vs deflateEnd when closing a stream.
No new test because I was not able to get this to crash locally, but it is the
correct fix.
* Source/WebCore/Modules/compression/ZStream.cpp:
(WebCore::ZStream::initializeIfNecessary):
(WebCore::ZStream::~ZStream):
* Source/WebCore/Modules/compression/ZStream.h:
Originally-landed-as: 301765.318@safari-7623-branch (f0c4a925385f).
rdar://172771351
Canonical link: https://commits.webkit.org/309446@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications