This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/72765] Dynamic stack buffer overflow in GCC driver with -save-temps switch.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]