]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Another case of possible gmtime angst.
authorNick Mathewson <nickm@torproject.org>
Wed, 23 Jan 2019 22:07:39 +0000 (17:07 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 23 Jan 2019 22:08:23 +0000 (17:08 -0500)
src/test/test_util.c

index 6a7b42b7884136f9eecee4c7ce289611486b1d76..4701fadf1aa032a651dec4893ff61fbf24615765 100644 (file)
@@ -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. */