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

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 15 11:17:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72765

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Aug 15 11:16:50 2016
New Revision: 239475

URL: https://gcc.gnu.org/viewcvs?rev=239475&root=gcc&view=rev
Log:
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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcc.c


More information about the Gcc-bugs mailing list