Commit 7e5a6225 authored by Michael Niedermayer's avatar Michael Niedermayer

escape124: Fix long == 64 assumtation.

Found-by: Nicolas
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3a1ca240
...@@ -90,7 +90,7 @@ static CodeBook unpack_codebook(GetBitContext* gb, unsigned depth, ...@@ -90,7 +90,7 @@ static CodeBook unpack_codebook(GetBitContext* gb, unsigned depth,
unsigned i, j; unsigned i, j;
CodeBook cb = { 0 }; CodeBook cb = { 0 };
if (!can_safely_read(gb, size * 34L)) if (!can_safely_read(gb, (uint64_t)size * 34))
return cb; return cb;
if (size >= INT_MAX / sizeof(MacroBlock)) if (size >= INT_MAX / sizeof(MacroBlock))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment