brintos

brintos / llvm-project-archived public Read only

0
0
Text · 581 B · 6e76163 Raw
19 lines · cpp
1// RUN: %clang_cl_asan %Od %s %Fe%t2// RUN: not %run %t 2>&1 | FileCheck %s3// REQUIRES: asan-32-bits4 5#include <stdio.h>6 7char bigchunk[1 << 30];8 9int main() {10  printf("Hello, world!\n");11  scanf("%s", bigchunk);12// CHECK-NOT: Hello, world!13// CHECK: Shadow memory range interleaves with an existing memory mapping.14// CHECK: ASan shadow was supposed to be located in the [0x2fff0000-0x{{.*}}ffff] range.15// CHECK: Dumping process modules:16// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}shadow_mapping_failure17// CHECK-DAG: 0x{{[0-9a-f]*}}-0x{{[0-9a-f]*}} {{.*}}ntdll.dll18}19