Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jul 2018 21:04:45 +0000 (UTC)
From:      Michael Gmelin <grembo@FreeBSD.org>
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
Message-ID:  <201807192104.w6JL4j5x067684@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
+     {



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