mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-05 12:51:16 +00:00
[ASan] Fix test cases: don't assume that fast unwinder can't unwind through libc.
llvm-svn: 227265
This commit is contained in:
parent
9ec188db33
commit
605f2df106
@ -39,15 +39,12 @@ int main() {
|
||||
return GlobalPtr[10];
|
||||
}
|
||||
|
||||
// Fast unwind: can not unwind through qsort.
|
||||
// FIXME: this test does not properly work with slow unwind yet.
|
||||
|
||||
// Fast unwind may not unwind through qsort.
|
||||
// CHECK-FAST: ERROR: AddressSanitizer: heap-buffer-overflow
|
||||
// CHECK-FAST: is located 0 bytes to the right
|
||||
// CHECK-FAST: #0{{.*}}operator new
|
||||
// CHECK-FAST-NEXT: #1{{.*}}QsortCallback
|
||||
// CHECK-FAST-NOT: MyQsort
|
||||
//
|
||||
|
||||
// CHECK-SLOW: ERROR: AddressSanitizer: heap-buffer-overflow
|
||||
// CHECK-SLOW: is located 0 bytes to the right
|
||||
// CHECK-SLOW: #0{{.*}}operator new
|
||||
|
@ -37,11 +37,9 @@ int main() {
|
||||
MyQsort(a, 2);
|
||||
}
|
||||
|
||||
// Fast unwind: can not unwind through qsort.
|
||||
|
||||
// Fast unwind may not unwind through qsort.
|
||||
// CHECK-FAST: ERROR: AddressSanitizer: global-buffer-overflow
|
||||
// CHECK-FAST: #0{{.*}} in QsortCallback
|
||||
// CHECK-FAST-NOT: MyQsort
|
||||
// CHECK-FAST: is located 0 bytes to the right of global variable 'global_array
|
||||
|
||||
// CHECK-SLOW: ERROR: AddressSanitizer: global-buffer-overflow
|
||||
|
Loading…
Reference in New Issue
Block a user