Date: Thu, 19 Jul 2018 21:16:02 +0000 (UTC) From: Michael Gmelin <grembo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r474981 - in branches/2018Q3/devel/boost-libs: . files Message-ID: <201807192116.w6JLG2F9073230@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: grembo Date: Thu Jul 19 21:16:02 2018 New Revision: 474981 URL: https://svnweb.freebsd.org/changeset/ports/474981 Log: MFH: r474979 Fix runtime null pointer dereference (undefined behavior) PR: 229888 Approved by: maintainer Obtained from: https://github.com/boostorg/filesystem/pull/71 Approved by: ports-secteam (runtime fix blanket) Added: branches/2018Q3/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp - copied unchanged from r474979, head/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp Modified: branches/2018Q3/devel/boost-libs/Makefile Directory Properties: branches/2018Q3/ (props changed) Modified: branches/2018Q3/devel/boost-libs/Makefile ============================================================================== --- branches/2018Q3/devel/boost-libs/Makefile Thu Jul 19 21:11:48 2018 (r474980) +++ branches/2018Q3/devel/boost-libs/Makefile Thu Jul 19 21:16:02 2018 (r474981) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= boost-libs -PORTREVISION= 2 +PORTREVISION= 3 COMMENT= Free portable C++ libraries (without Boost.Python) Copied: branches/2018Q3/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp (from r474979, head/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2018Q3/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp Thu Jul 19 21:16:02 2018 (r474981, copy of r474979, head/devel/boost-libs/files/patch-libs_filesystem_src_operations.cpp) @@ -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 + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807192116.w6JLG2F9073230>