Fixes: out of array access Fixes: 68941/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5990952685600768
Unified · Split
| @@ -257,8 +257,8 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx) · 256 unmodified lines | ||
| 257 | 257 | if (ret < 0) |
| 258 | 258 | return ret; |
| 259 | 259 | |
| 260 | − if (avctx->height < 4) { | |
| 261 | − av_log(avctx, AV_LOG_ERROR, "Height must be >= 4.\n"); | |
| 260 | + if (avctx->height < 32) { | |
| 261 | + av_log(avctx, AV_LOG_ERROR, "Height must be >= 32.\n"); | |
| 262 | 262 | return AVERROR_INVALIDDATA; |
| 263 | 263 | } |
| 264 | 264 | |