diff options
author | drh <> | 2023-10-05 18:33:19 +0000 |
---|---|---|
committer | drh <> | 2023-10-05 18:33:19 +0000 |
commit | 51d507d432c60e241ad3684a50e0d9a74283303b (patch) | |
tree | d807699c2a8b679df6c742ea09330b20abcbfb91 /src/json.c | |
parent | 5b6cfb79068f20f4df34322139ef7c0b9d58ea2c (diff) | |
download | sqlite-51d507d432c60e241ad3684a50e0d9a74283303b.tar.gz sqlite-51d507d432c60e241ad3684a50e0d9a74283303b.zip |
Fix the parsing of non-standard "Infinity" and "NaN" values from text into
JSONB.
FossilOrigin-Name: df1fbbeb83a2b4a496c9de0d86c7c8c677f8fe3bc770da163dcc1d338a17b58b
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c index 3c179ac16..8b14aa3aa 100644 --- a/src/json.c +++ b/src/json.c @@ -3097,8 +3097,7 @@ json_parse_restart: } if( sqlite3Isalnum(z[i+nn]) ) continue; if( aNanInfName[k].eType==JSON_REAL ){ - jsonBlobAppendOneByte(pParse, JSONB_FLOAT); - jsonBlobAppendOneByte(pParse, 5); + jsonBlobAppendOneByte(pParse, JSONB_FLOAT | 0x50); jsonBlobAppendNBytes(pParse, (const u8*)"9e999", 5); }else{ jsonBlobAppendOneByte(pParse, JSONB_NULL); |