From: Matthias Klose Date: Fri, 22 Jun 2018 06:11:21 +0000 (+0100) Subject: aarch64-uninit-mem X-Git-Tag: archive/raspbian/2.30-22+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bca420cb42491fcf79c563ea1f7d6d00ebdd3cb1;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;