Opened 13 years ago

Closed 13 years ago

#3819 closed Bugs (fixed)

Possible reading-overflow in format_date_parser::parse_date

Reported by: Tobias Loew Owned by: az_sw_dude
Milestone: Boost 1.42.0 Component: date_time
Version: Boost 1.41.0 Severity: Problem
Keywords: reading-overflow format_date_parser Cc:

Description

If the format-string given in format_str ends with '%' then the parser may read over the end of format_str.

Attachments (1)

date_time.patch (2.6 KB ) - added by Tobias Loew 13 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 by Tobias Loew, 13 years ago

Resolution: fixed
Status: newclosed

I added a test at every position where the format-string-iterator is additionally increased within the loop

by Tobias Loew, 13 years ago

Attachment: date_time.patch added
Note: See TracTickets for help on using tickets.