r16214 - gnucash/trunk/src/backend/file - Validate date in _fixup_recurrence_start_dates, #443941 win32 crash.

Andreas Köhler andi5 at cvs.gnucash.org
Tue Jun 26 12:56:39 EDT 2007


Author: andi5
Date: 2007-06-26 12:56:38 -0400 (Tue, 26 Jun 2007)
New Revision: 16214
Trac: http://svn.gnucash.org/trac/changeset/16214

Modified:
   gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c
Log:
Validate date in _fixup_recurrence_start_dates, #443941 win32 crash.

This invalid date is due to a missing block <fs:once> in the data file.
Why there is such an unwanted and incomplete sx is still unclear.


Modified: gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c	2007-06-25 22:22:15 UTC (rev 16213)
+++ gnucash/trunk/src/backend/file/gnc-schedxaction-xml-v2.c	2007-06-26 16:56:38 UTC (rev 16214)
@@ -453,6 +453,7 @@
         g_date_clear(&next, 1);
 
         recurrenceNextInstance(r, &start, &next);
+        g_return_if_fail(g_date_valid(&next));
 
         {
             gchar date_str[128];



More information about the gnucash-changes mailing list