This is the mail archive of the gcc-patches@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]

Re: [PATCH] Fix for invalid sanitization of trailing byte in __builtin_strlen


On Fri, Jun 20, 2014 at 04:55:43PM +0400, Maxim Ostapenko wrote:
> > What about bootstrap though?
> 
> Bootstrap in progress.
> 
> >> +__SIZE_TYPE__ strlen (const char *p) {
> >> +  /* Simulate error */
> >> +  if (p == a)
> >> +    return 1;
> 
> > Why this?  Can't you instead just use __attribute__((no_sanitize_address,
> noinline))
> > on it instead?
> 
> Done.
> 
> Ok to commit if bootstrap will succeed?

Ok, thanks.

	Jakub


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