Passing a huge payload to createonion
triggers assert: "common/sphinx.c:101: sphinx_add_hop: Assertion `sphinx_path_payloads_size(path) <= ROUTING_INFO_SIZE' failed."
#3377
Milestone
I am running
v0.8.0
(official branch, unpatched unlike was the case in #3370) and am experimenting withcreatonion
andsendonion
I am constructing custom TLV payloads and was trying to find the upper limit of how big they could be (with knowledge of the 1300 byte onion size, of course). I passed an intentionally-gigantic payload in the hop data into
createonion
. The payload is comprised of valid extension TLVs after the normal routing TLVs.Which crashed my node:
I wold expect it to reject the
createonion
call with a descriptive "payloads too large" message rather than crashing.The crash.log:
crash.log.20191226204812.gz
The text was updated successfully, but these errors were encountered: