aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-10-20 17:18:11 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-10-20 17:18:11 +0200
commit6707152f08bbb413329f4460ed604ad58583d972 (patch)
treef55b7d3fc969b123a3dfb794bc63de0cbe5be744
parent939b72b02e40a7db440b68f31ab23bd550785344 (diff)
downloadffmpeg-6707152f08bbb413329f4460ed604ad58583d972.tar.gz
avcodec/notchlc: Revert incorrect compression bound
Revert "avcodec/notchlc: Check uncompressed size against input for LZ4" Found-by: durandal_1707 This reverts commit 51002362c4ed301e54cea1597666cd5cc9a134f3.
-rw-r--r--libavcodec/notchlc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/notchlc.c b/libavcodec/notchlc.c
index d13ce3193c..3f7079da70 100644
--- a/libavcodec/notchlc.c
+++ b/libavcodec/notchlc.c
@@ -490,11 +490,6 @@ static int decode_frame(AVCodecContext *avctx,
bytestream2_init(gb, s->lzf_buffer, uncompressed_size);
} else if (s->format == 1) {
- unsigned remaining = bytestream2_get_bytes_left(gb);
-
- if (remaining > 0x7E000000U || remaining + remaining/255 + 16 < uncompressed_size)
- return AVERROR_INVALIDDATA;
-
av_fast_padded_malloc(&s->uncompressed_buffer, &s->uncompressed_size,
uncompressed_size);
if (!s->uncompressed_buffer)