diff options
author | DeeJayLSP <djlsplays@gmail.com> | 2022-11-30 11:16:31 -0300 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-07 13:03:06 +0100 |
commit | 93409b8e64a9bc3c271ab4a7489b59a43bc0d048 (patch) | |
tree | bdc406e5e4861818ec5b4b9a36c4fa1b9850b3f6 /thirdparty/zlib/deflate.h | |
parent | 163f6f5fe87d11645e94cd49f41226ab03063e53 (diff) | |
download | redot-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/deflate.h')
-rw-r--r-- | thirdparty/zlib/deflate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/zlib/deflate.h b/thirdparty/zlib/deflate.h index 17c226113b..1a06cd5f25 100644 --- a/thirdparty/zlib/deflate.h +++ b/thirdparty/zlib/deflate.h @@ -329,8 +329,8 @@ void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf, # define _tr_tally_dist(s, distance, length, flush) \ { uch len = (uch)(length); \ ush dist = (ush)(distance); \ - s->sym_buf[s->sym_next++] = dist; \ - s->sym_buf[s->sym_next++] = dist >> 8; \ + s->sym_buf[s->sym_next++] = (uch)dist; \ + s->sym_buf[s->sym_next++] = (uch)(dist >> 8); \ s->sym_buf[s->sym_next++] = len; \ dist--; \ s->dyn_ltree[_length_code[len]+LITERALS+1].Freq++; \ |