1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Fix an off-by-one error in the recognition of -Infinity.

FossilOrigin-Name: f7ebf3e6286ddc8cdaa9446235407785d1be2be2d9992e21ef59fcd655f68432
This commit is contained in:
drh
2023-04-02 20:27:02 +00:00
parent 8d1005a593
commit 26cc3a1387
3 changed files with 8 additions and 11 deletions

View File

@@ -935,7 +935,7 @@ static int jsonParseValue(JsonParse *pParse, u32 i){
jsonParseAddNode(pParse, JSON_REAL, 8, "-9.0e999");
return i+4;
}else if( (sqlite3StrNICmp(&z[j],"infinity",8)==0 &&
!sqlite3Isalnum(z[j+5])) ){
!sqlite3Isalnum(z[j+9])) ){
jsonParseAddNode(pParse, JSON_REAL, 8, "-9.0e999");
return i+9;
}