|
Boost : |
From: John Eddy (johneddy_at_[hidden])
Date: 2005-02-03 15:07:36
I noticed a potential hazard in exceptions.cpp of the thread library.
The method:
const char* thread_exception::message() const
returns the c_str of a string with local scope. This is a problem at
least in VC 7 .NET 2003. The error can be exposed by the following code.
try
{
throw boost::lock_error(1);
}
catch(boost::lock_error& e)
{
cerr << e.message();
}
Thanks,
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk