Subject: [Boost-bugs] [Boost C++ Libraries] #11956: NULL values to a basic_formatting_ostream causes an error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-04 23:37:01
#11956: NULL values to a basic_formatting_ostream causes an error
-----------------------------------------+---------------------
Reporter: Erich Keane <erich.keane@â¦> | Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-----------------------------------------+---------------------
Doing the following causes a segfault:
char* msg = nullptr;
BOOST_LOG_TRIVIAL(trace) << msg;
It causes a call to std::char_traits<char>::length on the 'msg' above,
which causes a segfault.
I would anticipate that this functionality match the standard ostream
version of the same thing, which is to not print at all, or at least the
printf formatting, which prints (null).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11956> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC