[all-commits] [llvm/llvm-project] b7a6e9: [ubsan] Use internal_memcpy to copy ubsan bits siz...

earnol via All-commits all-commits at lists.llvm.org
Tue Jan 7 08:00:15 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7a6e9da124142a1bd28895eea768a158901a03b
      https://github.com/llvm/llvm-project/commit/b7a6e9da124142a1bd28895eea768a158901a03b
  Author: earnol <earnol at users.noreply.github.com>
  Date:   2025-01-07 (Tue, 07 Jan 2025)

  Changed paths:
    M compiler-rt/lib/ubsan/ubsan_value.h

  Log Message:
  -----------
  [ubsan] Use internal_memcpy to copy ubsan bits size (#121586)

While fetching amounts of bits used to correctly display ubsan value
reinterpret_cast was used, however as noted by Jakub Jelรญnek in
https://github.com/llvm/llvm-project/pull/96240 discussion it might
cause issues due to potentially unaligned memory access. The patch
addresses this problem.

Co-authored-by: Vladislav Aranov <vladislav.aranov at ericsson.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list