[compiler-rt] [compiler-rt][asan] _aligned_malloc/_aligned_free interception. (PR #82049)
David CARLIER via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 07:48:28 PST 2024
================
@@ -33,6 +33,14 @@ int test_function() {
return __LINE__;
_aligned_free(p);
+ char *y = (char *)malloc(1024);
+ char *u = (char *)realloc(y, 2048);
+ u[0] = 'a';
+ _aligned_free(u);
+ // CHECK: AddressSanitizer: attempting free on address which was not malloc()-ed: [[ADDR]] in thread T0
+ u = (char *)_aligned_offset_malloc(1024, 8, 2);
+ _aligned_free(u);
+
----------------
devnexen wrote:
what do you suggest to fix the linkage issue ?
https://github.com/llvm/llvm-project/pull/82049
More information about the llvm-commits
mailing list