Ticket #12215: boost_1_61_0-context-init-stack.patch
File boost_1_61_0-context-init-stack.patch, 586 bytes (added by , 6 years ago) |
---|
-
boost/context/fixedsize_stack.hpp
diff --git a/boost/context/fixedsize_stack.hpp b/boost/context/fixedsize_stack.hpp index 681de40..32fef70 100644
a b 9 9 10 10 #include <cstddef> 11 11 #include <cstdlib> 12 #include <cstring> 12 13 #include <new> 13 14 14 15 #include <boost/assert.hpp> … … public: 47 48 void * vp = std::malloc( size_); 48 49 if ( ! vp) throw std::bad_alloc(); 49 50 51 std::memset(vp, 0, size_); 52 50 53 stack_context sctx; 51 54 sctx.size = size_; 52 55 sctx.sp = static_cast< char * >( vp) + sctx.size;