summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-01-23 17:07:39 -0500
committerNick Mathewson <nickm@torproject.org>2019-01-23 17:08:23 -0500
commitd71ca3968213ea2ed6e30e7a1a5478db759a61e5 (patch)
tree91eedfdec4fbaead4709ab704bec6925b88b513e
parent2d74da3d0efd7a67f9bdb73145c38fe047faf1f8 (diff)
downloadtor-d71ca3968213ea2ed6e30e7a1a5478db759a61e5.tar.gz
tor-d71ca3968213ea2ed6e30e7a1a5478db759a61e5.zip
Another case of possible gmtime angst.
-rw-r--r--src/test/test_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 6a7b42b788..4701fadf1a 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1065,7 +1065,10 @@ test_util_time(void *arg)
/* This value is out of range with 32 bit time_t, but in range for 64 bit
* time_t */
+ CAPTURE();
format_rfc1123_time(timestr, (time_t)2150000000UL);
+ CHECK_POSSIBLE_EINVAL();
+
#if SIZEOF_TIME_T == 4
#if 0
/* Wrapping around will have made it this. */