[all-commits] [llvm/llvm-project] 309bb1: [scudo] Fix c wrappers double free test. (#148066)

Christopher Ferris via All-commits all-commits at lists.llvm.org
Mon Jul 14 11:15:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 309bb1ed6844a5936158a2a8406d1b77bda37b94
      https://github.com/llvm/llvm-project/commit/309bb1ed6844a5936158a2a8406d1b77bda37b94
  Author: Christopher Ferris <cferris1000 at users.noreply.github.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp

  Log Message:
  -----------
  [scudo] Fix c wrappers double free test. (#148066)

The previous test simply tried to double free the pointer in the
EXPECT_DEATH macro. Unfortunately, the gtest infrastructure can allocate
a pointer that happens to be the previously freed pointer. Thus the free
doesn't fail since the spawned process does not attempt to free all of
the pointers allocated in the original test.

NOTE: Scudo should be checked to make sure that the TSD is not always
returning pointers in the same order they are freed. Although this
appears to be a problem with a program that only does a small number of
allocations.



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