Fixes: Timeout Fixes: 71739/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XAN_WC3_fuzzer-6170301405134848
Unified · Split
| @@ -607,6 +607,9 @@ static int xan_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 606 unmodified lines | ||
| 607 | 607 | return AVERROR_INVALIDDATA; |
| 608 | 608 | } |
| 609 | 609 | |
| 610 | + if (buf_size < 9) | |
| 611 | + return AVERROR_INVALIDDATA; | |
| 612 | + | |
| 610 | 613 | if ((ret = ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF)) < 0) |
| 611 | 614 | return ret; |
| 612 | 615 | |