On Mon, Jan 06, 2025 at 11:59:08AM +0100, Stefan Schulze Frielinghaus wrote:
> For some targets uptr is mapped to unsigned int and size_t to unsigned
> long and sizeof(int)==sizeof(long) holds.  Still, these are distinct
> types and type checking may fail.  Therefore, replace uptr by
> usize/SIZE_T wherever a size_t is expected.
> 
> Part of #116957
> 
> Cherry picked from LLVM commit 9a156f6b2b0c892d8713ba907f07f027b24953d8
> (removed memprof, msan, and nsan parts).
> 
> libsanitizer/ChangeLog:
> 
>       PR sanitizer/117725
>       * asan/asan_interceptors.cpp: Cherry picked LLVM commit
>       9a156f6b2b0c892d8713ba907f07f027b24953d8.
>       * asan/asan_interceptors.h: Ditto.
>       * asan/asan_interceptors_memintrinsics.h: Ditto.
>       * asan/sanitizer_common_interceptors.inc: Ditto.
>       * sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc:
>       Ditto.
>       * sanitizer_common/sanitizer_platform_limits_posix.h:
>       Ditto.
>       * tsan/tsan_interceptors_posix.cpp: Ditto.

LGTM, thanks.

        Jakub

Reply via email to