Opened 17 years ago

Closed 15 years ago

Last modified 15 years ago

#493 closed Bugs (fixed)

format: assert when parsing invalid pattern — at Version 3

Reported by: plindovsky Owned by: Samuel Krempp
Milestone: Component: format
Version: None Severity: Problem
Keywords: Cc:

Description (last modified by René Rivera)

An assert occurs in fmter.parse in the following code:

boost::format fmter;
fmter.exceptions(boost::io::no_error_bits);
fmter.parse("Unknown option mask %1$06x%");

Change History (3)

comment:1 by Samuel Krempp, 15 years ago

Owner: changed from samuel_k to Samuel Krempp
Severity: Problem
Status: assignednew

comment:2 by Samuel Krempp, 15 years ago

Resolution: Nonefixed
Status: newclosed

The exception bitmask set is no_error_bits, thus critical errors lead to assertions instead of exceptions.

Now, this trailing '%' is not really critical. Thus I changed the code to handle that more quietly. (revision 38730)

comment:3 by René Rivera, 15 years ago

Component: Noneformat
Description: modified (diff)
Note: See TracTickets for help on using tickets.