From 2fb14b72339e21350fc3b98a9fdb684b9e194350 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 16 Feb 2018 19:10:37 +0000 Subject: Vendor import of compiler-rt release_60 branch r325330: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_60@325330 --- lib/asan/asan_linux.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index 047e1dbb72fa..625f32d408df 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -214,7 +215,7 @@ void AsanCheckIncompatibleRT() { // the functions in dynamic ASan runtime instead of the functions in // system libraries, causing crashes later in ASan initialization. MemoryMappingLayout proc_maps(/*cache_enabled*/true); - char filename[128]; + char filename[PATH_MAX]; MemoryMappedSegment segment(filename, sizeof(filename)); while (proc_maps.Next(&segment)) { if (IsDynamicRTName(segment.filename)) { -- cgit v1.3