]> git.bitcoin.ninja Git - rust-lightning/commit
Test index-out-of-bounds in Features::to_context
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Jul 2021 23:18:33 +0000 (16:18 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 15 Jul 2021 01:34:13 +0000 (20:34 -0500)
commit87233488ccfc0dad06ce712b9e594fc20e0e52f1
tree2da2f350ecd0b303bcd71b282c22fa98d5e0226a
parent06ecbecd6d5944281bbe1f1407114af49eb293d3
Test index-out-of-bounds in Features::to_context

When there are fewer known `from` feature bytes than known `to` feature
bytes, an index-out-of-bounds error can occur if the `from` features
have unknown features set in a byte past the greatest known `from`
feature byte.
lightning/src/ln/features.rs