This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/72765] Dynamic stack buffer overflow in GCC driver with -save-temps switch.
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2016 11:20:41 +0000
- Subject: [Bug driver/72765] Dynamic stack buffer overflow in GCC driver with -save-temps switch.
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-72765-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72765
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Aug 15 11:20:09 2016
New Revision: 239477
URL: https://gcc.gnu.org/viewcvs?rev=239477&root=gcc&view=rev
Log:
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.
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/gcc.c