We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7cf84 commit a8591e2Copy full SHA for a8591e2
compiler-rt/test/asan/TestCases/Windows/aligned_mallocs.cpp
@@ -30,6 +30,14 @@ int main(void) {
30
if (_aligned_msize(p, 128, 0) != 2048 * sizeof(int))
31
return __LINE__;
32
_aligned_free(p);
33
+
34
+ char *y = (char *)malloc(1024);
35
+ char *u = (char *)realloc(y, 2048);
36
+ u[0] = 'a';
37
+ _aligned_free(u);
38
+ u = (char *)_aligned_offset_malloc(1024, 8, 2);
39
40
41
char *t = (char *)_aligned_malloc(128, 8);
42
t[-1] = 'a';
43
// CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]]
0 commit comments