summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/zlib/src/deflate.h
diff options
context:
space:
mode:
authorDennis Oberst <dennis.oberst@qt.io>2022-11-14 15:59:24 +0100
committerDennis Oberst <dennis.oberst@qt.io>2022-11-18 13:14:23 +0100
commitf678893f8acd00bd0caca5101858e2a9fdf96a5c (patch)
tree4fe280001ccac7010960b582bb0b27aeaad93b46 /src/3rdparty/zlib/src/deflate.h
parent3b423f0e9e7508e47499b10f2519aede97db436d (diff)
Update bundled zlib to version 1.2.13
zlib 1.2.13 has been available since October 13, 2022. Also fixes CVE-2022-37434. [ChangeLog][Third-Party Code] zlib was updated to version 1.2.13. Fixes: QTBUG-108130 Pick-to: 6.4 6.2 5.15 Change-Id: Iaa2a9486f1cbbcd6a23d48df632e01bc05b414d5 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/3rdparty/zlib/src/deflate.h')
-rw-r--r--src/3rdparty/zlib/src/deflate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/zlib/src/deflate.h b/src/3rdparty/zlib/src/deflate.h
index 17c226113b..1a06cd5f25 100644
--- a/src/3rdparty/zlib/src/deflate.h
+++ b/src/3rdparty/zlib/src/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++; \