mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:08:38 +00:00
fuzz: push messages to one of m_nodes in connman target #36765
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36765
Loading…
Reference in a new issue
No description provided.
Delete branch "2611_connman_fuzz_fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The connman fuzz target never exercised
m_nodespeers with queued messages, as their message queue is always empty. The most they ever had to send was handshake bytes in the case of v2 peers, so the socket handler only ever waited for SendEvent, and sent data, during a v2 handshake.Fix this by pushing messages to one of the
m_nodespeers instead ofrandom_node, which is never added to connman.cc @Crypt-iQ @marcofleon
No verified findings are available from this review.
Review coverage was incomplete.
Reviewed:
ad51e87ecfd8· Full review report · Previous reportspermalink
For reference, the PushMessage to random_node is an artifact of when the target was first introduced in
79ef8324d4, which as far as i understand it was attempting to maximize line coverage rather than meaningful coverage.ACK
ad51e87ecfnet.cppcoverage on masternet.cppcoverage this PRV2Transport::SetMessageToSend()is hit by this target now that messages are being pushed to connman's actual peers, some of which are V2.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.