shithub: dav1d

Download patch

ref: 31d2a9a396109e2aec9220d8e3d8aadd4b3eb8b1
parent: 540c0a7ac9716085c67ab3feb36b8a3faeabb5ec
author: Janne Grunau <janne-vlc@jannau.net>
date: Fri Oct 5 15:39:11 EDT 2018

check dav1d_submit_frame() for errors

Avoids a triggered assert with
david-fuzzing-data:artifacts/crash-f448caf378e250b7eea4fa2d1c3cd7ef4a3211ce.

--- a/src/obu.c
+++ b/src/obu.c
@@ -1066,7 +1066,8 @@
     {
         if (!c->n_tile_data)
             return -EINVAL;
-        dav1d_submit_frame(c);
+        if ((res = dav1d_submit_frame(c)) < 0)
+            return res;
         assert(!c->n_tile_data);
         c->have_frame_hdr = 0;
         c->tile_mask = 0;