| OLD | NEW |
| 1 ; Verify that ASan properly catches and reports bugs | 1 ; Verify that ASan properly catches and reports bugs |
| 2 | 2 |
| 3 ; REQUIRES: no_minimal_build | 3 ; REQUIRES: no_minimal_build |
| 4 | 4 |
| 5 ; check with a one off the end local load | 5 ; check with a one off the end local load |
| 6 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ | 6 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ |
| 7 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \ | 7 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \ |
| 8 ; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck --check-prefix=LOCAL-LOAD %s | 8 ; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck --check-prefix=LOCAL-LOAD %s |
| 9 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ | 9 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ |
| 10 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols -O2 \ | 10 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols -O2 \ |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 neg_global_store: | 216 neg_global_store: |
| 217 ; Access one before the beginning of a global | 217 ; Access one before the beginning of a global |
| 218 call void @access(i32 0, i32 0, i32 -1) | 218 call void @access(i32 0, i32 0, i32 -1) |
| 219 br label %error | 219 br label %error |
| 220 error: | 220 error: |
| 221 call void @exit(i32 1) | 221 call void @exit(i32 1) |
| 222 unreachable | 222 unreachable |
| 223 } | 223 } |
| 224 | 224 |
| 225 ; LOCAL-LOAD: Illegal 1 byte load from stack object at | 225 ; LOCAL-LOAD: Illegal 1 byte load from stack object at |
| 226 ; LOCAL-LOAD-NEXT: address of __asan_error symbol is |
| 226 ; LOCAL-STORE: Illegal 1 byte store to stack object at | 227 ; LOCAL-STORE: Illegal 1 byte store to stack object at |
| 228 ; LOCAL-STORE-NEXT: address of __asan_error symbol is |
| 227 ; GLOBAL-LOAD: Illegal 1 byte load from global object at | 229 ; GLOBAL-LOAD: Illegal 1 byte load from global object at |
| 230 ; GLOBAL-LOAD-NEXT: address of __asan_error symbol is |
| 228 ; GLOBAL-STORE: Illegal 1 byte store to global object at | 231 ; GLOBAL-STORE: Illegal 1 byte store to global object at |
| 232 ; GLOBAL-STORE-NEXT: address of __asan_error symbol is |
| OLD | NEW |