bitcoinfuzz icon indicating copy to clipboard operation
bitcoinfuzz copied to clipboard

fix: skip wrong_funding TLV (type 100) in shutdown messages

Open erickcestari opened this issue 1 month ago • 0 comments

Core Lightning parses an even TLV type 100 (wrong_funding) in shutdown messages that other Lightning implementations don't recognize. Since even TLV types are required to be understood by all implementations, receiving this TLV from Core Lightning would cause parsing failures in other clients.

Skip messages containing this TLV to maintain compatibility across different Lightning Network implementations.

The crash:

Lightning P2P message parsing failed
Module: Ldk
Result:
Module: CLightning
Result: MSG_TYPE=shutdown;CHANNEL_ID=2172647600000aae5e5d5e02a102a1a1a1a1a114a1a1a105216424a10172bf76;SCRIPTPUBKEY=
bitcoinfuzz: driver.cpp:413: void bitcoinfuzz::Driver::ParseLightningP2pMessageTarget(std::span<const uint8_t>) const: Assertion `*res == *last_response' failed.

erickcestari avatar Nov 26 '25 18:11 erickcestari