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

refactor: Treat ArgsManager::Flags as uint32_t explicitly #21082

Merged
merged 1 commit into from Feb 5, 2021

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Feb 4, 2021

The underlying type might be implementation defined, which is probably why the sanitizer kills the fuzz tests.

Fix that by pinning the underlying type.

This refactor does not change behaviour and only affects the sanitizer in tests.

@maflcko
Copy link
Member Author

maflcko commented Feb 4, 2021

All ci runs fail and look like: https://cirrus-ci.com/task/5428847116025856?command=ci#L4505

@practicalswift
Copy link
Contributor

practicalswift commented Feb 5, 2021

cr ACK faf3b4b

More generally I think we should increase our use of the fixed-width integer types. Explicit is better than implicit. Gotcha-free is better than maybe-gotcha.

@maflcko maflcko merged commit 4013e44 into bitcoin:master Feb 5, 2021
@maflcko maflcko deleted the 2102-unsigned branch February 5, 2021 09:02
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 5, 2021
…xplicitly

faf3b4b refactor: Treat ArgsManager::Flags as uint32_t explicitly (MarcoFalke)

Pull request description:

  The underlying type might be implementation defined, which is probably why the sanitizer kills the fuzz tests.

  Fix that by pinning the underlying type.

  This refactor does not change behaviour and only affects the sanitizer in tests.

ACKs for top commit:
  practicalswift:
    cr ACK faf3b4b

Tree-SHA512: d446824836e1037b4200ba3630c8628090678cfad45559866275d8e06349f7c8cdb7e816619f5afb35f9f65299cc00e046d2f81b73cd8eb843e2e15676b647d5
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 17, 2022
…xplicitly

faf3b4b refactor: Treat ArgsManager::Flags as uint32_t explicitly (MarcoFalke)

Pull request description:

  The underlying type might be implementation defined, which is probably why the sanitizer kills the fuzz tests.

  Fix that by pinning the underlying type.

  This refactor does not change behaviour and only affects the sanitizer in tests.

ACKs for top commit:
  practicalswift:
    cr ACK faf3b4b

Tree-SHA512: d446824836e1037b4200ba3630c8628090678cfad45559866275d8e06349f7c8cdb7e816619f5afb35f9f65299cc00e046d2f81b73cd8eb843e2e15676b647d5
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants