1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Fix an off-by-one error in the changes from the previous check-in on

the jsonb branch.

FossilOrigin-Name: 216191b113da43516d31301fb133173add66358d503677ab997bc82cc88bfea4
This commit is contained in:
drh
2023-10-10 18:55:29 +00:00
parent 59ded6b5f1
commit 6b7b23c580
3 changed files with 8 additions and 8 deletions

View File

@@ -3354,7 +3354,7 @@ static u32 jsonXlateBlobToText(
if( k>0 ){
jsonAppendRawNZ(pOut, zIn, k);
if( sz2<=k ){
pOut->eErr |= JSTRING_MALFORMED;
if( sz2<k ) pOut->eErr |= JSTRING_MALFORMED;
break;
}
zIn += k;