Modify

Opened 12 years ago

Closed 10 years ago

Last modified 10 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.exceptions(boost::io::no_error_bits);
fmter.parse("Unknown option mask %1$06x%");

Attachments (0)

Change History (3)

comment:1 Changed 10 years ago by Samuel Krempp

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

comment:2 Changed 10 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 10 years ago by René Rivera

Component: Noneformat
Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Samuel Krempp.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.