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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user