summaryrefslogtreecommitdiffstats
path: root/thirdparty/zlib/compress.c
diff options
context:
space:
mode:
authorDeeJayLSP <djlsplays@gmail.com>2022-11-30 11:16:31 -0300
committerRémi Verschelde <rverschelde@gmail.com>2023-01-07 13:03:06 +0100
commit93409b8e64a9bc3c271ab4a7489b59a43bc0d048 (patch)
treebdc406e5e4861818ec5b4b9a36c4fa1b9850b3f6 /thirdparty/zlib/compress.c
parent163f6f5fe87d11645e94cd49f41226ab03063e53 (diff)
downloadredot-engine-93409b8e64a9bc3c271ab4a7489b59a43bc0d048.tar.gz
zlib/minizip: Update to version 1.2.13, remove zlib from freetype
Security update, fixes CVE-2022-37434 in zlib. Only applications exposing/using `inflateGetHeader()` seem to be affected, which is not our case, so this is not critical for Godot. Remove duplicated copy of zlib in freetype sources to force using the updated version in `thirdparty/zlib/`. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Diffstat (limited to 'thirdparty/zlib/compress.c')
-rw-r--r--thirdparty/zlib/compress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thirdparty/zlib/compress.c b/thirdparty/zlib/compress.c
index e2db404abf..2ad5326c14 100644
--- a/thirdparty/zlib/compress.c
+++ b/thirdparty/zlib/compress.c
@@ -19,7 +19,7 @@
memory, Z_BUF_ERROR if there was not enough room in the output buffer,
Z_STREAM_ERROR if the level parameter is invalid.
*/
-int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
+int ZEXPORT compress2(dest, destLen, source, sourceLen, level)
Bytef *dest;
uLongf *destLen;
const Bytef *source;
@@ -65,7 +65,7 @@ int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
/* ===========================================================================
*/
-int ZEXPORT compress (dest, destLen, source, sourceLen)
+int ZEXPORT compress(dest, destLen, source, sourceLen)
Bytef *dest;
uLongf *destLen;
const Bytef *source;
@@ -78,7 +78,7 @@ int ZEXPORT compress (dest, destLen, source, sourceLen)
If the default memLevel or windowBits for deflateInit() is changed, then
this function needs to be updated.
*/
-uLong ZEXPORT compressBound (sourceLen)
+uLong ZEXPORT compressBound(sourceLen)
uLong sourceLen;
{
return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +