aarch64: Fix uninitialised memory
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 3 Dec 2021 11:57:17 +0000 (11:57 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 3 Dec 2021 11:57:17 +0000 (11:57 +0000)
commit69ce6091e62c3bc2442c2e9b3b2d689266e96b1f
tree647fdb8e22801ee6c78134c94af65e66c61792a1
parentbf94cfb6318572bc3eece37273140d45279a8768
aarch64: Fix uninitialised memory

AARCH64_OPDE_EXPECTED_A_AFTER_B and AARCH64_OPDE_A_SHOULD_FOLLOW_B
are not paired with an error string, but we had an assert that the
error was nonnull.  Previously this assert was testing uninitialised
memory and so could pass or fail arbitrarily.

opcodes/
* aarch64-opc.c (verify_mops_pme_sequence): Initialize the error
field to null for AARCH64_OPDE_EXPECTED_A_AFTER_B and
AARCH64_OPDE_A_SHOULD_FOLLOW_B.
* aarch64-dis.c (print_verifier_notes): Move assert.
opcodes/aarch64-dis.c
opcodes/aarch64-opc.c