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

[Refactoring] Sapling classes - initialize fields and pass parameters by reference #2181

Merged

Conversation

random-zebra
Copy link

@random-zebra random-zebra commented Feb 2, 2021

Fixes three minor issues with sapling notes and txes:

  • Possible uninitialized fields (with empty ctor)
  • Big parameters passed by value
  • Unchecked return value of ReadBlockFromDisk

Note: these were reported by Synopsys Coverity® (more to come). The cov-int folder is added to .gitignore, so the tool can be run directly on the cloned repository, without the risk of staging its files.

@random-zebra random-zebra added this to the 5.1.0 milestone Feb 2, 2021
@random-zebra random-zebra self-assigned this Feb 2, 2021
src/sapling/note.h Outdated Show resolved Hide resolved
@random-zebra random-zebra force-pushed the 202102_sapling-uninitialized-var branch from 529d803 to 09fe747 Compare February 5, 2021 21:28
Copy link

@furszy furszy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 09fe747

src/wallet/wallet.cpp Show resolved Hide resolved
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 09fe747

@random-zebra random-zebra merged commit f07b8cf into PIVX-Project:master Feb 13, 2021
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.

None yet

3 participants