git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58fe01
)
tools/target_dec_fuzzer: Do not attempt to fuzz VDPAU, its not supported
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 13:13:05 +0000
(15:13 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 13:15:14 +0000
(15:15 +0200)
Fixes: 1364/clusterfuzz-testcase-minimized-
6459843441328128
Fixes: 1392
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c
patch
|
blob
|
history
diff --git
a/tools/target_dec_fuzzer.c
b/tools/target_dec_fuzzer.c
index
d5ba99d
..
ed6e242
100644
(file)
--- a/
tools/target_dec_fuzzer.c
+++ b/
tools/target_dec_fuzzer.c
@@
-147,6
+147,10
@@
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
avcodec_register(&DECODER_SYMBOL(FFMPEG_DECODER));
c = &DECODER_SYMBOL(FFMPEG_DECODER);
+
+ // Unsupported
+ if (c->capabilities & AV_CODEC_CAP_HWACCEL_VDPAU)
+ return 0;
#else
avcodec_register_all();
c = AVCodecInitialize(FFMPEG_CODEC); // Done once.