[asan] Update tests for r208290.
sprintf output buffer is now always sanitized. llvm-svn: 208291
This commit is contained in:
parent
d31ac26230
commit
5ee9fd5f45
|
|
@ -2,7 +2,6 @@
|
||||||
// We need replace_str=0 and replace_intrin=0 to avoid reporting errors in
|
// We need replace_str=0 and replace_intrin=0 to avoid reporting errors in
|
||||||
// strlen() and memcpy() called by puts().
|
// strlen() and memcpy() called by puts().
|
||||||
// RUN: ASAN_OPTIONS=replace_str=0:replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
|
// RUN: ASAN_OPTIONS=replace_str=0:replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
|
||||||
// RUN: ASAN_OPTIONS=replace_str=0:replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s
|
|
||||||
// RUN: ASAN_OPTIONS=replace_str=0:replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
|
// RUN: ASAN_OPTIONS=replace_str=0:replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
@ -18,5 +17,4 @@ int main() {
|
||||||
// Check that size of output buffer is sanitized.
|
// Check that size of output buffer is sanitized.
|
||||||
// CHECK-ON: stack-buffer-overflow
|
// CHECK-ON: stack-buffer-overflow
|
||||||
// CHECK-ON-NOT: 0 12 1.239 34
|
// CHECK-ON-NOT: 0 12 1.239 34
|
||||||
// CHECK-OFF: 0 12 1.239 34
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue