| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 234490
|
| |
|
|
| |
llvm-svn: 234487
|
| |
|
|
| |
llvm-svn: 234485
|
| |
|
|
| |
llvm-svn: 234482
|
| |
|
|
| |
llvm-svn: 234481
|
| |
|
|
| |
llvm-svn: 234479
|
| |
|
|
| |
llvm-svn: 234477
|
| |
|
|
|
|
|
|
| |
Moving the implementation of several functions from sanitizer_symbolizer.cc into sanitizer_symbolizer_libcdep.cc.
Reviewed at http://reviews.llvm.org/D8858
llvm-svn: 234472
|
| |
|
|
|
|
| |
Reviewed at http://reviews.llvm.org/D8698
llvm-svn: 234470
|
| |
|
|
|
|
|
| |
Patch by Sagar Thakur
Reviewers: dsanders
llvm-svn: 234468
|
| |
|
|
| |
llvm-svn: 234423
|
| |
|
|
|
|
| |
sanitizer_posix.h
llvm-svn: 234418
|
| |
|
|
| |
llvm-svn: 234410
|
| |
|
|
|
|
| |
Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=91
llvm-svn: 234394
|
| |
|
|
|
|
|
|
|
|
| |
This patch is related to Issue 346: moar string interceptors: strstr, strcasestr, strcspn, strpbrk
As was suggested in original review http://reviews.llvm.org/D6056 a new "strict_string_checks" run-time flag introduced.
The flag support applied for existing common, asan, msan and tsan interceptors. New asan tests added.
Change by Maria Guseva reviewed in http://reviews.llvm.org/D7123
llvm-svn: 234187
|
| |
|
|
| |
llvm-svn: 234151
|
| |
|
|
|
|
| |
Reviewed at http://reviews.llvm.org/D8805
llvm-svn: 234150
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds hard-float implementation for the following builtins:
* __fixdfdi()
* __fixsfdi()
* __fixunsdfdi()
* __fixunssfdi()
The soft-float implementation does never raise floating point
exceptions, which doesn't allow clients to detect floating point
conversion errors.
I must mention that I had to refer to libgcc's implementation to
write these functions.
Related unit-tests of compiler-rt passed with these changes.
Patch was somewhat out-dated, so was updated locally without any
functional changes.
Differential Revision: http://reviews.llvm.org/D5376
llvm-svn: 234148
|
| |
|
|
| |
llvm-svn: 234147
|
| |
|
|
|
|
|
|
|
| |
MetaMap::ResetRange/FreeRange rounds the range up to at least kMetaShadowSize.
This is requried for e.g. free(malloc(0)). However, munmap returns EINVAL
and do not unmap any memory when length arguments is equal to 0.
So don't free meta shadow in this case as well.
llvm-svn: 234145
|
| |
|
|
| |
llvm-svn: 234037
|
| |
|
|
|
|
|
|
|
|
|
| |
This avoids crashing or corrupting data if multiple concurrent
processes write to the same .gcda file. This is hard to test, since
the previous behaviour was a data race that often worked out, and it
ignores errors in flock to fall back to the old racy behaviour so that
it won't degrade the behaviour on filesystems that don't support
flock.
llvm-svn: 234036
|
| |
|
|
|
|
| |
Address space is a lot more constrained on 32-bit Android compared to Linux.
llvm-svn: 234010
|
| |
|
|
| |
llvm-svn: 233918
|
| |
|
|
| |
llvm-svn: 233879
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D8792
llvm-svn: 233876
|
| |
|
|
|
|
| |
platforms.
llvm-svn: 233865
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Change the way we use ASan and UBSan together. Instead of keeping two
separate runtimes (libclang_rt.asan and libclang_rt.ubsan), embed UBSan
into ASan and get rid of libclang_rt.ubsan. If UBSan is not supported on
a platform, all UBSan sources are just compiled into dummy empty object
files. UBSan initialization code (e.g. flag parsing) is directly called
from ASan initialization, so we are able to enforce correct
initialization order.
This mirrors the approach we already use for ASan+LSan. This change
doesn't modify the way we use standalone UBSan.
Test Plan: regression test suite
Reviewers: kubabrecka, zaks.anna, rsmith, kcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D8646
llvm-svn: 233861
|
| |
|
|
|
|
|
|
|
| |
This CL:
- moves PrepareForSandboxing() to sanitizer_posix_libcdep.cc
- fixes the coverage tests to use flag substitutions defined in r233802 and not rely on hardcoded shared library names
- moves those tests to TestCases/Posix so that they can be executed on Darwin
llvm-svn: 233828
|
| |
|
|
|
|
| |
My fix for power also fixed armv7l-unknown-linux-gnueabihf and aarch64
llvm-svn: 233827
|
| |
|
|
|
|
|
|
|
|
|
| |
TestCases/Posix/interception-in-shared-lib-test.cc and TestCases/suppressions-library.cc on FreeBSD.
r233802 has moved the tests above to Posix/ and introduced %ld_flags_rpath_so and %ld_flags_rpath_exe,
which haven't been defined for FreeBSD.
We expect the flags to be the same on Linux and FreeBSD. If there's another reason for the tests to fail on FreeBSD,
they'll need to be disabled.
llvm-svn: 233822
|
| |
|
|
|
|
|
|
| |
One test case is updated to allow for differences between power and other architectures in behavior when returning from main in certain instances
http://reviews.llvm.org/D8743
llvm-svn: 233813
|
| |
|
|
|
|
| |
Reviewed at http://reviews.llvm.org/D8724
llvm-svn: 233809
|
| |
|
|
|
|
|
|
|
| |
platform-specific substitutions for rpath linker flags
Also make suppressions-library.cc use the same flags to avoid warnings about unused -rpath flags.
The same substitutions will be used to make coverage tests work on both Linux and Darwin without duplicating the code.
llvm-svn: 233802
|
| |
|
|
|
|
| |
See https://code.google.com/p/address-sanitizer/issues/detail?id=385.
llvm-svn: 233720
|
| |
|
|
| |
llvm-svn: 233707
|
| |
|
|
|
|
| |
Reviewed at http://reviews.llvm.org/D8666
llvm-svn: 233687
|
| |
|
|
|
|
| |
Patch by Alexey Samsonov!
llvm-svn: 233413
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D8544
llvm-svn: 233378
|
| |
|
|
|
|
|
| |
If user does malloc(1<<30), the write to meta shadow
can cause excessive memory consumption.
llvm-svn: 233373
|
| |
|
|
| |
llvm-svn: 233295
|
| |
|
|
|
|
|
|
|
| |
It was happening when we looked up a PC for a module that was dlopen'ed/dlclose'd
after the last time we fetched the list of modules
Reviewed at http://reviews.llvm.org/D8618
llvm-svn: 233257
|
| |
|
|
|
|
| |
produce dummy object files. NFC.
llvm-svn: 233231
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
For OS X builds, both Make and CMake, let's be very explicit about using
libc++ and libc++abi with:
1) -stdlib=libc++ in CFLAGS and LDFLAGS for all platforms
2) -lc++ in LDFLAGS for all platforms
3) switch from -undefined dynamic_lookup to -lc++abi for UBSan in
Makefile-based builds
Reviewed at http://reviews.llvm.org/D8617
llvm-svn: 233215
|
| |
|
|
|
|
| |
method and one variable
llvm-svn: 233212
|
| |
|
|
|
|
|
|
| |
Some recent changes to sancov.py broke ASAN for big endian. This fixes it.
http://reviews.llvm.org/D8594
llvm-svn: 233189
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on OSX 10.9
On OS X 10.9 /usr/bin/atos prints the following warning upon invocation:
--
Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: `xcrun atos`
To silence this warning, pass the '-d' command-line flag to this tool.
--
AtosSymbolizer treats the warning as the symbolization result for the first PC passed to the symbolizer. As a result, for each of the following PCs the file:line info for the previous PC is printed, e.g.:
==97926==ERROR: AddressSanitizer: attempting double-free on 0x60200000dfb0 in thread T0:
==97926==Using atos at user-specified path: /usr/bin/atos
==97926==Using dladdr symbolizer.
#0 0x1007407e0 in -- (+0x427e0)
#1 0x1006f6f25 in wrap_free asan_malloc_mac.cc:114
#2 0x7fff916e05fc in main atos-symbolizer.cc:17
#3 0x0 (<unknown module>)
Unfortunately atos doesn't accept the -d switch on OSX versions other than 10.9, thus we have to check for the OSX version.
llvm-svn: 233180
|
| |
|
|
|
|
| |
Fix the build/tests by providing -lc++abi for UBSan runtime only.
llvm-svn: 233122
|
| |
|
|
|
|
|
|
|
|
| |
This change caused test failures on darwin, and the followup which was
meant to fix those caused compiler-rt to start failing to link.
Reverting to get the build working again.
This reverts r233071 and r233036.
llvm-svn: 233097
|
| |
|
|
|
|
| |
This should fix the OSX Jenkins build at http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_check/
llvm-svn: 233071
|