[compiler-rt] [ASan] Honor `allocator_may_return_null` when set through user-function and fix large alloc edge case (PR #117929)

David Justo via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 10:38:11 PST 2024


================
@@ -0,0 +1,27 @@
+// RUN: %clangxx_asan -O0 %s -o %t
+// RUN: %run %t 2>&1
+// CHECK: Success
+
+#include <cstdint>
+#include <cstdio>
+#include <cstdlib>
+#include <limits>
+
+// On Windows, flags configured through the user-defined function `__asan_default_options`
----------------
davidmrdavid wrote:

Yup, good idea! I actually had a local branch where I'm tackling #117925 more generally, and I had already merged the tests there. So I'm porting that over, here: https://github.com/llvm/llvm-project/pull/117929/commits/ebc3d0df3d55f1e03add8007970042b566954d32

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


More information about the llvm-commits mailing list