Commit a90a691d authored by Janne Grunau's avatar Janne Grunau

dav1d/md5: avoid unaligned 32-bit reads

parent e5e3cabe
......@@ -148,7 +148,8 @@ static void md5_update(MD5Context *const md5, const uint8_t *data, unsigned len)
}
while (len >= 64) {
md5_body(md5, data);
memcpy(md5->data, data, 64);
md5_body(md5, md5->data);
md5->len += 64;
data += 64;
len -= 64;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment