Fix out-of-bounds write in RTL function reader (PR bootstrap/79952)
commit84ebe3f14832fc7b6616ca7870cfcec1d6dcaf1e
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Mar 2017 18:39:52 +0000 (10 18:39 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Mar 2017 18:39:52 +0000 (10 18:39 +0000)
tree96eb6f4b76de81ad43ddb472cc8b3b05b62e1832
parent8828c0f085036078a82a067d58b3bccb43976183
Fix out-of-bounds write in RTL function reader (PR bootstrap/79952)

gcc/ChangeLog:
PR bootstrap/79952
* read-rtl-function.c (function_reader::read_rtx_operand): Update
x with result of extra_parsing_for_operand_code_0.
(function_reader::extra_parsing_for_operand_code_0): Convert
return type from void to rtx, returning x.  When reading
SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
larger size containing struct block_symbol.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246044 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/read-rtl-function.c