From 188162319a214554b5b0d72dc8a7bd5279908d8f Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 7 Oct 2016 23:07:33 -0500 Subject: [PATCH 1/2] Add, and update, documentation build targets. --- doc/Jamfile.v2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index 56b7c1e..62bb90d 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -106,4 +106,12 @@ boostbook standalone install pdfinstall : standalone/pdf : PDF . container.pdf ; explicit pdfinstall ; - +############################################################################### +alias boostdoc + : standalone/docbook + : + : + : ; +explicit boostdoc ; +alias boostrelease ; +explicit boostrelease ; From e0aaf744a53e3c710f3d6ee19a7b184f1a5a4da4 Mon Sep 17 00:00:00 2001 From: Gary Furnish Date: Mon, 5 Jun 2017 18:15:33 -0600 Subject: [PATCH 2/2] Fix integer rollover that triggers clang ubsan when U is unsigned --- include/boost/container/detail/copy_move_algo.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/container/detail/copy_move_algo.hpp b/include/boost/container/detail/copy_move_algo.hpp index 968f4ac..9044960 100644 --- a/include/boost/container/detail/copy_move_algo.hpp +++ b/include/boost/container/detail/copy_move_algo.hpp @@ -963,7 +963,8 @@ template inline typename container_detail::disable_if_trivially_destructible::type destroy_alloc_n(Allocator &a, I f, U n) { - while(n--){ + while(n){ + --n; allocator_traits::destroy(a, boost::movelib::iterator_to_raw_pointer(f)); ++f; }