Files
lightning/common
ZmnSCPxj jxPCSnmZ 20fe5c6ab1 common/json.c: Have json_add_literal *use* len argument.
The current `json_add_literal` does not use its `len` argument, at all:

09c2fef4a4/common/json.c (L1076-L1083)

Which is something of a WTF, why even require the `len` argument if it
is not even used in the function?
This would have been acceptable if it were a callback and the
callback-requiring function passed it in always, but this function is
not intended to be a callback but instead to be called directly.

Existing callers always pass in `strlen(literal)`, so this bug was not
noticed before:

09c2fef4a4/lightningd/jsonrpc.c (L511)
09c2fef4a4/lightningd/jsonrpc.c (L583)
09c2fef4a4/lightningd/options.c (L1408-L1409)
2021-10-06 16:09:20 +02:00
..
2020-10-21 19:34:39 +02:00
2020-09-23 16:30:36 +09:30
2020-04-04 16:08:49 +10:30
2020-04-04 16:08:49 +10:30
2021-09-20 14:44:27 +02:00
2020-04-04 16:08:49 +10:30
2020-04-04 16:08:49 +10:30
2020-02-05 14:19:12 +01:00
2020-02-05 14:19:12 +01:00
2018-02-08 22:49:34 +01:00
2020-01-23 16:17:42 +10:30
2019-04-16 21:22:13 +00:00
2020-10-20 12:50:31 +10:30
2021-01-13 14:45:36 +01:00