[all-commits] [llvm/llvm-project] 91c28b: [Asan] Return nullptr for invalid chunks

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed Sep 9 16:33:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 91c28bbe74f24e0e84edf84daae7659c11e7afd6
      https://github.com/llvm/llvm-project/commit/91c28bbe74f24e0e84edf84daae7659c11e7afd6
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M compiler-rt/lib/asan/asan_allocator.cpp

  Log Message:
  -----------
  [Asan] Return nullptr for invalid chunks

CHUNK_ALLOCATED. CHUNK_QUARANTINE are only states
which make AsanChunk useful for GetAsanChunk callers.
In either case member of AsanChunk are not useful.

Fix few cases which didn't expect nullptr. Most of the callers are already
expects nullptr.

Reviewed By: morehouse

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




More information about the All-commits mailing list