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

nickm at torproject.org nickm at torproject.org
Mon Jun 20 14:20:07 UTC 2016


commit ba88d78127b4ec9d6c3d8d4318d29f67a3760eab
Author: Nick Mathewson <nickm at torproject.org>
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);



More information about the tor-commits mailing list