Blame SOURCES/zlib-1.2.11-IBM-Z-hw-accelrated-deflate-fix-crash-deflateBound.patch

c55b40
--- zlib-1.2.11/contrib/s390/dfltcc_deflate.h.old	2023-05-04 09:39:23.423753908 +0000
c55b40
+++ zlib-1.2.11/contrib/s390/dfltcc_deflate.h	2023-05-04 09:39:48.087753908 +0000
c55b40
@@ -45,11 +45,11 @@ int ZLIB_INTERNAL dfltcc_deflate_get_dic
c55b40
 #define DEFLATE_DONE dfltcc_deflate_done
c55b40
 #define DEFLATE_BOUND_ADJUST_COMPLEN(strm, complen, source_len) \
c55b40
     do { \
c55b40
-        if (dfltcc_can_deflate((strm))) \
c55b40
+	if (deflateStateCheck((strm)) || dfltcc_can_deflate((strm))) \
c55b40
             (complen) = DEFLATE_BOUND_COMPLEN(source_len); \
c55b40
     } while (0)
c55b40
 #define DEFLATE_NEED_CONSERVATIVE_BOUND(strm) (dfltcc_can_deflate((strm)))
c55b40
 #define DEFLATE_HOOK dfltcc_deflate
c55b40
 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))
c55b40
 
c55b40
-#endif
c55b40
\ No newline at end of file
c55b40
+#endif