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 874de02d87f68a1014c01461c29e52726bd7805e Author: Michael Niedermayer <[email protected]> AuthorDate: Sun May 31 16:45:47 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Mon Jun 15 23:57:22 2026 +0200 avcodec/sanm: reject codec37 frames taller than the allocated buffer No testcase Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit ab5043f055de39e34d21c9acfe0ec1e115af94bf) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/sanm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index ebcd9d35fa..c566e3e5c3 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -1228,6 +1228,9 @@ static int old_codec37(SANMVideoContext *ctx, GetByteContext *gb, int top, int l if (width > ctx->aligned_width) return AVERROR_INVALIDDATA; + if (FFALIGN(height, 4) > ctx->aligned_height) + return AVERROR_INVALIDDATA; + if (bytestream2_get_bytes_left(gb) < 16) return AVERROR_INVALIDDATA; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
