mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Avoid testing dates near or after 2038, because the qof parsing functions fail.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12308 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
6e66d8e154
commit
8f7fbc0f9e
@ -400,6 +400,10 @@ run_test (void)
|
||||
ts.tv_nsec /= 1000;
|
||||
ts.tv_nsec *= 1000;
|
||||
|
||||
/* We just can't handle dates whose time_t doesn't fit in int. */
|
||||
if (ts.tv_sec > (0x7fffffff - 3600*25))
|
||||
continue;
|
||||
|
||||
if (!check_time (ts, FALSE))
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user