diff options
author | James Zern <jzern@google.com> | 2017-12-21 16:51:40 -0500 |
---|---|---|
committer | James Zern <jzern@google.com> | 2017-12-21 16:53:14 -0500 |
commit | 84a7263d4c124919718aca2a7eef1a218216917b (patch) | |
tree | 573e3d4ff0156fcc5b3d683da9a244c73b97be9c /vp9/encoder | |
parent | 7a245adb18b8237da8bdb9ae5b7217ec047fb34a (diff) | |
download | libvpx-84a7263d4c124919718aca2a7eef1a218216917b.tar libvpx-84a7263d4c124919718aca2a7eef1a218216917b.tar.gz libvpx-84a7263d4c124919718aca2a7eef1a218216917b.tar.bz2 libvpx-84a7263d4c124919718aca2a7eef1a218216917b.zip |
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
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm | 2 |
1 files changed, 1 insertions, 1 deletions
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 |