mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Fix unit test crash on 32-bit.
This commit is contained in:
parent
6cedd49323
commit
ba88d78127
@ -263,7 +263,7 @@ test_util_format_base16_decode(void *ignored)
|
|||||||
res = base16_decode(dst, 1, src, 10);
|
res = base16_decode(dst, 1, src, 10);
|
||||||
tt_int_op(res, OP_EQ, -1);
|
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);
|
tt_int_op(res, OP_EQ, -1);
|
||||||
|
|
||||||
res = base16_decode(dst, 1000, "", 0);
|
res = base16_decode(dst, 1000, "", 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user