Boost logo

Boost-Commit :

From: gennadiy.rozental_at_[hidden]
Date: 2008-04-14 01:51:49


Author: rogeeff
Date: 2008-04-14 01:51:49 EDT (Mon, 14 Apr 2008)
New Revision: 44396
URL: http://svn.boost.org/trac/boost/changeset/44396

Log:
initiaize stack_t structure with nulls, before calling sigaltstack

Text files modified:
   trunk/boost/test/impl/execution_monitor.ipp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/test/impl/execution_monitor.ipp
==============================================================================
--- trunk/boost/test/impl/execution_monitor.ipp (original)
+++ trunk/boost/test/impl/execution_monitor.ipp 2008-04-14 01:51:49 EDT (Mon, 14 Apr 2008)
@@ -638,6 +638,7 @@
 #ifdef BOOST_TEST_USE_ALT_STACK
     if( alt_stack ) {
         stack_t sigstk;
+ std::memset( &sigstk, 0, sizeof(stack_t) );
 
         BOOST_TEST_SYS_ASSERT( ::sigaltstack( 0, &sigstk ) != -1 );
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk