mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-09 14:21:03 +03:00
Add NEVER to two unreachable branches in JSON.
FossilOrigin-Name: c96ebb086feb89341565cc52b970ae7799ce1327fe1ad4fc790f1b0dcaa6e229
This commit is contained in:
@@ -1255,8 +1255,8 @@ static u32 jsonbValidityCheck(
|
||||
if( iDepth>JSON_MAX_DEPTH ) return i+1;
|
||||
sz = 0;
|
||||
n = jsonbPayloadSize(pParse, i, &sz);
|
||||
if( n==0 ) return i+1;
|
||||
if( i+n+sz!=iEnd ) return i+1;
|
||||
if( NEVER(n==0) ) return i+1; /* Checked by caller */
|
||||
if( NEVER(i+n+sz!=iEnd) ) return i+1; /* Checked by caller */
|
||||
z = pParse->aBlob;
|
||||
x = z[i] & 0x0f;
|
||||
switch( x ){
|
||||
|
||||
Reference in New Issue
Block a user