summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-03-05 22:25:04 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2023-03-12 22:33:12 +0100
commit87ad0a5dd7d12c91badc215c3b5d6745fa7acb02 (patch)
treee4fe01f34bf9c5cfa625fde29c87397ebb1305be
parent8e5e578453a2b539c93e94bca82157f43417afbf (diff)
downloadffmpeg-87ad0a5dd7d12c91badc215c3b5d6745fa7acb02.tar.gz
avcodec/escape124: fix signdness of end of input check
Fixes: Timeout Fixes: 56561/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ESCAPE124_fuzzer-5560363635834880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/escape124.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/escape124.c b/libavcodec/escape124.c
index 024eec59ce..e9c6b2df1b 100644
--- a/libavcodec/escape124.c
+++ b/libavcodec/escape124.c
@@ -89,7 +89,7 @@ static CodeBook unpack_codebook(GetBitContext* gb, unsigned depth,
unsigned i, j;
CodeBook cb = { 0 };
- if (size >= INT_MAX / 34 || get_bits_left(gb) < size * 34)
+ if (size >= INT_MAX / 34 || get_bits_left(gb) < (int)size * 34)
return cb;
if (size >= INT_MAX / sizeof(MacroBlock))