aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-06-02 23:34:42 +0000
committerdrh <>2025-06-02 23:34:42 +0000
commit2bd9f69d40dd240c4122c6d02f1ff447e7b5c098 (patch)
treeb1febe13dbd6ff73f0c78dc0c3331a8227cbd01a /src
parent333b07b18d1f4fb0d89b5380cba85acf5b7d2531 (diff)
downloadsqlite-2bd9f69d40dd240c4122c6d02f1ff447e7b5c098.tar.gz
sqlite-2bd9f69d40dd240c4122c6d02f1ff447e7b5c098.zip
Fix JSONB edit so that when it is trying to reduce the size of an element
it understands 0xf0 (8-byte) sizes. FossilOrigin-Name: 5b3de6e8ab6b228bf6c0e0c31b50ca29d8b7852b460eaaca6c6ecf5a3c083cab
Diffstat (limited to 'src')
-rw-r--r--src/json.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 4ae17a5a4..3078be34b 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1285,8 +1285,10 @@ static int jsonBlobChangePayloadSize(
nExtra = 1;
}else if( szType==13 ){
nExtra = 2;
- }else{
+ }else if( szType==14 ){
nExtra = 4;
+ }else{
+ nExtra = 8;
}
if( szPayload<=11 ){
nNeeded = 0;