summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2016-09-13 13:32:31 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-21 21:58:05 +0100
commitc2908e1d1f170f4b588c070e912449c3537f8fb2 (patch)
tree4227f708148f97e772dbd72e85febab9029c1295 /meta/recipes-support
parentb26926c3a8c4ded6e0de3510c30494fb0fe87f66 (diff)
downloadpoky-c2908e1d1f170f4b588c070e912449c3537f8fb2.tar.gz
boost: Replace math::static_lcm with integer
Replace math with integer according to the commit upstream: (From OE-Core rev: 2e2ecd867d47ee24b37f61af6db5338df5059844) (From OE-Core rev: 4c9fe10f3aaa4ee6e8fee52816298896b18cdb60) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch b/meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch
index 0cd97ccb97..917617a044 100644
--- a/meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch
+++ b/meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch
@@ -26,7 +26,7 @@ index c47b11f..417a1e0 100644
26+ size_type max_chunks() const 26+ size_type max_chunks() const
27+ { //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool. 27+ { //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool.
28+ size_type partition_size = alloc_size(); 28+ size_type partition_size = alloc_size();
29+ size_type POD_size = math::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type); 29+ size_type POD_size = integer::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
30+ size_type max_chunks = (std::numeric_limits<size_type>::max() - POD_size) / alloc_size(); 30+ size_type max_chunks = (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
31+ 31+
32+ return max_chunks; 32+ return max_chunks;