mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix unit test crash on 32-bit.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user