Files
lightning/lightningd
Rusty Russell f6b0f794b2 jsonrpc: fix crash on bad JSON input.
It went something like:
   niftynei: Hey, cppcheck complains this might be NULL, so I put in a check.
   rusty: cppcheck is dumb.  Make it an assert("Rusty always right!").
   niftynei: You seem certain of this so I shall do that.
             https://github.com/ElementsProject/lightning/pull/1994
   ...
   renepickhardt: I asked fiatjaf to run
                  `lightning-cli sendpay "[{'id':'02db8f487fcc0a'}]" 4efe0ba89b`
                  and his node crashed!
   rusty: grep Assertion logs/*
          lightningd/jsonrpc.c:326: connection_complete_error: Assertion `Rusty is always right!' failed.

It turns out that in the 'can't parse' error case, we hand NULL cmd to
connection_compete_error.

Next time, less asserting, more grepping!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-10-12 21:19:52 +00:00
..
2017-10-20 18:31:32 +02:00
2018-09-03 00:40:27 +00:00
2018-07-29 16:27:38 +02:00
2018-09-14 22:12:13 +02:00
2018-08-20 01:02:25 +00:00
2018-09-25 15:11:45 +02:00
2018-05-05 17:55:10 +02:00
2018-07-30 03:04:45 +00:00
2018-09-03 00:40:27 +00:00
2018-02-16 13:08:29 +01:00