diff options
author | drh <> | 2023-10-11 12:44:17 +0000 |
---|---|---|
committer | drh <> | 2023-10-11 12:44:17 +0000 |
commit | 2b7a1f5926278c2698521310d29f39ef20b90789 (patch) | |
tree | 95b59302ada253ab0e665255c67cc680842c4d97 /src/json.c | |
parent | 33b56217cb7f1ced7553449daccc032230a8b53a (diff) | |
download | sqlite-2b7a1f5926278c2698521310d29f39ef20b90789.tar.gz sqlite-2b7a1f5926278c2698521310d29f39ef20b90789.zip |
Fix an issue that can arise when processing corrupt JSONB.
FossilOrigin-Name: e50045c22296be84c6bea82bb8b310f07bca820c84d4a7349b16da0cf5d2657c
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 ff735f36f..b92db836c 100644 --- a/src/json.c +++ b/src/json.c @@ -2209,7 +2209,7 @@ static JsonParse *jsonParseCached( ** a match. */ static int jsonLabelCompare(const JsonNode *pNode, const char *zKey, u32 nKey){ - assert( pNode->eU==1 ); + if( pNode->eType!=JSON_STRING ) return 0; if( pNode->n!=nKey ) return 0; return strncmp(pNode->u.zJContent, zKey, nKey)==0; } |