History

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

Michael Niedermayer committed 2 years ago

Commit 5dde2551 parent a308d791 file · +2 −2Browse files

Unified · Split

libavcodec/cfhdenc.c+2−2
@@ -257,8 +257,8 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx) · 256 unmodified lines
257 if (ret < 0)257 if (ret < 0)
258 return ret;258 return ret;
259 259
260 if (avctx->height < 4) {260 if (avctx->height < 32) {
261 av_log(avctx, AV_LOG_ERROR, "Height must be >= 4.\n");261 av_log(avctx, AV_LOG_ERROR, "Height must be >= 32.\n");
262 return AVERROR_INVALIDDATA;262 return AVERROR_INVALIDDATA;
263 }263 }
264 264

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t