Fix invalid memory access in gcc.c (driver/72765)
authorMartin Liska <mliska@suse.cz>
Mon, 15 Aug 2016 11:16:50 +0000 (13:16 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 15 Aug 2016 11:16:50 +0000 (11:16 +0000)
commit38359141158751b6f35fd4b282b07a717cfa3e19
treecd84f67a0409e446e625333e54361fafc91bd35d
parent397d8acd712325e0885f092e01f69bcade62adbd
Fix invalid memory access in gcc.c (driver/72765)

PR driver/72765
* gcc.c (do_spec_1): Call save_string with the right size.
(save_string): Do an assert about string we copy.

From-SVN: r239475
gcc/ChangeLog
gcc/gcc.c