Check tx output matches monitor output data (and is sufficient len) 2015-12-fuzz-fix-output-idx
authorMatt Corallo <git@bluematt.me>
Mon, 10 Dec 2018 20:02:50 +0000 (15:02 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 10 Dec 2018 20:06:35 +0000 (15:06 -0500)
commit79c0f98c1f3ce62d0bf83729acb3e65679d9c984
treedc138d5b753a68b06abaf3606a05b98e811e63d1
parent33553d743621fae8bc45cafee2edb19e91cf3d4d
Check tx output matches monitor output data (and is sufficient len)

Fixes a panic found by fuzzer in case the monitor per-commitment
data is garbage. We had a similar check for revoked commitment tx
but didn't copy it down to non-revoked commitment tx, so do that
now.
src/ln/channelmonitor.rs