[compiler-rt] r357892 - [Sanitizer] Make wcrtomb test posix-only
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 8 02:13:13 PDT 2019
Author: labath
Date: Mon Apr 8 02:13:13 2019
New Revision: 357892
URL: http://llvm.org/viewvc/llvm-project?rev=357892&view=rev
Log:
[Sanitizer] Make wcrtomb test posix-only
wcrtomb is not intercepted on windows, so this test fails there. It's
not clear to me why we do not intercept this function there (I'll look
into that separately), but for now this should at least make the windows
sanitizer bot green again (broken by r357889, when I added this test).
I also add "UNSUPPORTED: android" as this function is also not
intercepted there.
Added:
compiler-rt/trunk/test/asan/TestCases/Posix/wcrtomb.c
- copied, changed from r357889, compiler-rt/trunk/test/asan/TestCases/wcrtomb.c
Removed:
compiler-rt/trunk/test/asan/TestCases/wcrtomb.c
Copied: compiler-rt/trunk/test/asan/TestCases/Posix/wcrtomb.c (from r357889, compiler-rt/trunk/test/asan/TestCases/wcrtomb.c)
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/wcrtomb.c?p2=compiler-rt/trunk/test/asan/TestCases/Posix/wcrtomb.c&p1=compiler-rt/trunk/test/asan/TestCases/wcrtomb.c&r1=357889&r2=357892&rev=357892&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/wcrtomb.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/wcrtomb.c Mon Apr 8 02:13:13 2019
@@ -1,3 +1,6 @@
+// Function not intercepted on android.
+// UNSUPPORTED: android
+
// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
#include <stdlib.h>
Removed: compiler-rt/trunk/test/asan/TestCases/wcrtomb.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/wcrtomb.c?rev=357891&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/wcrtomb.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/wcrtomb.c (removed)
@@ -1,13 +0,0 @@
-// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
-
-#include <stdlib.h>
-#include <wchar.h>
-
-int main() {
- char *buff = (char*) malloc(MB_CUR_MAX);
- free(buff);
- wcrtomb(buff, L'a', NULL);
- // CHECK: use-after-free
- // CHECK: SUMMARY
- return 0;
-}
More information about the llvm-commits
mailing list