shithub: dav1d

Download patch

ref: 9ce4b734cedbbce0a0f3875ce36a20de5ef3a5f1
parent: 0afc2039e707b2acdc209f0a8943043176376a5e
author: Janne Grunau <[email protected]>
date: Mon Nov 26 06:19:32 EST 2018

memset frame_hdr to fix use of uninitilized value regressions

--- a/src/obu.c
+++ b/src/obu.c
@@ -1266,6 +1266,7 @@
             if (!c->frame_hdr_ref) return -ENOMEM;
         }
         c->frame_hdr = c->frame_hdr_ref->data;
+        memset(c->frame_hdr, 0, sizeof(*c->frame_hdr));
         c->frame_hdr->temporal_id = temporal_id;
         c->frame_hdr->spatial_id = spatial_id;
         if ((res = parse_frame_hdr(c, &gb)) < 0) {