[all-commits] [llvm/llvm-project] a0b1f3: [hwasan] Check for overflow when searching candida...

Florian Mayer via All-commits all-commits at lists.llvm.org
Tue Jul 6 03:22:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0b1f3aac57a9becb28d6a9c50f4d2eee7ba6c82
      https://github.com/llvm/llvm-project/commit/a0b1f3aac57a9becb28d6a9c50f4d2eee7ba6c82
  Author: Florian Mayer <fmayer at google.com>
  Date:   2021-07-06 (Tue, 06 Jul 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_mapping.h
    M compiler-rt/lib/hwasan/hwasan_report.cpp
    A compiler-rt/test/hwasan/TestCases/tag-mismatch-border-address.c

  Log Message:
  -----------
  [hwasan] Check for overflow when searching candidates.

If the fault address is at the boundary of memory regions, this could
cause us to segfault otherwise.

Ran test with old compiler_rt to make sure it fails.

Reviewed By: eugenis

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




More information about the All-commits mailing list