svn commit: r474979 - in head/devel/boost-libs: . files
Michael Gmelin
grembo at FreeBSD.org
Thu Jul 19 21:04:46 UTC 2018
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
+ {
More information about the svn-ports-all
mailing list