[PATCH 02/21] lib/zlib: update deflate to zlib 1.1.4 release

From: Greg Kroah-Hartman

Date: Thu Dec 03 2026 - 02:30:07 EST


The only change in the deflate code in zlib 1.1.4 was to reject
windowBits == 8 in deflateInit2(). This change was already done in the
kernel before deflate.c was moved to the current place, so just update
the version numbers and drop some trailing whitespace to bring the code
up to date.

The kernel is now in sync with zlib commit a383133c4e7b ("zlib 1.1.4").

Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
include/linux/zlib.h | 2 +-
lib/zlib_deflate/deflate.c | 4 ++--
lib/zlib_deflate/deftree.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/zlib.h b/include/linux/zlib.h
index 78ede944c082..abd3320d7c48 100644
--- a/include/linux/zlib.h
+++ b/include/linux/zlib.h
@@ -32,7 +32,7 @@

#include <linux/zconf.h>

-/* zlib deflate based on ZLIB_VERSION "1.1.3" */
+/* zlib deflate based on ZLIB_VERSION "1.1.4" */
/* zlib inflate based on ZLIB_VERSION "1.2.3" */

/*
diff --git a/lib/zlib_deflate/deflate.c b/lib/zlib_deflate/deflate.c
index 8fb2a3e17c0e..1f5a40e8d437 100644
--- a/lib/zlib_deflate/deflate.c
+++ b/lib/zlib_deflate/deflate.c
@@ -1,7 +1,7 @@
/* +++ deflate.c */
/* deflate.c -- compress data using the deflation algorithm
- * Copyright (C) 1995-1996 Jean-loup Gailly.
- * For conditions of distribution and use, see copyright notice in zlib.h
+ * Copyright (C) 1995-2002 Jean-loup Gailly.
+ * For conditions of distribution and use, see copyright notice in zlib.h
*/

/*
diff --git a/lib/zlib_deflate/deftree.c b/lib/zlib_deflate/deftree.c
index a4a34da512fe..eee325ebc351 100644
--- a/lib/zlib_deflate/deftree.c
+++ b/lib/zlib_deflate/deftree.c
@@ -1,7 +1,7 @@
/* +++ trees.c */
/* trees.c -- output deflated data using Huffman coding
- * Copyright (C) 1995-1996 Jean-loup Gailly
- * For conditions of distribution and use, see copyright notice in zlib.h
+ * Copyright (C) 1995-2002 Jean-loup Gailly
+ * For conditions of distribution and use, see copyright notice in zlib.h
*/

/*

--
2.56.1