Opened 13 years ago

Closed 11 years ago

Last modified 11 years ago

#493 closed Bugs (fixed)

format: assert when parsing invalid pattern

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.parse("Unknown option mask %1$06x%");

Change History (3)

comment:1 Changed 11 years ago by Samuel Krempp

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

comment:2 Changed 11 years ago by Samuel Krempp

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 Changed 11 years ago by René Rivera

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