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

cryptoquick / rust-bitcoin / 16250349584

09 Jul 2025 01:19PM UTC coverage: 83.547% (+0.5%) from 83.083%
16250349584

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4649: fix: preserve embedded nulls in `CommandString` for consensus validation

<a class=hub.com/cryptoquick/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/cryptoquick/rust-bitcoin/commit/a6f63cf61d921e6c59f0697f9b84afd744ddbf37">a6f63cf61 fix: validate ASCII and preserve embedded nulls in CommandString parsing (Erick Cestari)

Pull request description:

  Previously, `CommandString` decoding would silently normalize invalid commands containing embedded null bytes. For example, "mem\0pool" would be incorrectly decoded as "mempool", bypassing consensus validation.
  
  Found through differential fuzzing between btcd and rust-bitcoin, where rust-bitcoin was accepting messages with embedded null bytes in Command fields while btcd (and Bitcoin Core) correctly reject them.


ACKs for top commit:
  apoelstra:
    ACK a6f63cf61d921e6c59f0697f9b84afd744ddbf37; successfully ran local tests
  tcharding:
    ACK a6f63cf61d921e6c59f0697f9b84afd744ddbf37


Tree-SHA512: fccf7fc29448d5e05f5b7a4bc8bc8675a1d

12 of 12 new or added lines in 1 file covered. (100.0%)

1825 existing lines in 75 files now uncovered.

21297 of 25491 relevant lines covered (83.55%)

15326.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

38.74
/bitcoin/src/blockdata/script/push_bytes.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc