Re: PATCH: lto/55474: global-buffer-overflow in lto-wrapper.c

2012-11-28 Thread Richard Biener
On Tue, Nov 27, 2012 at 10:19 PM, H.J. Lu wrote: > On Tue, Nov 27, 2012 at 2:07 AM, Richard Biener > wrote: >> On Tue, Nov 27, 2012 at 9:32 AM, Markus Trippelsdorf >> wrote: >>> On 2012.11.26 at 13:58 -0800, H.J. Lu wrote: Hi, OPT_SPECIAL_unknown, OPT_SPECIAL_ignore, OPT_SPECIAL_p

Re: PATCH: lto/55474: global-buffer-overflow in lto-wrapper.c

2012-11-27 Thread H.J. Lu
On Tue, Nov 27, 2012 at 2:07 AM, Richard Biener wrote: > On Tue, Nov 27, 2012 at 9:32 AM, Markus Trippelsdorf > 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 optio

Re: PATCH: lto/55474: global-buffer-overflow in lto-wrapper.c

2012-11-27 Thread Richard Biener
On Tue, Nov 27, 2012 at 9:32 AM, Markus Trippelsdorf 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 (!(

Re: PATCH: lto/55474: global-buffer-overflow in lto-wrapper.c

2012-11-27 Thread Markus Trippelsdorf
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. Th

PATCH: lto/55474: global-buffer-overflow in lto-wrapper.c

2012-11-26 Thread H.J. Lu
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? Thanks. H.J. --- 2012-1