[all-commits] [llvm/llvm-project] 84c4ef: [ubsan-minimal] Report the address of an error

Igor Kudrin via All-commits all-commits at lists.llvm.org
Mon Sep 5 03:21:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84c4efbc6d61ec2bed9e9bc64b5829b4487b210c
      https://github.com/llvm/llvm-project/commit/84c4efbc6d61ec2bed9e9bc64b5829b4487b210c
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2022-09-05 (Mon, 05 Sep 2022)

  Changed paths:
    M compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp
    M compiler-rt/test/ubsan_minimal/TestCases/alignment-assumption.c
    M compiler-rt/test/ubsan_minimal/TestCases/implicit-integer-sign-change.c
    M compiler-rt/test/ubsan_minimal/TestCases/implicit-signed-integer-truncation-or-sign-change.c
    M compiler-rt/test/ubsan_minimal/TestCases/implicit-signed-integer-truncation.c
    M compiler-rt/test/ubsan_minimal/TestCases/implicit-unsigned-integer-truncation.c
    M compiler-rt/test/ubsan_minimal/TestCases/nullptr-and-nonzero-offset.c
    M compiler-rt/test/ubsan_minimal/TestCases/recover-dedup.cpp
    M compiler-rt/test/ubsan_minimal/TestCases/uadd-overflow.cpp

  Log Message:
  -----------
  [ubsan-minimal] Report the address of an error

This implements a FIXME in the runtime library and adds printing the
address at the end of the message as "by 0x123abc". The buffer for the
message is allocated on the stack in a handler, so the stack memory
consumption is slightly increased. No additional external dependencies
are added.

Differential revision: https://reviews.llvm.org/D131914




More information about the All-commits mailing list