[all-commits] [llvm/llvm-project] b10c2f: Align mach exception data before accessing it

Jason Molenda via All-commits all-commits at lists.llvm.org
Fri Aug 18 15:32:24 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b10c2f846d936a98eecfcef1a90a754522282285
  Author: Jason Molenda <jason at molenda.com>
  Date:   2023-08-18 (Fri, 18 Aug 2023)

  Changed paths:
    M lldb/tools/debugserver/source/MacOSX/MachException.cpp

  Log Message:
  Align mach exception data before accessing it

The mach exception data may not be doubleword aligned when we receive
it.  We use memcpy to align it later in this method when we save
the data, but for printing the value at the top, we need to do the
same or ubsan can trigger when LOG_EXCEPTIONS is enabled in

More information about the All-commits mailing list