[Boost-bugs] [Boost C++ Libraries] #8735: boost::format craches on "%0%" format string

Subject: [Boost-bugs] [Boost C++ Libraries] #8735: boost::format craches on "%0%" format string
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-26 14:18:47


#8735: boost::format craches on "%0%" format string
------------------------------+---------------------------
 Reporter: oliora@… | Owner: samuel_krempp
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: format
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: format |
------------------------------+---------------------------
 Application crashes at runtime at the following code
 {{{
 boost::format("%0%") % "something";
 }}}

 I understand that 0 is a wrong format argument number (they are starting
 from 1), but it's too easy to forget about it (for example, Python uses 0
 based format argument numbers). While boost::format is considered to be a
 safe alternative to printf, I think such mistakes should be handled and at
 least don't give a runtime crash.

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