mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
tools/target_dec_fuzzer: set parser codec id to avoid assertion failure
Fixes: 9211/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GSM_fuzzer-5680396581732352 Fixes: assertion failure Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
cced03dd66
commit
5c0fd9df87
@ -193,6 +193,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
av_free(parser_avctx);
|
||||
return 0; // Failure of avcodec_open2() does not imply that a issue was found
|
||||
}
|
||||
parser_avctx->codec_id = ctx->codec_id;
|
||||
|
||||
FDBCreate(&buffer);
|
||||
int got_frame;
|
||||
|
Loading…
x
Reference in New Issue
Block a user