[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Another case of possible gmtime angst.



commit d71ca3968213ea2ed6e30e7a1a5478db759a61e5
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Jan 23 17:07:39 2019 -0500

    Another case of possible gmtime angst.
---
 src/test/test_util.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index 6a7b42b78..4701fadf1 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. */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits