summaryrefslogtreecommitdiff
path: root/test/sanitizer_common
Commit message (Collapse)AuthorAgeFilesLines
...
* [Sanitizer] iOS: Pull up parallelism_group handling into common.lit.configJulian Lettner2019-02-151-2/+0
| | | | | | | | | | | | | | | | | | | Serial execution on iOS devices is not specific to sanitizers. We want to throttle all on-device tests. Pull the setting of the parallelism_group up into the common lit configuration file. Rename `darwin-ios-device-sanitizer` to `ios-device`. This group is not specific to sanitizers and (theoretically) independent from the host OS. Note that we don't support running unit tests on-device (there are no configurations generated for that). If that ever changes, we also need this configuration in `unittests/lit.common.unit.cfg`. Reviewers: delcypher Differential Revision: https://reviews.llvm.org/D58209 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@354179 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert "Temporarily disable calls to getgrnam/getgrnam_r in test due to it ↵Douglas Yung2019-02-141-4/+2
| | | | | | | | | | hitting unrelated issues in EGLIBC 2.19." This reverts commit r353594. We have updated our internal build bot to a newer version of LIBC which does not have this problem. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@354014 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer][NFC] Darwin: limit parallism for sanitizer_common testsJulian Lettner2019-02-131-0/+6
| | | | | | | Many sanitizer_common tests (ASan, TSan) run with a "sanitized process space" so we need to limit their parallism. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353909 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporarily disable calls to getgrnam/getgrnam_r in test due to it hitting ↵Douglas Yung2019-02-091-2/+4
| | | | | | unrelated issues in EGLIBC 2.19. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353594 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Fix Android testsVitaly Buka2019-02-071-0/+2
| | | | | | On Android some fields can be null git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353377 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Re-enabled getpw_getgr.cc on AndroidVitaly Buka2019-02-071-1/+1
| | | | | | | | | | | | Reviewers: eugenis Subscribers: srhines, kubamracek, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D57785 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353366 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Don't unpoison buffer in getpw/getgr functionsVitaly Buka2019-02-071-0/+112
| | | | | | | | | | | | | | | | | Summary: Buffer should be referenced by results so used parts will be unpoisoned with unpoison_group and unpoison_passwd. This fixes TSAN performance issue made us to disable this interceptors. Reviewers: eugenis, dvyukov Subscribers: srhines, kubamracek, krytarowski, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D57731 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353351 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix sanitizer tool list used to generate sanitizer_common tests to be ↵Dan Liew2019-01-166-14/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | up-to-date. Summary: This replaces the sanitizer tool list (used for generating sanitizer_common configurations) with a tool list derived from existing build system information. Previously sanitizer_common had its own list of supported sanitizer tools. This was bad because it was out of sync with the rest of the build system. Notably it meant that the sanitizer_common runtime was only being tested on Darwin the ASan dylib and not the other sanitizer dylibs that are built for Darwin (LSan, TSan, and UBSan). Unfortunately enabling the tests against other sanitizer dylibs has lead to some test failures on Darwin. For now they've been marked as XFAIL until the failures can investigated properly. For Windows and Android we use the old sanitizer tool list to try avoid bot breakages. rdar://problem/47143078 Reviewers: kubamracek, george.karpenkov, yln, samsonov, vitalybuka, krytarowski Subscribers: srhines, mgorny, fedor.sergeev, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D55740 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351398 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert little bad rebasing.David Carlier2019-01-151-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351191 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Intercept sl_add api on FreeBSD/NetBSDDavid Carlier2019-01-152-0/+27
| | | | | | | | | | | Reviewers: krytarowski, vitalybuka Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56670 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351189 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Add fallback for Thumb after r350139Diana Picus2019-01-141-1/+1
| | | | | | | | | | | | | | This reverts r350806 which marked some tests as UNSUPPORTED on ARM and instead reintroduces the old code path only for Thumb, since that seems to be the only target that broke. It would still be nice to find the root cause of the breakage, but with the branch point for LLVM 8.0 scheduled for next week it's better to put things in a stable state while we investigate. Differential Revision: https://reviews.llvm.org/D56594 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351040 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Disable getusershell interception for AndroidDavid Carlier2019-01-111-1/+1
| | | | | | | | | | | Reviewers: vitalybuka, pcc, eugenis Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D56583 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350965 91177308-0d34-0410-b5e6-96231b3b80d8
* XFAIL getusershell.cc on Android.Matt Morehouse2019-01-111-0/+2
| | | | | | Android does not implement [set|get|end]usershell(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350935 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Intercept getusershellDavid Carlier2019-01-111-0/+21
| | | | | | | | | | | | | - If entries are properly copied (there were a bug in FreeBSD implementation in earlier version), or list properly reset. Reviewers: vitalybuka, krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56562 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350919 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Mark tests as UNSUPPORTED on armDiana Picus2019-01-101-1/+1
| | | | | | | | | | Temporarily mark a couple of tests as UNSUPPORTED until we figure out why they fail on the thumb bots. The failure was introduced in r350139 - Add support for background thread on NetBSD in ASan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350806 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Intercept fdevname on FreeBSDDavid Carlier2019-01-081-0/+44
| | | | | | | | | | | | | | - Is a file descriptor flavor FreeBSD's specific. - reentrant version included. Reviewers: vitalybuka, krytarowski, emaste Reviewed By: emaste Differential Revision: https://reviews.llvm.org/D56268 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350658 91177308-0d34-0410-b5e6-96231b3b80d8
* Re-disable the sanitizer_common/TestCases/Posix/getfsent.cc test. Recent ↵Kuba Mracek2019-01-031-1/+1
| | | | | | macOS versions don't have the /etc/fstab file any more so we cannot test getfsent/setfsent APIs on Darwin. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350331 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Fix typo in funopen unit test.David Carlier2019-01-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350259 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Disable arc4random seeding apis on for Non NetBSD platforms.David Carlier2019-01-021-0/+6
| | | | | | | | | | | | | - arc4random_stir / arc4random_addrandom had been made obsolete (and removed) from FreeBSD 12. Reviewers: krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56210 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350249 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Enable funopen on FreeBSDDavid Carlier2019-01-021-0/+2
| | | | | | | | | | | Reviewers: krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56209 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350248 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer_common] Add tests for NetBSD funopen*() functionsMichal Gorny2019-01-022-0/+199
| | | | | | Differential Revision: https://reviews.llvm.org/D56154 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350231 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer_common] Add test for popen()Michal Gorny2019-01-021-0/+23
| | | | | | Differential Revision: https://reviews.llvm.org/D56153 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350230 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer_common] Add tests for more *putc and *getc variantsMichal Gorny2019-01-023-0/+45
| | | | | | | | | | | Add tests for the more character-oriented functions, that is: - fputc(), putc() and putchar() - getc_unlocked() - putc_unlocked() and putchar_unlocked() Differential Revision: https://reviews.llvm.org/D56152 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350229 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer_common] Rewrite more Posix tests to use assertsMichal Gorny2019-01-026-46/+26
| | | | | | | | | | Rewrite the tests for Posix functions that silently 'return 1' or 'exit(1)' on error, to instead verbosely report the error using assert. This is based on requests made in review of D56136. Differential Revision: https://reviews.llvm.org/D56149 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350227 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer_common] Add tests for more stdio.h functionsMichal Gorny2019-01-022-0/+60
| | | | | | | | | | | | | | | Add two new test cases that test the following stdio.h functions: - clearerr() - feof() - ferror() - fileno() - fgetc() - getc() - ungetc() Differential Revision: https://reviews.llvm.org/D56136 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350225 91177308-0d34-0410-b5e6-96231b3b80d8
* Reenable hard_rss_limit_mb_test.cc for android-26Kamil Rytarowski2018-12-291-3/+0
| | | | | | | Noted by eugenis@ in D55887. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350140 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for background thread on NetBSD in ASanKamil Rytarowski2018-12-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Change the point of calling MaybeStartBackgroudThread() from AsanInitInternal() that is too early on NetBSD to a constructor (with aid of C++11 lambda construct). Enable the code for background thread as is for NetBSD. Rename test/sanitizer_common/TestCases/Linux/hard_rss_limit_mb_test.cc to test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cc and allow runs on NetBSD. This tests passes correctly. Reviewers: vitalybuka, joerg, eugenis Reviewed By: eugenis Subscribers: eugenis, kubamracek, fedor.sergeev, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D55887 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350139 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Enable getfsent api for DarwinDavid Carlier2018-12-291-1/+1
| | | | | | | | | | | Reviewers: vitalybuka, kubamracek Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D56138 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350138 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] arc4random unit test missing case.David Carlier2018-12-281-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350124 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Intercept arc4random_buf / arc4random_addrandom on FreeBSD/NetBSDDavid Carlier2018-12-281-0/+62
| | | | | | | | | | | | | | | | - Disabled on purpose on Android and Darwin platform (for now). - Darwin supports it, would need interception in its specific code before enabling it. - Linux does not support it but only via third party library. - Android supports it via bionic however it is known to have issue with older versions of the implementations. Can be enabled by an Android committer later on if necessary once there is more 'certainity'/been more tested. Reviewers: krytarowski, vitalybuka Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56125 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350123 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable posix regex interceptors on linux.Evgeniy Stepanov2018-12-271-1/+1
| | | | | | | | | | | | Summary: They happen to work out of the box. Reviewers: rtrieu, vitalybuka Subscribers: kubamracek, fedor.sergeev, krytarowski, llvm-commits Differential Revision: https://reviews.llvm.org/D56088 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350103 91177308-0d34-0410-b5e6-96231b3b80d8
* getfsent, unit test.David Carlier2018-12-271-0/+36
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350100 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust NetBSD/sha2.cc to be portable to more environmentsKamil Rytarowski2018-12-271-12/+12
| | | | | | | | | | | | | | | | Summary: By an accident part of the tests contained hardcoded checksums for external files that will differ between setups. Reviewers: mgorny Subscribers: kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D56104 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350097 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust NetBSD/md2.cc to be portable to more environmentsKamil Rytarowski2018-12-271-4/+4
| | | | | | | | | | | | | | | | Summary: By an accident part of the tests contained hardcoded checksums for external files that will differ between setups. Reviewers: mgorny Subscribers: kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D56105 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350096 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust NetBSD/md[45].cc to be portable to more environmentsKamil Rytarowski2018-12-272-6/+6
| | | | | | | | | | | | | | | | Summary: By an accident part of the tests contained hardcoded checksums for external files that will differ between setups. Reviewers: mgorny Subscribers: kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D56106 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350095 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Enable FTS api on FreeBSDDavid Carlier2018-12-271-0/+2
| | | | | | | | | | | Reviewers: krytarowski, vitalybuka Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56097 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350090 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Enable POSIX regex api on FreeBSD.David Carlier2018-12-221-36/+6
| | | | | | | | | | | | | | | | | | Reviewers: krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D56009 M lib/sanitizer_common/sanitizer_common_interceptors.inc M lib/sanitizer_common/sanitizer_platform_interceptors.h M lib/sanitizer_common/sanitizer_platform_limits_freebsd.cc M lib/sanitizer_common/sanitizer_platform_limits_freebsd.h D test/sanitizer_common/TestCases/NetBSD/regex.cc A + test/sanitizer_common/TestCases/Posix/regex.cc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350002 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Move the unit test in the right place.David Carlier2018-12-211-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349917 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Enable strtonum in FreeBSDDavid Carlier2018-12-211-0/+2
| | | | | | | | | | | Reviewers: krytarowski, vitalybuka Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D55993 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349916 91177308-0d34-0410-b5e6-96231b3b80d8
* [CMake] Print out the list of sanitizers that the sanitizer_common tests ↵Dan Liew2018-12-211-0/+7
| | | | | | | | | | | | | | | | will run against. Summary: This is a change requested by Vitaly Buka as prerequisite to landing https://reviews.llvm.org/D55740. Reviewers: vitalybuka, kubamracek Subscribers: mgorny, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D55939 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349897 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Enable vis api on FreeBSDDavid Carlier2018-12-201-0/+2
| | | | | | | | | | | Reviewers: krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D55923 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349762 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] capsicum variadic api subsetDavid Carlier2018-12-171-0/+6
| | | | | | | | | | | Reviewers: markj, vitalybuka Reviewed By: markj Differential Revision: https://reviews.llvm.org/D55714 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349392 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] capsicum further support of the APIDavid Carlier2018-12-131-32/+46
| | | | | | | | | | | Reviewers: vitalybuka, krytarowski, emaste Reviewed By: emaste Differential Revision: https://reviews.llvm.org/D55622 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349042 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new interceptors for cdbr(3) and cdbw(3) API from NetBSDKamil Rytarowski2018-12-131-0/+134
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: cdb - formats of the constant database. cdbr, cdbr_open, cdbr_open_mem, cdbr_entries, cdbr_get, cdbr_find, cdbr_close - constant database access methods. cdbw_open, cdbw_put, cdbw_put_data, cdbw_put_key, cdbw_stable_seeder, cdbw_output, cdbw_close - creates constant databases. Add a dedicated test for this API. Reviewers: vitalybuka, joerg Reviewed By: vitalybuka Subscribers: kubamracek, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D55167 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349021 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new interceptors for vis(3) API in NetBSDKamil Rytarowski2018-12-131-0/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add interceptors for the NetBSD style of vis(3) present inside libc: - vis - nvis - strvis - stravis - strnvis - strvisx - strnvisx - strenvisx - svis - snvis - strsvis - strsnvis - strsvisx - strsnvisx - strsenvisx - unvis - strunvis - strnunvis - strunvisx - strnunvisx Add a dedicated test verifying the installed interceptors. Based on original work by Yang Zheng. Reviewers: vitalybuka, joerg Reviewed By: vitalybuka Subscribers: tomsun.0.7, kubamracek, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D54594 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349018 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Expand FSEEK interception to FreeBSDDavid Carlier2018-12-111-0/+2
| | | | | | | | | | | Reviewers: krytarowski Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D55556 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@348888 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] expand sysctl/getmntinfo/nl_langinfo to DarwinDavid Carlier2018-12-104-50/+82
| | | | | | | | | | | Reviewers: vitalybuka, krytarowski, kubamracek Reviewed By: vitalybuka, krytarowski Differential Revision: https://reviews.llvm.org/D55473 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@348770 91177308-0d34-0410-b5e6-96231b3b80d8
* Add interceptors for the sha2(3) from NetBSDKamil Rytarowski2018-12-101-0/+206
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: SHA224_Init, SHA224_Update, SHA224_Final, SHA224_End, SHA224_File, SHA224_FileChunk, SHA224_Data, SHA256_Init, SHA256_Update, SHA256_Final, SHA256_End, SHA256_File, SHA256_FileChunk, SHA256_Data, SHA384_Init, SHA384_Update, SHA384_Final, SHA384_End, SHA384_File, SHA384_FileChunk, SHA384_Data, SHA512_Init, SHA512_Update, SHA512_Final, SHA512_End, SHA512_File, SHA512_FileChunk, SHA512_Data – calculates the NIST Secure Hash Standard (version 2) Add tests for new interceptors. Reviewers: vitalybuka, joerg Reviewed By: vitalybuka Subscribers: kubamracek, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D54987 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@348745 91177308-0d34-0410-b5e6-96231b3b80d8
* Add interceptors for md2(3) from NetBSDKamil Rytarowski2018-12-101-0/+114
| | | | | | | | | | | | | | | | | | | | Summary: MD2Init, MD2Update, MD2Final, MD2End, MD2File, MD2Data - calculates the RSA Data Security, Inc., "MD2" message digest. Add a dedicated test. Reviewers: vitalybuka, joerg Reviewed By: vitalybuka Subscribers: kubamracek, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D55469 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@348744 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new interceptors for FILE repositioning streamKamil Rytarowski2018-12-101-0/+51
| | | | | | | | | | | | | | | | | | | | | | Summary: Add new interceptors for a set of functions to reposition a stream: fgetpos, fseek, fseeko, fsetpos, ftell, ftello, rewind . Add a dedicated test. Enable this interface on NetBSD. Reviewers: joerg, vitalybuka Reviewed By: vitalybuka Subscribers: kubamracek, llvm-commits, mgorny, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D55471 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@348743 91177308-0d34-0410-b5e6-96231b3b80d8