[compiler-rt] [ubsan-minimal] Switch to weak symbols for callbacks to allow overriding in client code (PR #119242)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 12:37:55 PST 2024


================
@@ -0,0 +1,14 @@
+// RUN: %clang -fsanitize=implicit-integer-sign-change %s -o %t && %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK
+
+#include <stdio.h>
+#include <stdint.h>
+
+void __ubsan_handle_implicit_conversion_minimal() {
----------------
vitalybuka wrote:

There is function declared as:

```
void SANITIZER_CDECL
__sanitizer_report_error_summary(const char *error_summary);
```

if we abandon callerpc we can use that one
Do you see good usecase of it?


https://github.com/llvm/llvm-project/pull/119242


More information about the llvm-commits mailing list