Fix out-of-bounds write in RTL function reader (PR bootstrap/79952)
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 10 Mar 2017 18:39:52 +0000 (18:39 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 10 Mar 2017 18:39:52 +0000 (18:39 +0000)
commit57517ca4262d733e93469658231209def4bd83fc
tree96eb6f4b76de81ad43ddb472cc8b3b05b62e1832
parent7502c5970d0af6cc71c2a906d55d95a31322bc07
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.

From-SVN: r246044
gcc/ChangeLog
gcc/read-rtl-function.c