From owner-svn-src-vendor@freebsd.org Fri Feb 16 19:10:40 2018 Return-Path: Delivered-To: svn-src-vendor@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B311F0960C; Fri, 16 Feb 2018 19:10:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C06876C4AD; Fri, 16 Feb 2018 19:10:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 71BD511BBE; Fri, 16 Feb 2018 19:10:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1GJAbYN069140; Fri, 16 Feb 2018 19:10:37 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1GJAbwG069139; Fri, 16 Feb 2018 19:10:37 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201802161910.w1GJAbwG069139@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Fri, 16 Feb 2018 19:10:37 +0000 (UTC) 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 X-SVN-Group: vendor X-SVN-Commit-Author: dim X-SVN-Commit-Paths: vendor/compiler-rt/dist-release_60/lib/asan X-SVN-Commit-Revision: 329398 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2018 19:10:40 -0000 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 #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)) {