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

[tor-commits] [tor/master] Fix unit test crash on 32-bit.



commit ba88d78127b4ec9d6c3d8d4318d29f67a3760eab
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Jun 20 10:20:03 2016 -0400

    Fix unit test crash on 32-bit.
---
 src/test/test_util_format.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/test_util_format.c b/src/test/test_util_format.c
index ad2ca31..f3dcd11 100644
--- a/src/test/test_util_format.c
+++ b/src/test/test_util_format.c
@@ -263,7 +263,7 @@ test_util_format_base16_decode(void *ignored)
   res = base16_decode(dst, 1, src, 10);
   tt_int_op(res, OP_EQ, -1);
 
-  res = base16_decode(dst, SIZE_T_CEILING+2, src, 10);
+  res = base16_decode(dst, ((size_t)INT_MAX)+1, src, 10);
   tt_int_op(res, OP_EQ, -1);
 
   res = base16_decode(dst, 1000, "", 0);

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