1*673dc3d4SNico Weber // RUN: %clang_cl_asan -Od %s -Fe%t 2*673dc3d4SNico Weber // RUN: not %run %t 2>&1 | FileCheck %s 3*673dc3d4SNico Weber // REQUIRES: asan-32-bits 4*673dc3d4SNico Weber 5*673dc3d4SNico Weber #include <stdio.h> 6*673dc3d4SNico Weber 7*673dc3d4SNico Weber char bigchunk[1 << 30]; 8*673dc3d4SNico Weber main()9*673dc3d4SNico Weberint main() { 10*673dc3d4SNico Weber printf("Hello, world!\n"); 11*673dc3d4SNico Weber scanf("%s", bigchunk); 12*673dc3d4SNico Weber // CHECK-NOT: Hello, world! 13*673dc3d4SNico Weber // CHECK: Shadow memory range interleaves with an existing memory mapping. 14*673dc3d4SNico Weber // CHECK: ASan shadow was supposed to be located in the [0x2fff0000-0x{{.*}}ffff] range. 15*673dc3d4SNico Weber // CHECK: Dumping process modules: 16*673dc3d4SNico Weber // CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}shadow_mapping_failure 17*673dc3d4SNico Weber // CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}ntdll.dll 18*673dc3d4SNico Weber } 19