mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
cfbf74352f
This addresses issue #40800 and a couple other problems I noticed while trying to reproduce that one. The original issue is just a missing cast to void* on the args of __builtin___clear_cache(), and clang is picky about the implicit cast between what it considers to be char of different signedness. Original report is from MacOS but it's also reproducible on other clang targets. The cmake-based original build system for equix and hashx was a handy way to run tests, but it suffered from some warnings due to incorrect application of include_directories(). And lastly, there were some return codes from hashx_exec() that get ignored on equix when asserts are disabled. It bugged me too much to just silence this with a (void) cast, since even though this is in the realm of low-likelyhood programming errors and not true runtime errors, I don't want to make it easy for the hashx_exec() wrappers to return values that are dangerously wrong if an error is ignored. I made sure that even if asserts are disabled, we return values that will cause the solver and verifier to both fail to validate a potential solution. Signed-off-by: Micah Elizabeth Scott <beth@torproject.org> |
||
---|---|---|
.. | ||
curve25519_donna | ||
ed25519 | ||
equix | ||
keccak-tiny | ||
mulodi | ||
timeouts | ||
trunnel | ||
.may_include | ||
byteorder.h | ||
compat_blake2.h | ||
csiphash.c | ||
ext.md | ||
getdelim.c | ||
ht.h | ||
include.am | ||
OpenBSD_malloc_Linux.c | ||
readpassphrase.c | ||
siphash.h | ||
strlcat.c | ||
strlcpy.c | ||
tinytest_demo.c | ||
tinytest_macros.h | ||
tinytest.c | ||
tinytest.h | ||
tor_queue.h | ||
tor_queue.txt | ||
tor_readpassphrase.h |