]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - opcodes/ChangeLog
NS32K arg_bufs uninitialised
authorAlan Modra <amodra@gmail.com>
Sun, 22 Mar 2020 07:45:41 +0000 (18:15 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 22 Mar 2020 12:52:13 +0000 (23:22 +1030)
commit03704c7704870a0e6cbb0eae99488d544c4adb30
tree6f74ee9792cb6f11a7e1a8386845c0499610cb2d
parentd1023b5d1e4483e5fa3bdab97bc041e1b1c05c5d
NS32K arg_bufs uninitialised

git commit d1e304bc27 was aimed at stopping uninitialised memory
access to the index_offset array.  Unfortunately that patch resulted
in a different array being uninitialised for all instructions with
more than two arguments.

* ns32k-dis.c (print_insn_arg): Update comment.
(print_insn_ns32k): Reduce size of index_offset array, and
initialize, passing -1 to print_insn_arg for args that are not
an index.  Don't exit arg loop early.  Abort on bad arg number.
opcodes/ChangeLog
opcodes/ns32k-dis.c