This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit 877094e0524754ed1ce1bfd29d90d06dcd261194 Author: João Neves <[email protected]> AuthorDate: Wed Apr 8 12:56:50 2026 -0700 Commit: Michael Niedermayer <[email protected]> CommitDate: Sat Sep 19 14:26:28 2026 +0200 avcodec/exr: check rle() return value in rle_uncompress() rle_uncompress() silently discards the return value of rle(). When the compressed data is malformed and rle() returns AVERROR_INVALIDDATA, processing continues on a partially filled buffer. Propagate the error to the caller, which already handles it at line 1420. Signed-off-by: João Neves <[email protected]> (cherry picked from commit daedf4012d073c5b8a9ae45dfbb53bff7d087ce5) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/exr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index c7fcd302cd..6b52c7e8ef 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -267,7 +267,9 @@ static int rle(uint8_t *dst, const uint8_t *src, static int rle_uncompress(const EXRContext *ctx, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { - rle(td->tmp, src, compressed_size, uncompressed_size); + int ret = rle(td->tmp, src, compressed_size, uncompressed_size); + if (ret < 0) + return ret; av_assert1(uncompressed_size % 2 == 0); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
