]> git.bitcoin.ninja Git - dnssec-prover/commit
Fix overflowing subtract in vec preallocation
authorMatt Corallo <git@bluematt.me>
Sun, 11 Feb 2024 20:33:35 +0000 (20:33 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 11 Feb 2024 20:33:35 +0000 (20:33 +0000)
commit1bc1a6325dce9c48f5610edccb91a38a1abb3084
treeb2f4ff695584ecbbc021274f01a1f6d3fb4df8b8
parentf7579b7b761672d9d08a0297258b04861188a52a
Fix overflowing subtract in vec preallocation

If a TXT record comes in with zero length data, we'll overflow in
the subtraction and try to allocate much too much data.
src/rr.rs