[all-commits] [llvm/llvm-project] 3106a2: [libc][stdlib] Fix UB in freelist (#95330)

PiJoules via All-commits all-commits at lists.llvm.org
Thu Jun 13 14:55:30 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3106a23155b905ea86100798d277278f5be47ebd
      https://github.com/llvm/llvm-project/commit/3106a23155b905ea86100798d277278f5be47ebd
  Author: PiJoules <6019989+PiJoules at users.noreply.github.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M libc/src/stdlib/CMakeLists.txt
    M libc/src/stdlib/freelist.h

  Log Message:
  -----------
  [libc][stdlib] Fix UB in freelist (#95330)

Some of the freelist code uses type punning which is UB in C++, namely
because we read from a union member that is not the active union member.



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