Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2008-02-10 09:37:41


In libs/date_time/src/gregorian/greg_month.cpp we have:

    short i = date_time::find_match(special_value_names,
                                    special_value_names,
                                    date_time::NumSpecialValues,
                                    s);

This results in a read past the end of the array. I believe the caller
should pass NumSpecialValues-1 and the error check after it should be

    if(i >= date_time::NumSpecialValues) { // match not found

Jon

-- 
"There are basically two types of people. People who accomplish things,
 and people who claim to have accomplished things.
 The first group is less crowded."
	- Mark Twain

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk