From: Matthias Klose Date: Wed, 16 May 2018 14:21:19 +0000 (+0100) Subject: aarch64-uninit-mem X-Git-Tag: archive/raspbian/2.30-20+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec52b25bb5aa722cf5e9723094be6ffef279ca75;p=binutils.git aarch64-uninit-mem opcodes/ 2018-05-01 Tamar Christina * aarch64-dis.c (aarch64_opcode_decode): Moved memory clear code. Gbp-Pq: Name aarch64-uninit-mem.diff --- diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c index a7f5cfc83..ad515f233 100644 --- a/opcodes/aarch64-dis.c +++ b/opcodes/aarch64-dis.c @@ -2733,6 +2733,9 @@ aarch64_opcode_decode (const aarch64_opcode *opcode, const aarch64_insn code, assert (opcode && inst); + /* Clear inst. */ + memset (inst, '\0', sizeof (aarch64_inst)); + /* Check the base opcode. */ if ((code & opcode->mask) != (opcode->opcode & opcode->mask)) { @@ -2740,9 +2743,6 @@ aarch64_opcode_decode (const aarch64_opcode *opcode, const aarch64_insn code, goto decode_fail; } - /* Clear inst. */ - memset (inst, '\0', sizeof (aarch64_inst)); - inst->opcode = opcode; inst->value = code;