[PATCH][Binutils][AArch64] fix unintialized memory

Tamar Christina tamar.christina@arm.com
Wed Apr 25 10:03:00 GMT 2018


Hi All,

This patch fixes an issue where the memory for the opcode structure is not zero'd before
the first exit branch. So there is one failure mode for which uninitialized memory
is returned.

This causes weird failures when the return code is not checked before inst is used.

Regtested with check on aarch64-none-elf and no issues.

Ok for master?

Thanks,
Tamar.

opcodes/
2018-04-25  Tamar Christina  <tamar.christina@arm.com>

	* aarch64-dis.c (aarch64_opcode_decode): Moved memory clear code.

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb9187.patch
Type: text/x-diff
Size: 776 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180425/07e05550/attachment.bin>


More information about the Binutils mailing list