Files
binutils-gdb/opcodes
Alan Modra dd39dcae88 PR30793, kvx_reassemble_bundle index 8 out of bounds
While the patch already committed for pr30793 prevents the asan error,
there is a problem: Now the last element of bundle_words never gets
written.  That's very likely wrong, or KVXMAXBUNDLEWORDS is too big.
So this patch rearranges things a little to support writing of all of
bundle_words and does the parallel bit checking only when filling
bundle_words.  In the normal case, kvx_reassemble_bundle will see
bundle_words[word_count-1] with the parallel bit clear and all other
words having it set.  In the error case where all words in
bundle_words have the parallel bit set, kvx_reassemble_bundle will be
passed a wordcount of KVXMAXBUNDLEWORDS + 1.  I've also made
kvx_reassemble_bundle return true for success rather than zero, and
removed the unnecessary check for zero wordcount.

	PR 30793
	* kvx-dis.c (kvx_reassemble_bundle): Return bool, true on success.
	Fail if wordcount is too large.  Don't check for wordcount zero.
	Don't check kvx_has_parallel_bit.
	(print_insn_kvx): Rewrite code reading bundle_words as a for loop.
	Don't stop reading at KVXMAXBUNDLEWORDS - 1.
	(decode_prologue_epilogue_bundle): Similarly.
2023-09-08 07:49:09 +09:30
..
2023-08-16 14:22:54 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-08-26 13:09:38 -06:00
2023-08-26 13:09:38 -06:00
2023-08-19 12:41:32 +09:30
2023-08-19 12:41:32 +09:30
2023-08-03 21:20:33 +09:30
2023-08-16 14:22:54 +01:00
2023-08-16 14:22:54 +01:00
2023-08-02 12:06:23 +01:00
2023-08-02 12:06:23 +01:00
2023-09-01 12:29:24 +02:00
2023-09-01 12:29:24 +02:00
2023-08-02 12:06:23 +01:00
2023-09-01 12:29:24 +02:00
2023-09-01 12:29:24 +02:00
2023-09-01 12:27:20 +02:00
2023-08-24 12:36:25 +09:30
2023-08-16 14:22:54 +01:00
2023-08-26 13:09:38 -06:00
2023-08-26 13:09:38 -06:00
2023-03-16 17:30:19 +10:30
2023-03-16 17:30:19 +10:30