[PATCH] Fix for invalid sanitization of trailing byte in __builtin_strlen
Jakub Jelinek
jakub@redhat.com
Fri Jun 20 12:59:00 GMT 2014
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
More information about the Gcc-patches
mailing list