]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix invalid memory access in gcc.c (driver/72765)
authorMartin Liska <mliska@suse.cz>
Mon, 15 Aug 2016 11:20:09 +0000 (13:20 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 15 Aug 2016 11:20:09 +0000 (11:20 +0000)
commit6ad082d373d637264a0ab7980009d28913c10948
tree0775ea0727aae6fd75bda88317aec1c9413167c7
parent6c89f58d241ec03e6dba2a726e2341f35f113492
Fix invalid memory access in gcc.c (driver/72765)

Backported from mainline
2016-08-15  Martin Liska  <mliska@suse.cz>

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: r239477
gcc/ChangeLog
gcc/gcc.c