mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-04 23:31:01 +00:00
Merge commit '4adbb44ad154cec05e87de60bb827a13c0fe87df'
* commit '4adbb44ad154cec05e87de60bb827a13c0fe87df': tta: avoid undefined shifts Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
4fbb56acbe
@ -285,7 +285,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user