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 undefined behaviour in CHDChain. #1238

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Fix undefined behaviour in CHDChain. #1238

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 13, 2023

PR intention

Fix instances of UB in CHDChain.

Code changes brief

  • Give safe defaults for variables.
  • Prevent nExternalChainCounters from being initialised with uninitialised values when it is deserialised.

@ghost ghost requested review from psolstice and removed request for psolstice May 13, 2023 09:37
@ghost ghost marked this pull request as draft May 13, 2023 10:41
@ghost ghost marked this pull request as ready for review May 14, 2023 06:40
src/wallet/walletdb.h Outdated Show resolved Hide resolved
@ghost ghost force-pushed the chdchain-ub-fix branch 3 times, most recently from 2de9ac6 to 050c066 Compare May 17, 2023 10:01
@justanwar justanwar marked this pull request as draft November 21, 2023 14:02
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

1 participant