diff --git a/common/test/run-json.c b/common/test/run-json.c index e37b81e42..e44e64c9a 100644 --- a/common/test/run-json.c +++ b/common/test/run-json.c @@ -74,6 +74,11 @@ static void test_json_tok_size(void) assert(toks[0].size == 2); assert(toks[2].size == 2); assert(toks[6].size == 2); + + /* This should *not* parse! (used to give toks[0]->size == 2!) */ + buf = "{ 'satoshi', '546' }"; + toks = json_parse_input(tmpctx, buf, strlen(buf), &ok); + assert(!ok); } static void test_json_delve(void) diff --git a/external/jsmn b/external/jsmn index 6784c826d..18e9fe42c 160000 --- a/external/jsmn +++ b/external/jsmn @@ -1 +1 @@ -Subproject commit 6784c826d9674915a4d89649c6288e6aecb4110d +Subproject commit 18e9fe42cbfe21d65076f5c77ae2be379ad1270f