This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: lto/55474: global-buffer-overflow in lto-wrapper.c
On Tue, Nov 27, 2012 at 10:19 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Nov 27, 2012 at 2:07 AM, Richard Biener
> <richard.guenther@gmail.com> wrote:
>> On Tue, Nov 27, 2012 at 9:32 AM, Markus Trippelsdorf
>> <markus@trippelsdorf.de> wrote:
>>> On 2012.11.26 at 13:58 -0800, H.J. Lu wrote:
>>>> Hi,
>>>>
>>>> OPT_SPECIAL_unknown, OPT_SPECIAL_ignore, OPT_SPECIAL_program_name and
>>>> OPT_SPECIAL_input_file are special options, which aren't in cl_options.
>>>> This patch avoids
>>>>
>>>> if (!(cl_options[foption->opt_index].flags & CL_TARGET))
>>>>
>>>> on them. This patch skips them. OK to install?
>>>
>>> The same fix is necessary for gcc/lto-opts.c.
>>> This solves the issue from PR54795 comment 5, 13 and 20.
>>
>> Ok for both patches.
>>
>
> Fixed on trunk. The same invalid memory access exists on 4.7 branch.
> OK to backport to 4.7?
Yes, of course.
Thanks,
Richard.
> Thanks.
>
> --
> H.J.