Skip to content
Snippets Groups Projects
Commit 4adbb44a authored by Anton Khirnov's avatar Anton Khirnov Committed by Diego Biurrun
Browse files

tta: avoid undefined shifts


Signed-off-by: default avatarDiego Biurrun <diego@biurrun.de>
parent dc4b6250
No related branches found
No related tags found
No related merge requests found
......@@ -360,7 +360,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
}
if (k) {
if (k > MIN_CACHE_BITS) {
if (k >= 32 || unary > INT32_MAX >> k) {
ret = AVERROR_INVALIDDATA;
goto error;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment