When checking the tx inputs with CheckInputs(), the signature check
count is expected to be 0 when pvChecks is non null. This diff fixes
the current implementation which used the check variable after a move
to increment the sig check count with 0.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rABC59239db2aa64: Fix a potential use after move
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- fix_use_after_move
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 13434 Build 26900: Build Diff lint-circular-dependencies · build-without-wallet · build-diff · build-clang-tidy · build-clang Build 26899: arc lint + arc unit
Event Timeline
src/validation.cpp | ||
---|---|---|
1074 ↗ | (On Diff #24679) | Remove the else. |
src/validation.cpp | ||
---|---|---|
1074 ↗ | (On Diff #24679) | And add a comment about what is going on. |
src/validation.cpp | ||
---|---|---|
1076 | You need to add a comment explaining the flow here because it is confusing. |
src/validation.cpp | ||
---|---|---|
1073 ↗ | (On Diff #24689) | The sigcheck will definitively be counted. his comment is at best misleading. |
1079 ↗ | (On Diff #24689) | Anyone who ends up here can read the code. Repeating the code in English doesn't help. There is a reason WHY the code is structured this way. This is what you need to explain. |