shithub: dav1d

Download patch

ref: a7bc6b8f2e9779ce46b61768b6dfaccc8eb7bbcb
parent: 520894c6d165bc6ef182cd935f14f063900e6c87
author: Janne Grunau <[email protected]>
date: Thu Oct 11 18:13:05 EDT 2018

fuzzer: improve coverage of lib.c

--- a/tests/libfuzzer/dav1d_fuzzer.c
+++ b/tests/libfuzzer/dav1d_fuzzer.c
@@ -46,6 +46,8 @@
     const uint8_t *ptr = data;
     int err;
 
+    dav1d_version();
+
     if (size < 32) goto end;
     ptr += 32; // skip ivf header
 
@@ -91,6 +93,7 @@
     } while (err == 0);
 
 cleanup:
+    dav1d_flush(ctx);
     dav1d_close(&ctx);
 end:
     return 0;