Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 19:10:37 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r329398 - vendor/compiler-rt/dist-release_60/lib/asan
Message-ID:  <201802161910.w1GJAbwG069139@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Feb 16 19:10:37 2018
New Revision: 329398
URL: https://svnweb.freebsd.org/changeset/base/329398

Log:
  Vendor import of compiler-rt release_60 branch r325330:
  https://llvm.org/svn/llvm-project/compiler-rt/branches/release_60@325330

Modified:
  vendor/compiler-rt/dist-release_60/lib/asan/asan_linux.cc

Modified: vendor/compiler-rt/dist-release_60/lib/asan/asan_linux.cc
==============================================================================
--- vendor/compiler-rt/dist-release_60/lib/asan/asan_linux.cc	Fri Feb 16 19:10:34 2018	(r329397)
+++ vendor/compiler-rt/dist-release_60/lib/asan/asan_linux.cc	Fri Feb 16 19:10:37 2018	(r329398)
@@ -32,6 +32,7 @@
 #include <sys/types.h>
 #include <dlfcn.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <pthread.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -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)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802161910.w1GJAbwG069139>