[all-commits] [llvm/llvm-project] 84dc97: [MSan] Fix check overflow in a test case (#150429)

Kunqiu Chen via All-commits all-commits at lists.llvm.org
Thu Jul 24 23:06:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84dc97e51eb4cd85de27805476d2f438ed9e6224
      https://github.com/llvm/llvm-project/commit/84dc97e51eb4cd85de27805476d2f438ed9e6224
  Author: Kunqiu Chen <camsyn at foxmail.com>
  Date:   2025-07-25 (Fri, 25 Jul 2025)

  Changed paths:
    M compiler-rt/test/msan/msan_check_mem_is_initialized.cpp

  Log Message:
  -----------
  [MSan] Fix check overflow in a test case (#150429)

Supplement to PR #144073

Previously, _msan_check_mem_is_initialized.cpp_ initialized a 32-byte
stack array, but checked the shadow for the offset range [12, 42),
exceeding the stack array size.

MSan does not guarantee that the shadow corresponding to the overflow
part is 0, so it is undefined to require the overflow part to be
unpoisoned.



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