Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor leaks and some unintialized components (valgrind) #2743

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Spudz76
Copy link
Contributor

@Spudz76 Spudz76 commented Nov 28, 2021

Also fix benchmark feature when WITH_RANDOMX=OFF

src/crypto/cn/CryptoNight_x86.h Outdated Show resolved Hide resolved
src/crypto/cn/CryptoNight_x86.h Outdated Show resolved Hide resolved
src/crypto/cn/CryptoNight_x86.h Outdated Show resolved Hide resolved
@Spudz76
Copy link
Contributor Author

Spudz76 commented Nov 29, 2021

Those only showed up during the GR optimizer phase and were quite spammy. I hadn't seen them before with normal CN algos, somehow. Had to patch them to see the other leaks, will revert those mainloop inits.

@Spudz76
Copy link
Contributor Author

Spudz76 commented Nov 29, 2021

I think zeroing the buf and hash within ghostrider actually fixed the uninitialized condition in the CN code which is how it doesn't show up except in the GR optimizer phase. I also patched that after patching the CN code so that makes sense.

@Spudz76
Copy link
Contributor Author

Spudz76 commented Nov 29, 2021

Adjusted whitespace since I found a code-standard precedent for using { 0 } and not {0} :)

@Spudz76 Spudz76 force-pushed the dev-fixGRLeaks branch 2 times, most recently from 0a9d492 to b61d46d Compare March 7, 2023 21:42
@Spudz76 Spudz76 force-pushed the dev-fixGRLeaks branch 2 times, most recently from 8eccc11 to 4c9376a Compare May 23, 2023 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants