Skip to content

[pull] main from torproject:main#159

Merged
pull[bot] merged 3 commits intoMu-L:mainfrom
torproject:main
Jun 14, 2023
Merged

[pull] main from torproject:main#159
pull[bot] merged 3 commits intoMu-L:mainfrom
torproject:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jun 14, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Micah Elizabeth Scott and others added 3 commits June 5, 2023 11:45
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>
@pull pull bot added the ⤵️ pull label Jun 14, 2023
@pull pull bot merged commit d5306e1 into Mu-L:main Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants