• Kevin J. McCarthy's avatar
    Fix is_from() year parsing to abort on year overflow. · 2a857f63
    Kevin J. McCarthy authored
    Unlike mutt_parse_date(), is_from() was not checking for overflow, and
    could end up passing a negative year to mutt_mktime().
    
    It should perhaps be changed to use mutt_atoi(), which does better
    range checking, but that requires mutt_atoi() being changed to allow
    trailing characters and its callers return value checks being
    updated.  I'll put that on the todo list.
    2a857f63
from.c 4.5 KB