| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[NFC][Py Reformat] Reformat python files in the rest of the dirs This is an ongoing series of commits that are reformatting our Python code. This catches the last of the python files to reformat. Since they where so few I bunched them together. Reformatting is done with black. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: jhenderson, #libc, Mordante, sivachandra Differential Revision: https://reviews.llvm.org/D150784 | 3 年前 | |
[ASan] Make duplicate_os_log_reports.cpp work with the internal shell This test used a for loop to implement retries and also did some trickery with PIDs. For this test, just invoke bash for actually running the test given we need the PID, and move the for loop into a separate shell script file that we can then invoke from within the test. Normally it would make sense to rewrite such a script in Python, but given this test does not have portability concerns only running on Darwin, it is fine to use a shell script here given there is no other convenient alternative. Reviewers: ndrewh, DanBlackwell, fmayer Reviewed By: ndrewh Pull Request: https://github.com/llvm/llvm-project/pull/168656 | 9 个月前 | |
[test][asan] Check for order of DynInitPoison (#101584) Also make sure we have dynamic init variables with any -O. | 2 年前 | |
[compiler-rt] Update test to export variables instead of using env To work around a bug in lit's internal test runner around ulimit. Commands that use env to set environment variables for that command do not have limits applied to them. This needs to be fixed, but for now we can work around without degrading the readability of the test too much. | 9 个月前 | |
Revert "[Sanitizers][Test] XFAIL suppressions/fread_fwrite (#154189)" (#165751) The macOS platform where test failures occured was updated to a newer version - these tests now pass, so undoing XFAIL rdar://163149340 This reverts commit 4dc32df3ca0a937ffb6052a40170fcc318330fd9. Co-authored-by: Mariusz Borsa <m_borsa@apple.com> | 9 个月前 | |
Remove non-standard use of std::exception in compiler-rt/test/asan/TestCases/Windows/basic_exception_handling.cpp (#164137) **Follow up to:** #159618 **Context** The linked PR ^ introduced a new test to ensure that ASan on Windows no longer instruments catch-parameters. This test used a non-standard constructor of std::exception,one that accepted strings as their input, which _somehow_ passed the PR CI but would fail to compile on mingw with libc++. This was originally reported by @mstorsjo, in this comment: This testcase fails to compile in mingw environments, with libc++ as a C++ standard library - https://github.com/mstorsjo/llvm-mingw/actions/runs/18608410056/job/53074081871: D:\a\llvm-mingw\llvm-mingw\llvm-project\compiler-rt\test\asan\TestCases\Windows\basic_exception_handling.cpp:11:32: error: no matching conversion for functional-style cast from 'const char[6]' to 'std::exception' 11 | void throwInFunction() { throw std::exception("test2"); } | ^~~~~~~~~~~~~~~~~~~~~~~ C:/llvm-mingw/include/c++/v1/__exception/exception.h:75:25: note: candidate constructor not viable: no known conversion from 'const char[6]' to 'const exception' for 1st argument 75 | _LIBCPP_HIDE_FROM_ABI exception(const exception&) _NOEXCEPT = default; | ^ ~~~~~~~~~~~~~~~~ C:/llvm-mingw/include/c++/v1/__exception/exception.h:74:25: note: candidate constructor not viable: requires 0 arguments, but 1 was provided 74 | _LIBCPP_HIDE_FROM_ABI exception() _NOEXCEPT {} | ^ D:\a\llvm-mingw\llvm-mingw\llvm-project\compiler-rt\test\asan\TestCases\Windows\basic_exception_handling.cpp:16:11: error: no matching conversion for functional-style cast from 'const char[6]' to 'std::exception' 16 | throw std::exception("test1"); | ^~~~~~~~~~~~~~~~~~~~~~~ C:/llvm-mingw/include/c++/v1/__exception/exception.h:75:25: note: candidate constructor not viable: no known conversion from 'const char[6]' to 'const exception' for 1st argument 75 | _LIBCPP_HIDE_FROM_ABI exception(const exception&) _NOEXCEPT = default; | ^ ~~~~~~~~~~~~~~~~ C:/llvm-mingw/include/c++/v1/__exception/exception.h:74:25: note: candidate constructor not viable: requires 0 arguments, but 1 was provided 74 | _LIBCPP_HIDE_FROM_ABI exception() _NOEXCEPT {} | ^ 2 errors generated. Looking at https://en.cppreference.com/w/cpp/error/exception/exception.html, I don't see any std::exception constructor taking a const char* parameter. _from:_ https://github.com/llvm/llvm-project/pull/159618#issuecomment-3418802209 **This PR** adjusts the faulty test case to rely on std::runtime_error, which contains a standard constructor accepting a string. This should suffice to make the test pass on mingw. I tested this on godbolt: https://godbolt.org/z/M4hPv5Wvx | 10 个月前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Fix some small typos in compiler-rt. NFC (#133388) | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[GCOV] Skip artificial functions from being emitted This is a patch to support D66328, which was reverted until this lands. Enable a compiler-rt test that used to fail previously with D66328. Differential Revision: https://reviews.llvm.org/D67283 | 6 年前 | |
[asan][test] Disable asan_lsan_deadlock test (#141145) While the current test exercised the deadlock behavior prior to #131756, deadlock still can occur intermittently. Since this results in test flakes in CI, we disable this test until the locking behavior can be fixed in the runtime. See #140646 for details. | 1 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[lsan][lsan] Use --std=c++14 to fix Windows test | 5 年前 | |
[sanitizer][win] Fix Atexit() on MinGW asan_dynamic runtime Some functions of asan depends on Atexit() handlers. On Windows, this is implemented in ad3ec82bb1c7217b0187a1e16bb22642e194ce94 to queue the handlers in a vector then register them with atexit() only after the CRT is fully initialized. However, this is broken on MinGW with asan_dynamic runtime due to different initialization order. This change fixes the issue by making sure that Atexit() can call atexit() directly past the pre-initialization phase. This fixes two asan test cases on MinGW. Differential Revision: https://reviews.llvm.org/D147413 | 3 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
[asan] Intercept atoll and strtoll on Windows _MSC_VER>=1800 (Visual Studio 2013) supports atoll/strtoll. Remove the obsoleted workaround ASAN_INTERCEPT_ATOLL_AND_STRTOLL. test/asan/TestCases/atoll_strict.c passes but test/asan/TestCases/strtoll_strict.c doesn't. | 2 年前 | |
ASan: fix potential use-after-free in backtrace interceptor Various ASan interceptors may corrupt memory if passed a pointer to freed memory (https://github.com/google/sanitizers/issues/321). This patch fixes the issue for the backtrace interceptor, by calling REAL(backtrace) with a known-good scratch buffer, and performing an addressability check on the user-provided buffer prior to writing to it. Differential Revision: https://reviews.llvm.org/D150496 | 3 年前 | |
ASan: unbreak Windows build by limiting backtrace* tests to glibc My newly added backtrace test (https://reviews.llvm.org/D150491) broke the Windows buildbot (https://lab.llvm.org/buildbot/#/builders/127/builds/48103) because they do not have execinfo.h. I expect the same will happen with the backtrace_symbols test (https://reviews.llvm.org/D150498) as well. This patch does a quick fix by restricting the test scope to glibc-2.27. (A tricker fix would take into account SANITIZER_INTERCEPT_BACKTRACE, which is defined as (SI_FREEBSD || SI_NETBSD || SI_GLIBC || SI_SOLARIS)) | 3 年前 | |
Revert "[asan] Make frame number checks more flexable (#94307)" It broke tests on Mac, see comment on the PR. > Use more flexable regex ([0-9]+) for frame number checks. Since the > frame numbers might change if some functions are not inlined. > > Similar to > * > https://github.com/llvm/llvm-project/commit/0360f3218a13666123849f6699216bdbebe64833 > * > https://github.com/llvm/llvm-project/commit/404bc5ca2ae5fffa45d5240dcf52b7f134988867 This reverts commit 98174fb6ec9784d9eb7be313ee1317ca6e703d90 and the follow-up commit 86d8aec97fd9e009e9b360ffeee744d3acce730d. | 2 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][ASan] Remove alignment message in ASan error reporting (#94103) This commit removes unnecessary alignment check and message in ASan error reporting functions (like ErrorBadParamsToAnnotateContiguousContainer::Print()), as alignment is no longer required starting from LLVM 16. Without that commit, this message can be observed only when arguments are truly incorrect and beg is unaligned. Just unaligned beg does not result in any message being printed. Related commits: - https://github.com/llvm/llvm-project/commit/dd1b7b797a116eed588fd752fbe61d34deeb24e4 - https://github.com/llvm/llvm-project/commit/1c5ad6d2c01294a0decde43a88e9c27d7437d157 | 2 年前 | |
[compiler-rt][ASan] Add function copying annotations (#91702) This PR adds a __sanitizer_copy_contiguous_container_annotations function, which copies annotations from one memory area to another. New area is annotated in the same way as the old region at the beginning (within limitations of ASan). Overlapping case: The function supports overlapping containers, however no assumptions should be made outside of no false positives in new buffer area. (It doesn't modify old container annotations where it's not necessary, false negatives may happen in edge granules of the new container area.) I don't expect this function to be used with overlapping buffers, but it's designed to work with them and not result in incorrect ASan errors (false positives). If buffers have granularity-aligned distance between them (old_beg % granularity == new_beg % granularity), copying algorithm works faster. If the distance is not granularity-aligned, annotations are copied byte after byte. cpp void __sanitizer_copy_contiguous_container_annotations( const void *old_storage_beg_p, const void *old_storage_end_p, const void *new_storage_beg_p, const void *new_storage_end_p) { This function aims to help with short string annotations and similar container annotations. Right now we change trait types of std::basic_string when compiling with ASan and this function purpose is reverting that change as soon as possible. https://github.com/llvm/llvm-project/blob/87f3407856e61a73798af4e41b28bc33b5bf4ce6/libcxx/include/string#L738-L751 The goal is to not change __trivially_relocatable when compiling with ASan. If this function is accepted and upstreamed, the next step is creating a function like __memcpy_with_asan moving memory with ASan. And then using this function instead of __builtin__memcpy while moving trivially relocatable objects. https://github.com/llvm/llvm-project/blob/11a6799740f824282650aa9ec249b55dcf1a8aae/libcxx/include/__memory/uninitialized_algorithms.h#L644-L646 --- I'm thinking if there is a good way to address fact that in a container the new buffer is usually bigger than the previous one. We may add two more arguments to the functions to address it (the beginning and the end of the whole buffer. Another potential change is removing new_storage_end_p as it's redundant, because we require the same size. Potential future work is creating a function __asan_unsafe_memmove, which will be basically memmove, but with turned off instrumentation (therefore it will allow copy data from poisoned area). --------- Co-authored-by: Vitaly Buka <vitalybuka@google.com> | 1 年前 | |
[asan] More leaks in test It fails to detect a single leak with GLIBC 2.34. | 4 年前 | |
[compiler-rt][NFC]Fix Wdeprecated warnings for fsanitize-coverage A few testcases are still using deprecated options. warning: argument '-fsanitize-coverage=[func|bb|edge]' is deprecated, use '-fsanitize-coverage=[func|bb|edge],[trace-pc-guard|trace-pc]' instead [-Wdeprecated] Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D79741 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Reland [asan][windows] Eliminate the static asan runtime on windows (#107899) This reapplies 8fa66c6ca7272268747835a0e86805307b62399c ([asan][windows] Eliminate the static asan runtime on windows) for a second time. That PR bounced off the tests because it caused failures in the other sanitizer runtimes, these have been fixed by only building interception, sanitizer_common, and asan with /MD, and continuing to build the rest of the runtimes with /MT. This does mean that any usage of the static ubsan/fuzzer/etc runtimes will mean you're mixing different runtime library linkages in the same app, the interception, sanitizer_common, and asan runtimes are designed for this, however it does result in some linker warnings. Additionally, it turns out when building in release-mode with LLVM_ENABLE_PDBs the build system forced /OPT:ICF. This totally breaks asan's "new" method of doing "weak" functions on windows, and so /OPT:NOICF was explicitly added to asan's link flags. --------- Co-authored-by: Amy Wishnousky <amyw@microsoft.com> | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[NFC][asan] Use %p to print addresses (#98575) Co-authored-by: vporpo <vporpodas@google.com> | 2 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
Reland [asan][windows] Eliminate the static asan runtime on windows (#107899) This reapplies 8fa66c6ca7272268747835a0e86805307b62399c ([asan][windows] Eliminate the static asan runtime on windows) for a second time. That PR bounced off the tests because it caused failures in the other sanitizer runtimes, these have been fixed by only building interception, sanitizer_common, and asan with /MD, and continuing to build the rest of the runtimes with /MT. This does mean that any usage of the static ubsan/fuzzer/etc runtimes will mean you're mixing different runtime library linkages in the same app, the interception, sanitizer_common, and asan runtimes are designed for this, however it does result in some linker warnings. Additionally, it turns out when building in release-mode with LLVM_ENABLE_PDBs the build system forced /OPT:ICF. This totally breaks asan's "new" method of doing "weak" functions on windows, and so /OPT:NOICF was explicitly added to asan's link flags. --------- Co-authored-by: Amy Wishnousky <amyw@microsoft.com> | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan][windows] Make tests more flexable (#85274) Contains test changes from https://github.com/llvm/llvm-project/pull/81677 that are simple test changes. For the most part just makes the tests allow more flexibility in the callstacks produced by asan. Note: this PR has the exact changes from https://github.com/llvm/llvm-project/pull/81677 in addition to a revert commit to remove the ones that require other things from that PR. This will be squashed, ofc. I just left things unsquashed for reviewing pleasure :). This is a non-functional-change | 2 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Fix-forward ASan on Windows. D127911 deleted llvm.asan.globals. This had a side effect that we no longer generated the name field for the __asan_global descriptor from clang's decscription of the name, but the demangled name from the LLVM IR. On Linux, this is the same as the clang-provided name. On Windows, this includes the type, as the name in the IR is the mangled name. Attempt #1 to fix-forward the Windows bots by making the tests glob both sides of the global name, thereby allowing types in the descriptor name. | 4 年前 | |
[ASAN] Disable broken __SANITIZER_DISABLE_CONTAINER_OVERFLOW__ tests on iOS/Android (#168821) The tests added by #163468 appear to be broken due to lack of libcxx support (?). Marking unsupported everywhere for now since it passes on some platforms and fails on others, and I don't know the full list. Android fail: https://lab.llvm.org/buildbot/#/builders/186/builds/14106 | 9 个月前 | |
Revert "[asan] Make frame number checks more flexable (#94307)" It broke tests on Mac, see comment on the PR. > Use more flexable regex ([0-9]+) for frame number checks. Since the > frame numbers might change if some functions are not inlined. > > Similar to > * > https://github.com/llvm/llvm-project/commit/0360f3218a13666123849f6699216bdbebe64833 > * > https://github.com/llvm/llvm-project/commit/404bc5ca2ae5fffa45d5240dcf52b7f134988867 This reverts commit 98174fb6ec9784d9eb7be313ee1317ca6e703d90 and the follow-up commit 86d8aec97fd9e009e9b360ffeee744d3acce730d. | 2 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Poison unused tail of FakeFrame (#133689) Fix [issue#133640](https://github.com/llvm/llvm-project/issues/133640) | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt] change write order of frexpl & frexpf so it doesn't corrupt stack ids This was fixed in the past for frexp, but was not made for frexpl & frexpf https://github.com/google/sanitizers/issues/321 This patch copies the fix over to frexpl because it caused frexp_interceptor.cpp test to fail on iPhone and frexpf for consistency. rdar://79652161 Reviewed By: delcypher, vitalybuka Differential Revision: https://reviews.llvm.org/D104948 | 5 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[asan] Fix tests broken by r312858 llvm-svn: 312872 | 8 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[ASan][test] XFAIL global-overflow.cpp etc. on SPARC (#108200) When enabling ASan testing on SPARC as per PR #107405, two tests FAIL in similar ways as detailed in Issue #108194: at -O1 and above, one line of the stacktrace lacks the line number info, causing the tests to FAIL. I could trace this to clang generating incomplete line number info; g++ gets this right. To avoid this, this patch XFAILs the affected tests on SPARC. Tested on sparcv9-sun-solaris2.11. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan] Enable detect_stack_use_after_return=1 by default By default -fsanitize=address already compiles with this check, why not use it. For compatibly it can be disabled with env ASAN_OPTIONS=detect_stack_use_after_return=0. Reviewed By: eugenis, kda, #sanitizers, hans Differential Revision: https://reviews.llvm.org/D124057 | 4 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[asan] Disable test on iOS Fails on Darwin (probably iOS) bots after #104730. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Update compiler-rt cpplint.py https://github.com/cpplint/cpplint/commit/adb3500107f409ac5491188ae652ac3f4d03d9d3 llvm-svn: 371675 | 6 年前 | |
[clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= Use that for internal names (including the default ignorelists of the sanitizers). Differential Revision: https://reviews.llvm.org/D101832 | 5 年前 | |
Revert ""Reland "[asan] Remove debug tracing from report_globals (#104404)"" (#105926) Reverts llvm/llvm-project#105895 Still breaks the test https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/1864/ | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan] Enable detect_stack_use_after_return=1 by default By default -fsanitize=address already compiles with this check, why not use it. For compatibly it can be disabled with env ASAN_OPTIONS=detect_stack_use_after_return=0. Reviewed By: eugenis, kda, #sanitizers, hans Differential Revision: https://reviews.llvm.org/D124057 | 4 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan] Try to deflake the test 10000000 unlikely uncovers new cases in the code, but probably causing OOM before leak detection. | 1 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
[compiler-rt][sanitizers] Mark three tests as unsupported on Android These tests were already XFailed on Android, but are unresolved when running under the internal shell rather than failing due to missing file paths, which is likely the same reason they are xfailed. This does make it slightly worse if someone accidentally fixes these tests for Android without realizing it, but the alternative is likely fixing the functionality/test on Android. Reviewers: vitalybuka, eugenis, thurstond, fmayer Reviewed By: fmayer Pull Request: https://github.com/llvm/llvm-project/pull/166639 | 9 个月前 | |
[NFC][sanitizer] Remove calls to __asan_get_current_fake_stack Unnecessary with -fsanitize-address-use-after-return=never. for issue: https://github.com/google/sanitizers/issues/1394 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D104154 | 5 年前 | |
[asan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
Revert "[asan] Make frame number checks more flexable (#94307)" It broke tests on Mac, see comment on the PR. > Use more flexable regex ([0-9]+) for frame number checks. Since the > frame numbers might change if some functions are not inlined. > > Similar to > * > https://github.com/llvm/llvm-project/commit/0360f3218a13666123849f6699216bdbebe64833 > * > https://github.com/llvm/llvm-project/commit/404bc5ca2ae5fffa45d5240dcf52b7f134988867 This reverts commit 98174fb6ec9784d9eb7be313ee1317ca6e703d90 and the follow-up commit 86d8aec97fd9e009e9b360ffeee744d3acce730d. | 2 年前 | |
Revert "[asan][win][msvc] override new and delete and seperate TUs (#68754)" This reverts commit 481e9b3e0b9c0a6843261f060822c7a41387e28c. Breaks sanitizer bots: https://lab.llvm.org/buildbot/#/builders/127/builds/59071 | 2 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[Asan] Loose call stack CHECK conditions These test cases are checking specific functions in call stacks. But if the call stack order is changed (e.g. another function is not inlined), the frame number would be different. This patch loose the frame number checks for those conditions. Depends on D139827 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D152991 | 3 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
Limit ASan non-executable-pc test case to x86 bots The test case fails on the big-endian PPC bot, probably because PowerPC uses function descriptors. More over other architectures don't support NX mappings. (This test case was not being exercised prior to r336633.) llvm-svn: 336714 | 7 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Reland [asan][windows] Eliminate the static asan runtime on windows (#107899) This reapplies 8fa66c6ca7272268747835a0e86805307b62399c ([asan][windows] Eliminate the static asan runtime on windows) for a second time. That PR bounced off the tests because it caused failures in the other sanitizer runtimes, these have been fixed by only building interception, sanitizer_common, and asan with /MD, and continuing to build the rest of the runtimes with /MT. This does mean that any usage of the static ubsan/fuzzer/etc runtimes will mean you're mixing different runtime library linkages in the same app, the interception, sanitizer_common, and asan runtimes are designed for this, however it does result in some linker warnings. Additionally, it turns out when building in release-mode with LLVM_ENABLE_PDBs the build system forced /OPT:ICF. This totally breaks asan's "new" method of doing "weak" functions on windows, and so /OPT:NOICF was explicitly added to asan's link flags. --------- Co-authored-by: Amy Wishnousky <amyw@microsoft.com> | 1 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
[asan] Convert more tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
[sanitizer] Replace -mllvm -asan-use-after-return in compile-rt tests with -fsanitize-address-use-after-return (NFC) for issue: https://github.com/google/sanitizers/issues/1394 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D104146 | 5 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[asan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
| 2 年前 | ||
[asan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[Sanitizers] Error out for -static-libsan on darwin Differential Revision: https://reviews.llvm.org/D144672 | 3 年前 | |
[Sanitizers] Error out for -static-libsan on darwin Differential Revision: https://reviews.llvm.org/D144672 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
test: filter out -fPIE/-pie on Windows Use some new substitutions to avoid duplicating the tests for just dropped flags. -fPIC/-fPIE/-fpic/-fpie do not make sense on Windows as they can cause ELF-style PIC. Substitute away the flag on Windows. This should repair the windows buildbots. llvm-svn: 290571 | 9 年前 | |
[ASan] Make tests work with internal shell Some minor adjustmenets around environment variables to make a handful of tests work with the internal shell that did not before. Reviewers: fmayer, alexander-shaposhnikov Reviewed By: fmayer, alexander-shaposhnikov Pull Request: https://github.com/llvm/llvm-project/pull/165141 | 9 个月前 | |
[ASAN] Don't inline when -asan-max-inline-poisoning-size=0 When -asan-max-inline-poisoning-size=0, all shadow memory access should be outlined (through asan calls). This was not occuring when partial poisoning was required on the right side of a variable's redzone. This diff contains the changes necessary to implement and utilize __asan_set_shadow_01() through __asan_set_shadow_07(). The change is necessary for the full abstraction of the asan implementation and will enable experimentation with alternate strategies. Differential Revision: https://reviews.llvm.org/D136197 | 3 年前 | |
[ASan] Fix shadowed-stack-serialization test on targets with different stack layout | 1 年前 | |
[ASan] Add sleep_before_init flag Also do a little bit of refactoring instead of just copy&paste. Differential Revision: https://reviews.llvm.org/D126037 | 4 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt] [test] Generalize an UNSUPPORTED marking (#168858) Don't specifically target windows-msvc - the same goes for any windows target; mingw doesn't have dlfcn.h either. | 9 个月前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
[ASan][Test-Only] Allow read of size 2 in strcmp.c test (#166179) Occasionally this test fails on Darwin due to CHECK: READ of size 1 not matching the actual output CHECK: READ of size 2. This can happen when the memory before the string s1 happens to match the first character of s2. This patch allows for READ of size 2 to pass in order to account for the above circumstances. rdar://151317947 | 9 个月前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
Revert "[asan] Make frame number checks more flexable (#94307)" It broke tests on Mac, see comment on the PR. > Use more flexable regex ([0-9]+) for frame number checks. Since the > frame numbers might change if some functions are not inlined. > > Similar to > * > https://github.com/llvm/llvm-project/commit/0360f3218a13666123849f6699216bdbebe64833 > * > https://github.com/llvm/llvm-project/commit/404bc5ca2ae5fffa45d5240dcf52b7f134988867 This reverts commit 98174fb6ec9784d9eb7be313ee1317ca6e703d90 and the follow-up commit 86d8aec97fd9e009e9b360ffeee744d3acce730d. | 2 年前 | |
[windows] Fix or XFAIL remaining portable test failures and enable them Summary: This involved various fixes: - Move a test that uses ulimit to Posix. - Add a few "REQUIRES: shell" lines to tests using backtick subshell evaluation. - The MSVC CRT buffers stdio if the output is a pipe by default. Some tests need that disabled to avoid interleaving test stdio with asan output. - MSVC headers provide _alloca instead of alloca (go figure), so add a portability macro to the two alloca tests. - XFAIL tests that rely on accurate symbols, we need to pass more flags to make that work. - MSVC's printf implementation of %p uses upper case letters and doesn't add 0x, so do that manually. - Accept "SEGV" or "access-violation" reports in crash tests. Reviewers: samsonov Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D12019 llvm-svn: 245073 | 10 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
Fix accidental use of VLAs that causes these tests to fail after Clang commit 552c6c2328723a248c2b4d2765f75d49129dff20. | 5 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' Summary: The lit internal shell is used by default on Windows, and it does not support bash variable expansion. Because bash variable expansion interacts with tokenization, it is prohibitively difficult to make the existing lit shell do general shell variable expansion. The most common use of shell variables in the asan tests is to add options to the default set of options set by lit.cfg. We can avoid the need for variable expansion with a substitution that expands to 'env ASAN_OPTIONS=<defaults:>'. This has the side benefit of shortening the RUN lines, so it seemed better than implementing limited variable expansion in lit. Reviewers: samsonov, filcab Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11982 llvm-svn: 244839 | 10 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
[asan] Support line numbers in StackVarDescr When -fsanitize-address-use-after-scope is used, the instrumentation produces line numbers in stack frame descriptions. This patch make sure the ASan runtime supports this format (ParseFrameDescription needs to be able to parse "varname:line") and prepares lit tests to allow line numbers in ASan report output. Differential Revision: https://reviews.llvm.org/D31484 llvm-svn: 299043 | 9 年前 | |
[asan] Convert tests to check 'target=...' Part of the project to eliminate special handling for triples in lit expressions. | 3 年前 | |
Fix the typo in strtok.c testcase: There was a missing space in %run expansion. llvm-svn: 301451 | 9 年前 | |
[win/asan] Ensure errno gets set correctly for strtol (#109258) This fixes two problems with asan's interception of strtol on Windows: 1. In the dynamic runtime, the strtol interceptor calls out to ntdll's strtol to perform the string conversion. Unfortunately, that function doesn't set errno. This has been a long-standing problem (#34485), but it was not an issue when using the static runtime. After the static runtime was removed recently (#107899), the problem became more urgent. 2. A module linked against the static CRT will have a different instance of errno than the ASan runtime, since that's now always linked against the dynamic CRT. That means even if the ASan runtime sets errno correctly, the calling module will not see it. This patch fixes the first problem by making the strtol interceptor call out to strtoll instead, and do 32-bit range checks on the result. I can't think of any reasonable way to fix the second problem, so we should stop intercepting strtol in the static runtime thunk. I checked the list of functions in the thunk, and strtol and strtoll are the only ones that set errno. (strtoll was already missing, probably by mistake.) | 1 年前 | |
[compiler-rt] [test] Adjust an XFAIL for strtoll_strict.c for MinGW targets 8033231240f223dc7c718d1d27ece2dbcc8057c6 made this test pass in MinGW environments, even if it still is failing in MSVC environments. | 2 年前 | |
| 1 年前 | ||
[asan][android] XFAIL suppressions-alloc-dealloc-mismatch Android is missing suppression file on device. Follow up to #124197. | 1 年前 | |
| 1 年前 | ||
[asan][android] XFAIL suppressions-alloc-dealloc-mismatch Android is missing suppression file on device. Follow up to #124197. | 1 年前 | |
Reapply "[compiler-rt] Remove %T from shared object substitutions (#155302)" This reverts commit 05e31438ac9491cfc72c48664480796de874c860. There was quite a bit of churn with this patch, everytime related to the executable no longer being in the same directory as the shared objects. This reland ensures that all of the executables in the tests touched are in the same directory as the shared objects in the substitutions. | 11 个月前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[asan][test] Fix tests or mark XFAIL for MinGW target After this change, check-asan-dynamic should pass on x86_64 MinGW target, using the llvm-mingw toolchain. The following is a list of issues fixed: * asan_str_test.cpp: Exclude unintercepted functions on MinGW. * asan_test.cpp: Work around regex limitation of gtest on Windows, which only affects MinGW target because long double has different size to double. * TestCases/Windows/report_after_syminitialize.cpp: Added build command specifically for MinGW. * Other tests: Mark XFAIL for various reasons. Some of them need further investigation. Differential Revision: https://reviews.llvm.org/D147059 | 3 年前 | |
[sanitizer] Replace -mllvm -asan-use-after-return in compile-rt tests with -fsanitize-address-use-after-return (NFC) for issue: https://github.com/google/sanitizers/issues/1394 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D104146 | 5 年前 | |
[ASan] rename left/right to before/after. left/right is a weird way to refer to address ordering. Reviewed By: eugenis, MaskRay Differential Revision: https://reviews.llvm.org/D132611 | 3 年前 | |
Revert "[asan][win][msvc] override new and delete and seperate TUs (#68754)" This reverts commit 481e9b3e0b9c0a6843261f060822c7a41387e28c. Breaks sanitizer bots: https://lab.llvm.org/buildbot/#/builders/127/builds/59071 | 2 年前 | |
Revert "[asan] Make frame number checks more flexable (#94307)" It broke tests on Mac, see comment on the PR. > Use more flexable regex ([0-9]+) for frame number checks. Since the > frame numbers might change if some functions are not inlined. > > Similar to > * > https://github.com/llvm/llvm-project/commit/0360f3218a13666123849f6699216bdbebe64833 > * > https://github.com/llvm/llvm-project/commit/404bc5ca2ae5fffa45d5240dcf52b7f134988867 This reverts commit 98174fb6ec9784d9eb7be313ee1317ca6e703d90 and the follow-up commit 86d8aec97fd9e009e9b360ffeee744d3acce730d. | 2 年前 | |
Revert "[asan] Make frame number checks more flexable (#94307)" It broke tests on Mac, see comment on the PR. > Use more flexable regex ([0-9]+) for frame number checks. Since the > frame numbers might change if some functions are not inlined. > > Similar to > * > https://github.com/llvm/llvm-project/commit/0360f3218a13666123849f6699216bdbebe64833 > * > https://github.com/llvm/llvm-project/commit/404bc5ca2ae5fffa45d5240dcf52b7f134988867 This reverts commit 98174fb6ec9784d9eb7be313ee1317ca6e703d90 and the follow-up commit 86d8aec97fd9e009e9b360ffeee744d3acce730d. | 2 年前 | |
[asan] Fix-forward #133175 by restricting newly-added tests to Linux This was failing on Mac (https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/4107/ and https://issues.chromium.org/issues/409995888). Since this is an experimental feature, rather than play whack-a-mole with selectively disabling failing platforms (previously done for Android), this patch restricts it to Linux. | 1 年前 | |
[asan] Fix-forward #133175 by restricting newly-added tests to Linux This was failing on Mac (https://green.lab.llvm.org/job/llvm.org/job/clang-stage1-RA/4107/ and https://issues.chromium.org/issues/409995888). Since this is an experimental feature, rather than play whack-a-mole with selectively disabling failing platforms (previously done for Android), this patch restricts it to Linux. | 1 年前 | |
compiler-rt: Rename cc files below test/asan to cpp See r367803 and similar other changes. llvm-svn: 367887 | 6 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[test][asan] Remove -fsanitize-address-use-after-scope It's enabled by default in D31479. | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[test][asan] Remove -fsanitize-address-use-after-scope It's enabled by default in D31479. | 3 年前 | |
[test][asan] Remove -fsanitize-address-use-after-scope It's enabled by default in D31479. | 3 年前 | |
[ASan] Add metadata to renamed instructions so ASan doesn't use the i… (#119387) …ncorrect name Clang needs variables to be represented with unique names. This means that if a variable shadows another, its given a different name internally to ensure it has a unique name. If ASan tries to use this name when printing an error, it will print the modified unique name, rather than the variable's source code name Fixes #47326 | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[test][asan] Remove -fsanitize-address-use-after-scope It's enabled by default in D31479. | 3 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[test][asan] Remove -fsanitize-address-use-after-scope It's enabled by default in D31479. | 3 年前 | |
[compiler-rt][sanitizers] Mark three tests as unsupported on Android These tests were already XFailed on Android, but are unresolved when running under the internal shell rather than failing due to missing file paths, which is likely the same reason they are xfailed. This does make it slightly worse if someone accidentally fixes these tests for Android without realizing it, but the alternative is likely fixing the functionality/test on Android. Reviewers: vitalybuka, eugenis, thurstond, fmayer Reviewed By: fmayer Pull Request: https://github.com/llvm/llvm-project/pull/166639 | 9 个月前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][windows] Test fixups for MSVC. (#109887) - add XFAIL/UNSUPPORTED annotations for tests run wtih real MSVC - macroify usages of clang-specific attributes in asan tests - Add substitution for /Oy-/-fno-omit-frame-pointer This makes the dll_intercept_memset test work with mingw These are most of the changes that are required to get things running with MSVC, however there are some remaining build-flag tweaks. Nothing in here should be a functional change. | 1 年前 | |
[compiler-rt][asan][test] Make wchar tests more robust (#163715) The stack buffer which is used to trigger out of bounds issue doesn't have obervable side effects, so it can easily be optimized by compiler as dead code. Signed-off-by: Maosu Zhao <maosu.zhao@intel.com> | 10 个月前 | |
[compiler-rt][asan][test] Make wchar tests more robust (#163715) The stack buffer which is used to trigger out of bounds issue doesn't have obervable side effects, so it can easily be optimized by compiler as dead code. Signed-off-by: Maosu Zhao <maosu.zhao@intel.com> | 10 个月前 | |
[compiler-rt][asan][test] Make wchar tests more robust (#163715) The stack buffer which is used to trigger out of bounds issue doesn't have obervable side effects, so it can easily be optimized by compiler as dead code. Signed-off-by: Maosu Zhao <maosu.zhao@intel.com> | 10 个月前 | |
[compiler-rt][asan][test] Make wchar tests more robust (#163715) The stack buffer which is used to trigger out of bounds issue doesn't have obervable side effects, so it can easily be optimized by compiler as dead code. Signed-off-by: Maosu Zhao <maosu.zhao@intel.com> | 10 个月前 | |
[asan] Fixed test failing on windows due to different printf behaviour. %p reported prints upper case hex chars on Windows. The fix is to switch to using %#lx Differential Revision: https://reviews.llvm.org/D98570 | 5 年前 | |
[asan] Change zero_alloc.cpp testcase to use stdlib.h, re-enable on Mac (#156490) Avoid build breakage on Mac (reported at https://github.com/llvm/llvm-project/pull/155943#issuecomment-3244593484) | 11 个月前 | |
Unsupported zero_page_pc on iOS. (#137893) | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 年前 | ||
| 9 个月前 | ||
| 2 年前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 10 个月前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 10 年前 | ||
| 10 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 9 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 8 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 9 个月前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 7 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 10 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 3 年前 | ||
| 6 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 9 年前 | ||
| 9 个月前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 9 个月前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 10 年前 | ||
| 10 年前 | ||
| 9 个月前 | ||
| 10 年前 | ||
| 1 年前 | ||
| 9 年前 | ||
| 9 年前 | ||
| 10 年前 | ||
| 2 年前 | ||
| 10 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 10 年前 | ||
| 5 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 9 年前 | ||
| 9 年前 | ||
| 10 年前 | ||
| 9 年前 | ||
| 9 年前 | ||
| 10 年前 | ||
| 9 年前 | ||
| 9 年前 | ||
| 3 年前 | ||
| 9 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 5 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 6 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 10 个月前 | ||
| 10 个月前 | ||
| 10 个月前 | ||
| 10 个月前 | ||
| 5 年前 | ||
| 11 个月前 | ||
| 1 年前 |