You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/notchlc: Revert incorrect compression bound
Revert "avcodec/notchlc: Check uncompressed size against input for LZ4"
Found-by: durandal_1707
This reverts commit 51002362c4
.
This commit is contained in:
@@ -490,11 +490,6 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
bytestream2_init(gb, s->lzf_buffer, uncompressed_size);
|
bytestream2_init(gb, s->lzf_buffer, uncompressed_size);
|
||||||
} else if (s->format == 1) {
|
} 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,
|
av_fast_padded_malloc(&s->uncompressed_buffer, &s->uncompressed_size,
|
||||||
uncompressed_size);
|
uncompressed_size);
|
||||||
if (!s->uncompressed_buffer)
|
if (!s->uncompressed_buffer)
|
||||||
|
Reference in New Issue
Block a user