Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2018-11-15 22:35:27 +0300
committerJanne Grunau <janne-vlc@jannau.net>2018-11-16 00:29:05 +0300
commit14388c3c6b53a5c2fea329e36693fd092042d392 (patch)
tree024dfb336f7c2176c5d983827d64768b91247b2b /tests/libfuzzer
parente890a66f773d12d0680a6fe50807800921dac504 (diff)
call dav1d_get_picture() until it returns -EAGAIN for draining
With the decoupled decoding data there might be remaining input data during draining which can cause bitstream parsing errors.
Diffstat (limited to 'tests/libfuzzer')
-rw-r--r--tests/libfuzzer/dav1d_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libfuzzer/dav1d_fuzzer.c b/tests/libfuzzer/dav1d_fuzzer.c
index 08de3d9..18d012b 100644
--- a/tests/libfuzzer/dav1d_fuzzer.c
+++ b/tests/libfuzzer/dav1d_fuzzer.c
@@ -121,7 +121,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
err = dav1d_get_picture(ctx, &pic);
if (err == 0)
dav1d_picture_unref(&pic);
- } while (err == 0);
+ } while (err != -EAGAIN);
cleanup:
dav1d_flush(ctx);