svn commit: r329398 - vendor/compiler-rt/dist-release_60/lib/asan
Dimitry Andric
dim at FreeBSD.org
Fri Feb 16 19:10:40 UTC 2018
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)) {
More information about the svn-src-all
mailing list