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

Fix a bug in the jsonReturnFromBlob() function that causes a positive result

for a negative value for when a JSON integer is too large and needs to be
converted into double.

FossilOrigin-Name: dca684da0c29ec78460362f972ea7747be42c13c4d1325da9d62c1ea58022e39
This commit is contained in:
drh
2023-10-03 21:54:09 +00:00
parent 51cc3041fe
commit f362731c1c
3 changed files with 8 additions and 7 deletions

View File

@@ -3856,6 +3856,7 @@ static void jsonReturnFromBlob(
}else if( rc==3 && bNeg ){
sqlite3_result_int64(pCtx, SMALLEST_INT64);
}else{
if( bNeg ){ n--; sz++; }
goto to_double;
}
break;