diff options
author | Alan Modra <amodra@gmail.com> | 2017-02-11 17:17:59 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-02-11 17:40:41 +1030 |
commit | 54064fdb792313355c92d9880680fad825d71ebd (patch) | |
tree | fb800d6e1ab9eb52273675c460716ddd80fdfcc3 /opcodes/ChangeLog | |
parent | 09ec4d3122e69d1ff040e59394879b4d8d154605 (diff) | |
download | gdb-54064fdb792313355c92d9880680fad825d71ebd.zip gdb-54064fdb792313355c92d9880680fad825d71ebd.tar.gz gdb-54064fdb792313355c92d9880680fad825d71ebd.tar.bz2 |
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.
Diffstat (limited to 'opcodes/ChangeLog')
-rw-r--r-- | opcodes/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 8366d1b..fc6637b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2017-02-11 Stafford Horne <shorne@gmail.com> + Alan Modra <amodra@gmail.com> + + * 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. + 2017-02-10 Nicholas Piggin <npiggin@gmail.com> * ppc-opc.c (powerpc_opcodes) <scv, rfscv>: New mnemonics. |