From owner-svn-ports-all@freebsd.org Thu Jul 19 21:04:45 2018 Return-Path: Delivered-To: svn-ports-all@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 D2392104B1CC; Thu, 19 Jul 2018 21:04:45 +0000 (UTC) (envelope-from grembo@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 8793F7C668; Thu, 19 Jul 2018 21:04:45 +0000 (UTC) (envelope-from grembo@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 666632E866; Thu, 19 Jul 2018 21:04:45 +0000 (UTC) (envelope-from grembo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6JL4jVj067685; Thu, 19 Jul 2018 21:04:45 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6JL4j5x067684; Thu, 19 Jul 2018 21:04:45 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <201807192104.w6JL4j5x067684@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Thu, 19 Jul 2018 21:04:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474979 - in head/devel/boost-libs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: grembo X-SVN-Commit-Paths: in head/devel/boost-libs: . files X-SVN-Commit-Revision: 474979 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2018 21:04:46 -0000 Author: grembo Date: Thu Jul 19 21:04:44 2018 New Revision: 474979 URL: https://svnweb.freebsd.org/changeset/ports/474979 Log: Fix runtime null pointer dereference (undefined behavior) PR: 229888 Approved by: maintainer Obtained from: https://github.com/boostorg/filesystem/pull/71 MFH: 2018Q3 (runtime fix, null pointer dereference) Added: head/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp (contents, props changed) Modified: head/devel/boost-libs/Makefile Modified: head/devel/boost-libs/Makefile ============================================================================== --- head/devel/boost-libs/Makefile Thu Jul 19 20:57:09 2018 (r474978) +++ head/devel/boost-libs/Makefile Thu Jul 19 21:04:44 2018 (r474979) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= boost-libs -PORTREVISION= 2 +PORTREVISION= 3 COMMENT= Free portable C++ libraries (without Boost.Python) Added: head/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp Thu Jul 19 21:04:44 2018 (r474979) @@ -0,0 +1,29 @@ +Fixes a null pointer dereference, patch origin: +https://github.com/boostorg/filesystem/pull/71 +--- libs/filesystem/src/operations.cpp.orig 2018-04-11 13:49:02 UTC ++++ libs/filesystem/src/operations.cpp +@@ -890,20 +890,20 @@ namespace detail + BOOST_FILESYSTEM_DECL + void copy(const path& from, const path& to, system::error_code* ec) + { +- file_status s(symlink_status(from, *ec)); ++ file_status s(detail::symlink_status(from, ec)); + if (ec != 0 && *ec) return; + + if(is_symlink(s)) + { +- copy_symlink(from, to, *ec); ++ detail::copy_symlink(from, to, ec); + } + else if(is_directory(s)) + { +- copy_directory(from, to, *ec); ++ detail::copy_directory(from, to, ec); + } + else if(is_regular_file(s)) + { +- copy_file(from, to, fs::copy_option::fail_if_exists, *ec); ++ detail::copy_file(from, to, detail::fail_if_exists, ec); + } + else + {