* [PATCH] boost: Replace math::static_lcm with integer
@ 2016-09-13 5:32 jackie.huang
0 siblings, 0 replies; only message in thread
From: jackie.huang @ 2016-09-13 5:32 UTC (permalink / raw)
To: openembedded-core
From: Jackie Huang <jackie.huang@windriver.com>
Replace math with integer according to the commit upstream:
---
de05d62aea8e7309026806acf76370e5b1ed9cf3
Replace math::gcd,lcm with integer.
---
or it fails with:
./boost/pool/pool.hpp:363:28: error: 'math' has not been declared
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
meta/recipes-support/boost/boost/boost-CVE-2012-2677.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 0cd97cc..917617a 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
+ 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;
--
2.8.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-13 5:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-13 5:32 [PATCH] boost: Replace math::static_lcm with integer jackie.huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox