[all-commits] [llvm/llvm-project] 33d9b7: [sanitizer] Mark before deref in PosixSpawnImpl

Tamir Duberstein via All-commits all-commits at lists.llvm.org
Wed Nov 3 10:18:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33d9b7b4b26d56b9cdc479bfd444e448d61fa978
      https://github.com/llvm/llvm-project/commit/33d9b7b4b26d56b9cdc479bfd444e448d61fa978
  Author: Tamir Duberstein <tamird at google.com>
  Date:   2021-11-03 (Wed, 03 Nov 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

  Log Message:
  -----------
  [sanitizer] Mark before deref in PosixSpawnImpl

Read each pointer in the argv and envp arrays before dereferencing
it; this correctly marks an error when these pointers point into
memory that has been freed.

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




More information about the All-commits mailing list