r22755 - gnucash/trunk/src/register/register-gnome - Avoid a crash when entering invalid dates (e.g., enter "111" for a transaction date).

Mike Alexander mta at code.gnucash.org
Tue Feb 5 23:24:39 EST 2013


Author: mta
Date: 2013-02-05 23:24:38 -0500 (Tue, 05 Feb 2013)
New Revision: 22755
Trac: http://svn.gnucash.org/trac/changeset/22755

Modified:
   gnucash/trunk/src/register/register-gnome/datecell-gnome.c
Log:
Avoid a crash when entering invalid dates (e.g., enter "111" for a transaction date).
gnc_parse_date is ignoring the return code from qof_scan_date which causes it to
send uninitialized values to gnc_mktime which crashes if the date is too ridiculous.
Presumably this worked before because mktime took anything without crashing.



More information about the gnucash-patches mailing list