summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libwebp/src/enc/syntax_enc.c
diff options
context:
space:
mode:
authorTarja Sundqvist <tarja.sundqvist@qt.io>2022-09-12 18:29:49 +0300
committerTarja Sundqvist <tarja.sundqvist@qt.io>2022-09-12 18:29:49 +0300
commit7824fe51318b8a87caa9ef3ed4db99914e22e6e4 (patch)
tree7b861acefc1acb41a8bc806dfa7693aa41f53263 /src/3rdparty/libwebp/src/enc/syntax_enc.c
parent3c316057a0e6dae324f92a3bef2c31c398c2ea51 (diff)
parent6c0e0f2a82d8d26e33eb7190066c9872a00a0f8b (diff)
Merge remote-tracking branch 'origin/tqtc/lts-5.15.7' into tqtc/lts-5.15-opensourcev5.15.7-lts-lgpl
Diffstat (limited to 'src/3rdparty/libwebp/src/enc/syntax_enc.c')
-rw-r--r--src/3rdparty/libwebp/src/enc/syntax_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/libwebp/src/enc/syntax_enc.c b/src/3rdparty/libwebp/src/enc/syntax_enc.c
index a9e5a6c..e18cf65 100644
--- a/src/3rdparty/libwebp/src/enc/syntax_enc.c
+++ b/src/3rdparty/libwebp/src/enc/syntax_enc.c
@@ -349,7 +349,7 @@ int VP8EncWrite(VP8Encoder* const enc) {
(enc->alpha_data_size_ & 1);
riff_size += CHUNK_HEADER_SIZE + padded_alpha_size;
}
- // Sanity check.
+ // RIFF size should fit in 32-bits.
if (riff_size > 0xfffffffeU) {
return WebPEncodingSetError(pic, VP8_ENC_ERROR_FILE_TOO_BIG);
}