Fix use after free in cgen instruction lookup
authorAlan Modra <amodra@gmail.com>
Sat, 11 Feb 2017 06:47:59 +0000 (17:17 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 11 Feb 2017 07:10:41 +0000 (17:40 +1030)
commit54064fdb792313355c92d9880680fad825d71ebd
treefb800d6e1ab9eb52273675c460716ddd80fdfcc3
parent09ec4d3122e69d1ff040e59394879b4d8d154605
Fix use after free in cgen instruction lookup

* cgen-opc.c (cgen_lookup_insn): Delete buf and base_insn temps.
Use insn_bytes_value and insn_int_value directly instead.  Don't
free allocated memory until function exit.
opcodes/ChangeLog
opcodes/cgen-opc.c
This page took 0.027713 seconds and 4 git commands to generate.