diff options
author | drh <> | 2023-12-02 15:59:48 +0000 |
---|---|---|
committer | drh <> | 2023-12-02 15:59:48 +0000 |
commit | 2c26bde4ff7e022c4d774ce9a4c27ca56ce65279 (patch) | |
tree | cf0c67d008af89d9d43e47fb09a41a6e1fae433b /src/json.c | |
parent | 4cd397c0d9b3ded36f9838ca04b88a74f40931ce (diff) | |
download | sqlite-2c26bde4ff7e022c4d774ce9a4c27ca56ce65279.tar.gz sqlite-2c26bde4ff7e022c4d774ce9a4c27ca56ce65279.zip |
Do not allow a JsonParse object to be considered "editable" after an OOM.
FossilOrigin-Name: c6bacf57bd6fe0fee00c9d41163a270b60997c20659949971bbf5c6c62622bfe
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c index 83bf3e733..334829f9c 100644 --- a/src/json.c +++ b/src/json.c @@ -1044,6 +1044,7 @@ static int jsonBlobMakeEditable(JsonParse *pParse, u32 nExtra){ u8 *aOld; u32 nSize; assert( !pParse->bReadOnly ); + if( pParse->oom ) return 0; if( pParse->nBlobAlloc>0 ) return 1; aOld = pParse->aBlob; nSize = pParse->nBlob + nExtra; |