diff options
author | drh <> | 2023-10-10 18:55:29 +0000 |
---|---|---|
committer | drh <> | 2023-10-10 18:55:29 +0000 |
commit | 6b7b23c5802128205cfcc2c02a38a9e1513a06c6 (patch) | |
tree | 0024cb2ca12dc615acb5b29e31a0b249e4b634f8 /src/json.c | |
parent | 59ded6b5f112793ff67957b731ab26e2eefa6dd8 (diff) | |
download | sqlite-6b7b23c5802128205cfcc2c02a38a9e1513a06c6.tar.gz sqlite-6b7b23c5802128205cfcc2c02a38a9e1513a06c6.zip |
Fix an off-by-one error in the changes from the previous check-in on
the jsonb branch.
FossilOrigin-Name: 216191b113da43516d31301fb133173add66358d503677ab997bc82cc88bfea4
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index a8f0049e7..b9f13f12f 100644 --- a/src/json.c +++ b/src/json.c @@ -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; |