[tor-commits] [tor/master] Check more values of int

teor at torproject.org teor at torproject.org
Tue Mar 26 09:31:42 UTC 2019


commit 280109473fe30d1e67f8db09ce279cc1f714a682
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Wed Mar 20 19:00:03 2019 +0200

    Check more values of int
---
 src/test/test_ptr_slow.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/test/test_ptr_slow.c b/src/test/test_ptr_slow.c
index 07481fb1e..5b366b7d3 100644
--- a/src/test/test_ptr_slow.c
+++ b/src/test/test_ptr_slow.c
@@ -33,7 +33,11 @@ test_int_voidstar_interop(void *arg)
   int a;
   (void)arg;
 
-  for (a = 0; a <= 1024; a++) {
+  for (a = -1024; a <= 1024; a++) {
+    assert_int_voidptr_roundtrip(a);
+  }
+
+  for (a = INT_MIN; a <= INT_MIN+1024; a++) {
     assert_int_voidptr_roundtrip(a);
   }
 





More information about the tor-commits mailing list