tor/src/ext
Micah Elizabeth Scott cfbf74352f More fixes for compile-time warnings in equix and hashx
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>
2023-06-05 11:45:33 -07:00
..
curve25519_donna Fix typos. 2020-11-12 11:44:09 -05:00
ed25519 fix syntax errors listed by cppcheck 2021-12-16 10:21:18 +01:00
equix More fixes for compile-time warnings in equix and hashx 2023-06-05 11:45:33 -07:00
keccak-tiny Fix Keccak undefined behavior on exotic platforms. 2020-12-17 13:49:17 +02:00
mulodi Rectify include paths (automated) 2018-06-21 13:14:14 -04:00
timeouts Make all our struct names end with "_t". 2019-11-07 08:41:22 -05:00
trunnel trunnel: Rename sendme.trunnel to sendme_cell.trunnel 2019-06-11 14:11:10 +03:00
.may_include hs_pow: Replace libb2 dependency with hashx's internal blake2 2023-05-10 07:38:28 -07:00
byteorder.h Fix (and make consistent) the use of OpenBSD preprocessor macro tests 2019-01-09 08:51:57 -05:00
compat_blake2.h hs_pow: Replace libb2 dependency with hashx's internal blake2 2023-05-10 07:38:28 -07:00
csiphash.c Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
ext.md Move description of ext contents into an md file. 2020-07-02 13:46:25 -04:00
getdelim.c Prevent double free on huge files with 32 bit. 2019-04-10 12:46:27 +03:00
ht.h ht.h: Require a semicolon after HT_PROTOTYPE and HT_GENERATE[2] 2020-02-10 12:54:06 -05:00
include.am ext: build equix and hashx using automake 2023-05-10 07:38:28 -07:00
OpenBSD_malloc_Linux.c Rectify include paths (automated) 2018-06-21 13:14:14 -04:00
readpassphrase.c Make "ext" participate in may_include. 2018-11-14 16:07:36 -05:00
siphash.h siphash.h: include stdint. 2020-01-09 07:30:35 -05:00
strlcat.c Move strlcpy and strlcat into src/ext too 2012-10-12 17:14:28 -04:00
strlcpy.c Move strlcpy and strlcat into src/ext too 2012-10-12 17:14:28 -04:00
tinytest_demo.c Replace operators used as macro arguments with OP_XX macros 2014-11-12 13:28:07 -05:00
tinytest_macros.h Remove extra ; from tt_assert() macro definition. 2020-01-09 07:30:35 -05:00
tinytest.c Give tinytest a function to say whether the current test has failed 2019-05-15 07:50:56 -04:00
tinytest.h Give tinytest a function to say whether the current test has failed 2019-05-15 07:50:56 -04:00
tor_queue.h Silence spurious clang warnings 2014-10-30 22:34:46 +11:00
tor_queue.txt Add a copy of the queue(3) manpage to the git repository. 2012-10-30 19:16:15 -04:00
tor_readpassphrase.h Don't call the system toupper or tolower. 2016-04-05 23:22:28 -04:00