diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-11-23 13:02:53 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-25 21:42:33 +0100 |
commit | 4adbb44ad154cec05e87de60bb827a13c0fe87df (patch) | |
tree | fc546652ad81c8258b3942df7c16147570a796e5 /libavcodec | |
parent | dc4b62502876c0ebeeba317233cd1348c5b0b2b7 (diff) | |
download | ffmpeg-4adbb44ad154cec05e87de60bb827a13c0fe87df.tar.gz |
tta: avoid undefined shifts
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 2ac825554e..5532580e02 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -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; } |