shithub: dav1d

Download patch

ref: a90a691dd263b947bd937f6049c35246df06fadc
parent: e5e3cabeb94d2104d2229384498ad323d7c7656c
author: Janne Grunau <janne-vlc@jannau.net>
date: Mon Nov 26 14:20:02 EST 2018

dav1d/md5: avoid unaligned 32-bit reads

--- a/tools/output/md5.c
+++ b/tools/output/md5.c
@@ -148,7 +148,8 @@
     }
 
     while (len >= 64) {
-        md5_body(md5, data);
+        memcpy(md5->data, data, 64);
+        md5_body(md5, md5->data);
         md5->len += 64;
         data += 64;
         len -= 64;