[PR] avcodec/ffv1dec: reject a remap that produces zero entries (PR #23906)
michaelni via ffmpeg-devel <[email protected]> Sat, 25 Jul 2026 03:06:52 -0000
| Newsgroups | gmane.comp.video.ffmpeg.devel |
|---|---|
| Message-ID | <178494881354.59.16964894191408916246@29965ddac10e> |
PR #23906 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23906 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23906.patch >From 53243118dce056f36c5ff678604da9c75f967bd5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Sat, 25 Jul 2026 04:31:38 +0200 Subject: [PATCH] avcodec/ffv1dec: reject a remap that produces zero entries --- libavcodec/ffv1dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index ba973ab76f..f972c41ec4 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -369,6 +369,8 @@ static int decode_remap(FFV1Context *f, FFV1SliceContext *sc) } lu ^= !run; } + if (!j) + return AVERROR_INVALIDDATA; sc->remap_count[p] = j; } return 0; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]