[Patch, AArch64] Enable Address sanitizer and UB sanitizer

Christophe Lyon christophe.lyon@linaro.org
Mon Sep 29 13:01:00 GMT 2014


On 26 September 2014 23:05, Andreas Schwab <schwab@linux-m68k.org> wrote:
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34c65c4
>
>         * sanitizer_common/sanitizer_platform_limits_posix.h
>         (__sanitizer___kernel_old_uid_t, __sanitizer___kernel_old_gid_t)
>         [__aarch64__]: Define to unsigned short.
>

Thanks for pointing this.

My understanding is that this kind of patch has to be submitted to the
libsanitizer maintainers via the LLVM project.

I'm going to take care of it.

Christophe.

> ---
>  libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
> index caa36a4..139fe0a 100644
> --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
> +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
> @@ -470,7 +470,7 @@ namespace __sanitizer {
>    typedef long __sanitizer___kernel_off_t;
>  #endif
>
> -#if defined(__powerpc__) || defined(__aarch64__) || defined(__mips__)
> +#if defined(__powerpc__) || defined(__mips__)
>    typedef unsigned int __sanitizer___kernel_old_uid_t;
>    typedef unsigned int __sanitizer___kernel_old_gid_t;
>  #else
> --
> 2.1.1
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."



More information about the Gcc-patches mailing list