[Boost-bugs] [Boost C++ Libraries] #10700: Crash while sending message of length > 1025 using boost::log::sinks::syslog_backend

Subject: [Boost-bugs] [Boost C++ Libraries] #10700: Crash while sending message of length > 1025 using boost::log::sinks::syslog_backend
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-27 09:57:08


#10700: Crash while sending message of length > 1025 using
boost::log::sinks::syslog_backend
-----------------------------------------------+---------------------
 Reporter: Anton Ianovski <Anton.Ianovski@…> | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: Crash, syslog_backend, RFC3164 |
-----------------------------------------------+---------------------
 Crash using syslog_backend in libs\log\src\syslog_backend.cpp in the
 function syslog_udp_socket::send_message.
 It happens when trying to send the message of the length greater than
 1025.
 It is true that according to RFC3164 packet size for sending is limited to
 1025, but the crash should not occur anyway.
 The message should rather be truncated to the length of 1025.
 Actual debug assertion failure happens in _vsprintf_s_l function while
 validating return status and the message "Buffer too small" appears.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10700>
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:17 UTC