gdb/record-full: Use xmalloc instead of alloca for temporary memory storage.
authorMarcin Kościelnicki <koriakin@0x04.net>
Mon, 2 Nov 2015 01:12:58 +0000 (02:12 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Wed, 4 Nov 2015 14:26:59 +0000 (15:26 +0100)
commit394816ee10a85e3e0fa7c9b0a4ca29e7e160e63c
tree3e358b49f28689b4eab4a4ed71f8b98aff5bc7c5
parentfe6052e1eeffd4e2e2210cebc480b90094429a16
gdb/record-full: Use xmalloc instead of alloca for temporary memory storage.

On the newly added s390 target, it's possible for a single instruction
to write practically unbounded amount of memory (eg. MVCLE).  This caused
a stack overflow when alloca was used.

gdb/ChangeLog:

* record-full.c (record_full_exec_insn): Use xmalloc for temporary
memory storage.
gdb/ChangeLog
gdb/record-full.c
This page took 0.025398 seconds and 4 git commands to generate.