]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
boost: Replace math::static_lcm with integer
authorJackie Huang <jackie.huang@windriver.com>
Tue, 13 Sep 2016 05:32:31 +0000 (13:32 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Sep 2016 19:18:32 +0000 (20:18 +0100)
Replace math with integer according to the commit upstream:

(From OE-Core rev: 2e2ecd867d47ee24b37f61af6db5338df5059844)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch

index 0cd97ccb97403b536a81329c2a5dc7ecd8b79e72..917617a044ef5a2f4ac9eef3cf1a9e2f13746602 100644 (file)
@@ -26,7 +26,7 @@ index c47b11f..417a1e0 100644
 +    size_type max_chunks() const
 +    { //! Calculated maximum number of memory chunks that can be allocated in a single call by this Pool.
 +      size_type partition_size = alloc_size();
-+      size_type POD_size = math::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
++      size_type POD_size = integer::static_lcm<sizeof(size_type), sizeof(void *)>::value + sizeof(size_type);
 +      size_type max_chunks = (std::numeric_limits<size_type>::max() - POD_size) / alloc_size();
 +
 +      return max_chunks;