x86emul: always init mmval

... to avoid buggy read/write sizes becoming info leaks.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2017-02-13 15:20:55 +01:00
1 parent 997382b771
commit b857b041ee
1 file changed
+2
+2
View File
@@ -2671,6 +2671,8 @@ x86_emulate(
ea.reg = decode_register(modrm_rm, &_regs,
(d & ByteOp) && !rex_prefix);
memset(mmvalp, 0xaa /* arbitrary */, sizeof(*mmvalp));
/* Decode and fetch the source operand: register, memory or immediate. */
switch ( d & SrcMask )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.