• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rust-bitcoin / rust-bitcoin / 25604189264 / 1
82%
master: 83%

Build:
Build:
LAST BUILD BRANCH: 0.32.x
DEFAULT BRANCH: master
Ran 09 May 2026 03:02PM UTC
Files 91
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 May 2026 03:00PM UTC coverage: 81.844% (-0.005%) from 81.849%
25604189264.1

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#6140: p2p: Error on RawNetworkMessage decode if payload partly consumed

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/760a278dad6d31bbc82cc9cef86a191b1c0fda0c">760a278da<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/600eba9fe74740d417b6e9427d059938b11f3ce1"> p2p: Error on RawNetworkMessage decode if payload partly consumed (Mitchell Bagot)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/f3bcb5192bac3d83be0869207c85583ae4de58bf">f3bcb5192</a> p2p: Fix Inventory::Error roundtrip (Mitchell Bagot)

Pull request description:

  The RawNetworkMessage Decodable implementation currently checks that the payload length provided in the header is readable from the provided reader. However, it does not check that the process of decoding the payload actually consumes as many bytes to construct a valid data object. This means that it successfully decodes malformed network messages such as those with a payload len of 50 for a MemPool command.
  In the process of fixing this, the Inventory decode must also be adjusted to fix the roundtrip behaviour.
  
  - Patch 1 adjusts the Inventory::Error Decodable behaviour to consume the 32 zero hash bytes.
  - Patch 2 adjusts RawNetworkMessage Decodable impl to return a parse error when decoding of the payload does not consume all bytes read according to the header's payload_len.


ACKs for top commit:
  apoelstra:
    ACK 760a278dad6d31bbc82cc9cef86a191b1c0fda0c; successfully ran local tests


Tree-SHA512: cf36733d5be7de285aa42c80dd0e8fb4cb9

16544 of 20214 relevant lines covered (81.84%)

17648.7 hits per line

Source Files on job 25604189264.1
  • Tree
  • List 91
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25604189264
  • 600eba9f on github
  • Prev Job for on 0.32.x (#25558168458.1)
  • Next Job for on 0.32.x (#25945382171.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc