Commit 4adbb44a authored by Anton Khirnov's avatar Anton Khirnov Committed by Diego Biurrun

tta: avoid undefined shifts

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent dc4b6250
...@@ -360,7 +360,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data, ...@@ -360,7 +360,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
} }
if (k) { if (k) {
if (k > MIN_CACHE_BITS) { if (k >= 32 || unary > INT32_MAX >> k) {
ret = AVERROR_INVALIDDATA; ret = AVERROR_INVALIDDATA;
goto error; goto error;
} }
......
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