From 84a7263d4c124919718aca2a7eef1a218216917b Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 21 Dec 2017 16:51:40 -0500 Subject: vp9_quantize_ssse3_x86_64: fix out of bounds write eob is a pointer to a uint16_t. previously the code would store 64-bits causing a crash or test failure with the right stack layout. Change-Id: Ibd653baf323db114f2444951b9d8b00c596bf15a --- vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vp9/encoder') diff --git a/vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm b/vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm index 1d421f6ec..5703aa3bb 100644 --- a/vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm +++ b/vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm @@ -169,7 +169,7 @@ cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, round, quant, \ pshuflw m7, m8, 0x1 pmaxsw m8, m7 pextrw r6, m8, 0 - mov [r2], r6 + mov [r2], r6w RET %endmacro -- cgit v1.2.3