aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-07-19 23:19:52 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-23 23:21:17 +0200
commit5dde255abdeb50aefb0dcf8b060277e37d180ec6 (patch)
treeab79182e710699bf6c16efe22e6ace14f8813958 /libavcodec
parenta308d79e4dedea11667cb2ad42c6676ce96e8ee1 (diff)
downloadffmpeg-5dde255abdeb50aefb0dcf8b060277e37d180ec6.tar.gz
avcodec/cfhdenc: Height of 16 is not supported
Fixes: out of array access Fixes: 68941/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5990952685600768 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cfhdenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cfhdenc.c b/libavcodec/cfhdenc.c
index 09fb2bd743..7084509f6e 100644
--- a/libavcodec/cfhdenc.c
+++ b/libavcodec/cfhdenc.c
@@ -257,8 +257,8 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx)
if (ret < 0)
return ret;
- if (avctx->height < 4) {
- av_log(avctx, AV_LOG_ERROR, "Height must be >= 4.\n");
+ if (avctx->height < 32) {
+ av_log(avctx, AV_LOG_ERROR, "Height must be >= 32.\n");
return AVERROR_INVALIDDATA;
}