From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796283058; b=Si+lCd5m8soFmLZjG/YcAS5StUBwXltA0lcoUqyWH2QBT3LxXTCECWeNrKo4DDQmBg0k qmVPEMkkB8Rqb+gAANy6kwzS6aF1NeUipEr4HpL3AtqhC7bVwZgdXY1fAVt707GnLBABK 7vjN8DSKG0JeRppLvtH7KyA/r79WaqoNXzCOpych2MMsSLElolUQcMQ65cYJUucblqHsc +7FfE3uyMMa9gAyGz18T5POcEH9lukP2i5hMLS9TD+DTfuAaURAvRxp58deGzn7FkGpnO +Yi5y+TVztXSMnHX7jeEz1bu4hbaV99OHWSbOZC0N6POm+htSaOB8+yJaeU7WISEaow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796283058; h=Received:DKIM-Signature:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To: X-Mailer:X-Developer-Signature:X-Developer-Key; bh=bORVukbXmNN31oG+nvo9W/7P97T70SH/91A27/IRt+k=; b=QOUin+4wV9W3WPxHbUX+E9zzgnfBxqu1wmv+clbB1ezTZAEXo2Yw2+EbZMR9KSHgJKtN 9gJrfSlU7kk7kZakPkg6iuqVPAw8A4YnkFBFgL8WVVFJ7DrhMRE3k16T0UTqA/Ept9/b7 NSRu/q3CRxaFwFoztnMGPSmpYXMrBSIDCoyK/vwgwExqRtfEKhKg1ls8Ohi+tWdR41gEU EewdIxoHVEXAhlDZYYQCBlUbstLxl+BU/ShxlTYSfCYq7RhGmw95oJU+mVHOmL0E5ybV1 O06xKIttWJMzqZJju7HZbjWBSQwUKzAGlM6b2254hCR5xJfBChv/dSbj1hpxopt6txQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Q4+ByPyD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0BCC606A696 for ; Thu, 3 Dec 2026 07:30:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Q4+ByPyD Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3A9D1F0089F; Thu, 3 Dec 2026 07:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796283057; bh=bORVukbXmNN31oG+nvo9W/7P97T70SH/91A27/IRt+k=; h=From:Date:Subject:References:In-Reply-To:To; b=Q4+ByPyDcmc3d2o+as+a3ai78lbblj4PXA+9mi3+fEdk6yuJXaetQCvS1Tb1ImAj+ W11+dvdle7+YhKFK0+iZ3nL1LtIkn/CajnylwojC5hArl/ESetQszvHQK7sTVzPc4c hcFGKuw1vBM69eWBEaCCr8YVHmzsa7TXy1HYLk/w= From: Greg Kroah-Hartman Date: Thu, 03 Dec 2026 08:29:50 +0100 Subject: [PATCH 10/21] lib/zlib: update deflate to zlib 1.2.0.7 release X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261203-zlib-sync-v1-10-0d4ec56f1afb@linuxfoundation.org> References: <20261203-zlib-sync-v1-0-0d4ec56f1afb@linuxfoundation.org> In-Reply-To: <20261203-zlib-sync-v1-0-0d4ec56f1afb@linuxfoundation.org> To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman X-Mailer: b4 0.17-dev-73bef X-Developer-Signature: v=1; a=openpgp-sha256; l=1756; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RTN8gdxpUXtm5JzATPWVYMgykKYefw/irtiSiqBSc3c=; b=owGbwMvMwCRo6H6F97bub03G02pJDNmCUllZZ9msj52pzrAsPHiOfc6N9axbxM/5MTn+71ROD Nhedb21I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZid5Nhnqneoee7TssnzPVt tlvh06qvVn3oGMOCxaEPF21gUI/fYPFvds88nXXRZWEvAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Sync the kernel deflate code with the zlib 1.2.0.7 release. Only one change was "needed", other than the version string update: - Cast s->pending to uInt in the compress_block() overlay assertion so the signed/unsigned comparison is well defined when assertions are compiled in. In reality, this isn't needed for us as we compile all Assert() calls out in the kernel, so there's no change at all. There was one 1.2.0.7 change that wasn't relevant to the kernel copy: - vsnprintf detection. The kernel is now in sync with zlib commit b97ec631c6f7 ("zlib 1.2.0.7"). Signed-off-by: Greg Kroah-Hartman --- include/linux/zlib.h | 2 +- lib/zlib_deflate/deftree.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/zlib.h b/include/linux/zlib.h index 36c4c103e241..fbc88c5e3721 100644 --- a/include/linux/zlib.h +++ b/include/linux/zlib.h @@ -32,7 +32,7 @@ #include -/* zlib deflate based on ZLIB_VERSION "1.2.0.6" */ +/* zlib deflate based on ZLIB_VERSION "1.2.0.7" */ /* zlib inflate based on ZLIB_VERSION "1.2.3" */ /* diff --git a/lib/zlib_deflate/deftree.c b/lib/zlib_deflate/deftree.c index a5bcfbfe9013..2eaf8264cc33 100644 --- a/lib/zlib_deflate/deftree.c +++ b/lib/zlib_deflate/deftree.c @@ -1002,7 +1002,8 @@ static void compress_block( } /* literal or match pair ? */ /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */ - Assert(s->pending < s->lit_bufsize + 2*lx, "pendingBuf overflow"); + Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx, + "pendingBuf overflow"); } while (lx < s->last_lit); -- 2.56.1