shithub: dav1d

Download patch

ref: f8cac8c56b3e8afec0e356b297c373a352746a1b
parent: 1f7a7e8a6af739a05b320151d04f0f7509ae7579
author: Henrik Gramner <gramner@twoorioles.com>
date: Mon Apr 22 12:26:07 EDT 2019

Fix crash in SSSE3 inverse transform

The 32x32 identity_identity transform would corrupt the stack, including
the return address, when compiling with a 16-byte stack alignment on
non-Windows systems.

--- a/src/x86/itx_ssse3.asm
+++ b/src/x86/itx_ssse3.asm
@@ -5130,7 +5130,7 @@
     ret
 
 
-cglobal inv_txfm_add_identity_identity_32x32, 4, 6, 8, 16*4, dst, stride, coeff, eob, tx2
+cglobal inv_txfm_add_identity_identity_32x32, 4, 6, 8, 16*5, dst, stride, coeff, eob, tx2
     %undef cmp
 
     mov                     r4, 2