aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-28 10:11:49 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-28 10:11:49 -0400
commit5b8956df3b3bc4593c0372703cfb07d75b4fc15e (patch)
tree37f2e989f218699bff84f5dca40b063433d40505 /src/common/util.c
parent8de4a80125ad674c2ed3b34920ac221693061794 (diff)
downloadtor-5b8956df3b3bc4593c0372703cfb07d75b4fc15e.tar.gz
tor-5b8956df3b3bc4593c0372703cfb07d75b4fc15e.zip
In test_establish_intro_wrong_purpose, use tt_i64_op on ssize_t
Since ssize_t is signed and might be 64 bits, we should use tt_i64_op to make sure it's positive. Otherwise, if it is negative, and we use tt_u64_op, we'll be treating it as a uint64_t, and we won't detect negative values. This fixes CID 1416338 and 1416339. Bug not in any released Tor.
Diffstat (limited to 'src/common/util.c')
0 files changed, 0 insertions, 0 deletions