diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-26 01:48:39 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-26 01:48:39 +0000 |
| commit | 4cc76cb872aa4db557a08738d2081ca7eeed7895 (patch) | |
| tree | ad6a4c165da3ae878bbde334a22cd8be458962c9 /compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc | |
| parent | b12191aaf9dd910c7f3519c532d90a96ae956949 (diff) | |
| download | bcm5719-llvm-4cc76cb872aa4db557a08738d2081ca7eeed7895.tar.gz bcm5719-llvm-4cc76cb872aa4db557a08738d2081ca7eeed7895.zip | |
[Sanitizer] Bump kMaxPathLength to 4096 and use it more extensively instead of hardcoded constants
llvm-svn: 222803
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc index 44e45292fa9..7567d6fbbe0 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc @@ -42,7 +42,7 @@ void LibIgnore::Init(const SuppressionContext &supp) { void LibIgnore::OnLibraryLoaded(const char *name) { BlockingMutexLock lock(&mutex_); // Try to match suppressions with symlink target. - InternalScopedBuffer<char> buf(4096); + InternalScopedBuffer<char> buf(kMaxPathLength); if (name != 0 && internal_readlink(name, buf.data(), buf.size() - 1) > 0 && buf.data()[0]) { for (uptr i = 0; i < count_; i++) { @@ -55,7 +55,7 @@ void LibIgnore::OnLibraryLoaded(const char *name) { // Scan suppressions list and find newly loaded and unloaded libraries. MemoryMappingLayout proc_maps(/*cache_enabled*/false); - InternalScopedBuffer<char> module(4096); + InternalScopedBuffer<char> module(kMaxPathLength); for (uptr i = 0; i < count_; i++) { Lib *lib = &libs_[i]; bool loaded = false; |

