You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
flashsv: make sure data for zlib priming is available
Fixes a segfault in the fuzzed sample resolutionchange.flv_s314809. CC: libav-stable@libav.org
This commit is contained in:
@@ -401,6 +401,11 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
av_log_missing_feature(avctx, "zlibprime_curr", 1);
|
av_log_missing_feature(avctx, "zlibprime_curr", 1);
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
}
|
}
|
||||||
|
if (!s->blocks && (s->zlibprime_curr || s->zlibprime_prev)) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "no data available for zlib "
|
||||||
|
"priming\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
size--; // account for flags byte
|
size--; // account for flags byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user