[all-commits] [llvm/llvm-project] 0a46b6: [msan] Clear byval shadow in ignored functions

Vitaly Buka via All-commits all-commits at lists.llvm.org
Fri Jan 14 17:32:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a46b6ec4e47241fdd77edce72b07c11bec284b5
      https://github.com/llvm/llvm-project/commit/0a46b6ec4e47241fdd77edce72b07c11bec284b5
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/test/Instrumentation/MemorySanitizer/byval.ll

  Log Message:
  -----------
  [msan] Clear byval shadow in ignored functions

If function has no sanitize_memory we still reset shadow for nested calls.
The first return from getShadow() correctly returned shadow for argument,
but it didn't reset shadow of byval pointee.

Depends on D117277

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D117278




More information about the All-commits mailing list